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

aspect-ratio

The CSS property aspect-ratio lets you create boxes that maintain proportional dimensions where the height and width of a box are calculated automatically as a ratio. It’s a little math-y, but the idea is that you can divide one value …

Avatar of Geoff Graham
Geoff Graham on
Keep browsing in the archives