Technology

Control UI state with pure CSS and HTML

Nowadays when static content seems not enough to catch the user's attention, even small tweaks in visuals can improve how the page is received. Most visual effects can be done with pure CSS, but still, interactions are written in javascript. What if user action affects only visualization and does not change any data?

Today Lukasz will present you with a straightforward trick and a few examples of tracking UI state without javascript. We hope this helps you to grasp a basic concept as well as gives you a strong overview of tracking UI state with inputs and responds on UI state change with pure CSS.