0.0.2 • Published 1 year ago
framer-motion-variants v0.0.2
Framer Motion Variants - Effortless Animations
Boost your React animations with a collection of pre-built variants for Framer Motion. This package empowers you to create stunning animations effortlessly, saving you development time and ensuring visual consistency across your project.
Key Features
- Ready-to-use Variants
- Built for Reusability
Get Started
npm install framer-motion framer-motion-variants
Usage
- Import
motion
andfadeIn
variant from their packages.
import { motion } from "framer-motion";
import { fadeIn } from "framer-motion-variants";
- Wrap your component with a
motion.div
element and assign thefadeIn
variant to the variants prop.
const MyComponent = () => {
return (
<motion.div
variants={fadeIn}
initial="initial"
animate="animate"
>
{/* Your component content */}
</motion.div>
);
};