Exploring New Pseudo Classes
Posted on 20 Sep 2022
Tech Stack
Frontend
HTML, CSS, JavaScript, Dialog Element
Deployment
GitHub Pages
Highlights
Dialog Element
About
Here are some examples I’ve put together to showcase the usage of the has()
pseudo class. You can view the code in the repo.
One is form states, the second is grids with an odd number of columns, and the third is carousels where the scrollbar shows when there are more than a certain number of images—in this case 5.
This project was inspired by Kevin Powell’s video Count children with CSS only using :has()! plus other awesome stuff once again.
Featured Projects
A lame joke…
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat aliquid consequuntur ducimus id eligendi sequi sapiente est corrupti illum autem!
Nulla exercitationem tempore, molestiae laborum cum ullam culpa facere magni suscipit? Mollitia assumenda fugiat temporibus perferendis quaerat, error eum quasi.
Repellendus enim nemo similique, nobis hic sit dolor molestiae accusamus rem sequi dolorem est vitae corrupti! Dolorem sequi magni dolore.