How to create an expanding search bar using :focus-within
A look at a fun expanding search bar without the need for any JavaScript by leveraging the power of focus-within! I do use SCSS for this one, but it should be pretty easy to follow along if you aren't familiar with it, and as I say in the video if you aren't sure, check the Codepen below where you can toggle on the compiled CSS.
CodePen: https://codepen.io/kevinpowell/pen/jONomrd
Custom Properties (CSS variables) series: https://www.youtube.com/playlist?list=PL4-IK0AVhVjOT2KBB5TSbD77OmfHvtqUi
BEM: https://youtu.be/SLjHSVwXYq4
#scss #css
---
Come and hangout, ask questions, suggest ideas, and meet some awesome people over in The Community: https://discord.gg/nTYCvrK
I have a newsletter! https://www.kevinpowell.co/newsletter
I've been working on some courses! Find out more: https://www.kevinpowell.co/courses
---
My Code Editor: VS Code - https://code.visualstudio.com/
How my browser refreshes when I save: https://youtu.be/h24noHYsuGc
---
Support me on Patreon: https://www.patreon.com/kevinpowell
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Instagram: https://www.instagram.com/kevinpowell.co/
Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
Видео How to create an expanding search bar using :focus-within канала Kevin Powell
CodePen: https://codepen.io/kevinpowell/pen/jONomrd
Custom Properties (CSS variables) series: https://www.youtube.com/playlist?list=PL4-IK0AVhVjOT2KBB5TSbD77OmfHvtqUi
BEM: https://youtu.be/SLjHSVwXYq4
#scss #css
---
Come and hangout, ask questions, suggest ideas, and meet some awesome people over in The Community: https://discord.gg/nTYCvrK
I have a newsletter! https://www.kevinpowell.co/newsletter
I've been working on some courses! Find out more: https://www.kevinpowell.co/courses
---
My Code Editor: VS Code - https://code.visualstudio.com/
How my browser refreshes when I save: https://youtu.be/h24noHYsuGc
---
Support me on Patreon: https://www.patreon.com/kevinpowell
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Instagram: https://www.instagram.com/kevinpowell.co/
Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
Видео How to create an expanding search bar using :focus-within канала Kevin Powell
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![You are doing :focus wrong (and I was too)](https://i.ytimg.com/vi/Mvu5OMGcdVA/default.jpg)
![Create a responsive navigation nav with no JS!](https://i.ytimg.com/vi/8QKOaTYvYUA/default.jpg)
![I've been challenged to a CSS Battle rematch | Can I beat him again???](https://i.ytimg.com/vi/20QiX8rmHnU/default.jpg)
![Creating a better todo app - the HTML and CSS](https://i.ytimg.com/vi/IhmSidOJSeE/default.jpg)
![Front-end dev reacts to mind-blowing Codepens](https://i.ytimg.com/vi/2B5rbsOoIUE/default.jpg)
![Lazy loading is too easy now](https://i.ytimg.com/vi/AActXSWxsRo/default.jpg)
![Fun ways to animate CSS gradients](https://i.ytimg.com/vi/f3mwKLXpOLk/default.jpg)
![](https://i.ytimg.com/vi/LeuLHJGOEDc/default.jpg)
![Give your site a fantastic color scheme fast](https://i.ytimg.com/vi/mq8LYj6kRyE/default.jpg)
![You can do that with one line of HTML?!](https://i.ytimg.com/vi/Dr-dVbzZDf0/default.jpg)
![Flexbox is more complicated than you thought](https://i.ytimg.com/vi/fm3dSg4cxRI/default.jpg)
![From idea to layout: How I approach designing a site](https://i.ytimg.com/vi/KYFwcIRx16g/default.jpg)
![Custom select menu - CSS only](https://i.ytimg.com/vi/bB14uo0Tu5A/default.jpg)
![Awesome CSS Search Box Using Only HTML & CSS](https://i.ytimg.com/vi/v1PeTDrw6OY/default.jpg)
![Jessica Chan challenged me to CSSBattle](https://i.ytimg.com/vi/XA5m-iiTru0/default.jpg)
![Really fun CSS hover effects](https://i.ytimg.com/vi/ceNMP-aQkQ4/default.jpg)
![5 CSS mistakes that I see way too often](https://i.ytimg.com/vi/iHEkRIF7zxI/default.jpg)
![CSS Before and After pseudo elements explained - part two: the content property](https://i.ytimg.com/vi/xoRbkm8XgfQ/default.jpg)
![Introduction to the Intersection Observer JavaScript API](https://i.ytimg.com/vi/T8EYosX4NOo/default.jpg)
![Step up your CSS game using these selectors and combinators](https://i.ytimg.com/vi/Bcr70LIJcOk/default.jpg)