Interactive online courses HTML Academy
2026-03-09 14:05 Diff

Great job! Now let’s add a more contrasting shadow to the active state of the buttons and change the text color. To do this, create a CSS rule with the following selector:

.paper-btn input:checked ~ label { ... }

Let’s animate the shadow of the box-shadow that appears in the active state using a smooth transition. We need to add the transition properties to the general CSS rule for the label:

.paper-btn label { ... }

Thus, the shadow will appear and disappear smoothly.