Entries tagged with “toggle”


A reusable Javascript toggle pattern

This is a toggle pattern that can be reused multiple times on a page with options to customise parts of it. It is a very common pattern, so I've been keen to get it documented for future use....

Building a CSS toggle feature with :checked and flexbox

I wrote a post a while ago when I learnt how to use the :checked pseudo class to build a toggle feature. This week, I have created another toggle feature, still using CSS only, which is much more exciting than the first...