API reference
keyframes
API reference for the `keyframes` method
Define CSS animations in JavaScript with full type safety.
The keyframes()
method generates a unique animation name (an 8-character hash) that can be used directly in styles.
📽️ Example
Advanced usage
You can also trigger animations on hover or using other pseudo selectors: