@windicss/plugin-animations
Version:
Add Animate CSS as Windi CSS plugin to your project.
70 lines (62 loc) • 2.03 kB
JavaScript
const keyframeZoomIn = {
'from': {
opacity: '0',
transform: 'scale3d(0.3, 0.3, 0.3)'
},
'50%': {
opacity: '1'
}
};
const keyframeZoomInDown = {
'from': {
opacity: '0',
transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)',
animationTimingFunction: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
},
'60%': {
opacity: '1',
transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)',
animationTimingFunction: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
}
};
const keyframeZoomInLeft = {
'from': {
opacity: '0',
transform: 'scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)',
animationTimingFunction: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
},
'60%': {
opacity: '1',
transform: 'scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)',
animationTimingFunction: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
}
};
const keyframeZoomInRight = {
'from': {
opacity: '0',
transform: 'scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)',
animationTimingFunction: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
},
'60%': {
opacity: '1',
transform: 'scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)',
animationTimingFunction: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
}
};
const keyframeZoomInUp = {
'from': {
opacity: '0',
transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)',
animationTimingFunction: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
},
'60%': {
opacity: '1',
transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)',
animationTimingFunction: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
}
};
exports.keyframeZoomIn = keyframeZoomIn;
exports.keyframeZoomInDown = keyframeZoomInDown;
exports.keyframeZoomInLeft = keyframeZoomInLeft;
exports.keyframeZoomInRight = keyframeZoomInRight;
exports.keyframeZoomInUp = keyframeZoomInUp;