@cryptic-css/prop-keyframes

Adds support for custom prop keyframes (kf). It allows you to define a keyframe animation for your element. You don't need to use animationName, it is automatically generated for you, simply omit it.

Usage#

Live Editor
Result
animation-name: a1;
@keyframes a1 {
from {
width: 0;
}
to {
width: 100%;
}
}

Configuration#

The plugin is already included in the package ccss pre-configured. Skip this step if you don't need custom configuration and/or CCSS instance.

import ccss from '@cryptic-css/core'
import propKeyframes from '@cryptic-css/prop-keyframes'
ccss.use(propKeyframes)
Last updated on by Pablo Henrique