view source
Combining :checked and flexbox to create a CSS toggle feature.
I wrote a post a while ago when I learnt how to use the :checked pseudo class to build a toggle feature. I was pretty excited because I didn’t have to use any JavaScript to build it. This week, I have created another toggle feature, still using CSS only, which is more exciting than the first.
Advertisement