Creates a CSS keyframes animation.
Can be applied to an element using a CSS animation property.
animation
className
const scale = keyframes({ 'from, to': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.02)' },});const pulse = className({ animation: `${scale} 1s ease infinite` })function MyComponent() { return ( <div className={pulse}>Pulsing</div> );} Copy
const scale = keyframes({ 'from, to': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.02)' },});const pulse = className({ animation: `${scale} 1s ease infinite` })function MyComponent() { return ( <div className={pulse}>Pulsing</div> );}
Creates a CSS keyframes animation.
Can be applied to an element using a CSS
animationproperty.