CSS Challenge: Hide and Reveal

Toggling Classes to Uncover Secret Elements

Photo by from

When you want to hide something… but show it sometimes

This article was inspired by Codepen’s recent weekly code challenge. The theme for their code challenges for this month was micro-interactions. There are many situations where you might want to hide and later reveal an element on the DOM based on user…