0.0.2 • Published 1 year ago

framer-motion-variants v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

https://github.com/surendra-manjhi/framer-motion-variants/assets/121970162/1ddc7622-0929-4314-9a67-10c0f21bf616

Key Features

  • Ready-to-use Variants
  • Built for Reusability

Get Started

npm install framer-motion framer-motion-variants

Usage

  1. Import motion and fadeIn variant from their packages.
import { motion } from "framer-motion";
import { fadeIn } from "framer-motion-variants";
  1. Wrap your component with a motion.div element and assign the fadeIn variant to the variants prop.
const MyComponent = () => {
    return (
       <motion.div
          variants={fadeIn}
          initial="initial"
          animate="animate"
       >
          {/* Your component content */}
       </motion.div>
    );
};
0.0.2

1 year ago

0.0.1

1 year ago