Direct link to the article How to Play and Pause CSS Animations with CSS Custom Properties

How to Play and Pause CSS Animations with CSS Custom Properties

Let’s have a look CSS @keyframes animations, and specifically about how you can pause and otherwise control them. There is a CSS property specifically for it, that can be controlled with JavaScript, but there is plenty of nuance to get …

Avatar of Mads Stoumann
Mads Stoumann on
Direct link to the article Quick Reminder that Details/Summary is the Easiest Way Ever to Make an Accordion

Quick Reminder that Details/Summary is the Easiest Way Ever to Make an Accordion

Gosh bless the <details element. Toss some content inside it and you have an accessible expand-for-more interaction with just about zero work.

CodePen Embed Fallback

Toss a <summary in there to customize what the expander text says.

CodePen Embed Fallback…
Avatar of Chris Coyier
Chris Coyier on (Updated on )