caret

caret in CSS is a shorthand property that combines the caret-color and caret-shape properties into a single declaration. So, we get to write this:

.element {
  caret: #ff7a18 underscore;
}

…which is akin to writing this:

.element {
  caret-color: #ff7a18;
  
Avatar of Geoff Graham
Geoff Graham on
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
Keep browsing in the archives