keyframes
#Create CSS keyframe animations with theme tokens
Usage
#import { keyframes, css } from "./theme";
const fadeIn = keyframes({
from: {
opacity: 0,
},
to: {
opacity: 1,
},
});
const animatedClass = css({
animation: `${fadeIn} 0.5s ease-out`,
});
With Theme Tokens
#const slideUp = keyframes({
from: {
opacity: 0,
transform: "translateY($medium)",
},
to: {
opacity: 1,
transform: "translateY(0)",
},
});