Skip to main content
InterviewHubPRO
Section Overview
Q75

Question 75 of 407

General

18%
React Core & Hooks (407 Qs)•General

What are the popular packages for animation?

junior LevelCode ExamplereactGeneral

React Transition Group and React Motion are popular animation packages in React ecosystem.

Practical Code Example

jsx
// Modern React Animation Libraries: Framer Motion
import { motion } from 'framer-motion';

export function FadeInCard({ children }) {
  return (
    <motion.div
      initial={{ opacity: 0, y: 20 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 0.4 }}
    >
      {children}
    </motion.div>
  );
}