gov-gui
Version:
Gov UI Component Library Demo ready Build
19 lines (17 loc) • 613 B
JavaScript
// animation-helpers.ts
const getAnimationClasses = ({ animation, animationSpeed, animationDelay }) => {
const classes = [];
if (animation) {
// animate.css typically requires the base class 'animate__animated' plus the specific animation
classes.push('animate__animated', `animate__${animation}`);
}
if (animationSpeed) {
classes.push(`animate__${animationSpeed}`);
}
if (animationDelay) {
classes.push(`animate__delay-${animationDelay}`);
}
return classes.join(' ');
};
export { getAnimationClasses as g };
//# sourceMappingURL=p-be5d7e2d.js.map