Clip Path Animation Variants
Object to animate with clip path reveal for Motion.
Loading...
Installation
Usage
const clipPathVariants = clip_path_animation_variants['curtain-down'];
<motion.div
variants={clipPathVariants}
transition={{ duration: 0.3, delay: 0.2, ease: 'easeInOut' }}
initial="hidden"
whileInView="visible"
viewport={{ once: true }}
/>;Props
| Prop | Type | Default |
|---|---|---|
animation | curtain-down | curtain-up | curtain-center-vertical | curtain-center-horizontal | - |