Frontend Blocks typescript Beginner

Framer Motion Fade-In Wrapper

Reusable component that fades any child element in on mount.

typescript
import { motion } from "framer-motion";

export function FadeIn({ children, delay = 0 }: { children: React.ReactNode; delay?: number }) {
  return (
    <motion.div
      initial={{ opacity: 0, y: 12 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 0.4, delay }}
    >
      {children}
    </motion.div>
  );
}

Prerequisites

  • framer-motion >= 10
  • React >= 17

Pro Tips

  • → Wrap page sections individually for staggered entrances.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
typescript
Level
Beginner
Read time
2 min
Published
Sep 2026
License
Commercial License

Newsletter

New modules every week, directly to your inbox.