Animaciones ⭐ 19k stars
Animaciones y gestos para React con transiciones físicas y arrastre.
frontend-desarrollo (regla: solo catálogo de las 66 · versiones por ERR/MEJ)
Instalación: npm i framer-motion
import { motion } from 'framer-motion';
<motion.div animate={{ x: 100 }}>Hola</motion.div>;
Dos casos de uso comunes implementados con esta librería.
Una tarjeta entra animada.
import { motion } from 'framer-motion';
export default () => (
<motion.div
initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6 }}
>
Contenido
</motion.div>
);Reacciona al pasar el ratón y al pulsar.
import { motion } from 'framer-motion';
export default () => (
<motion.button
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
>
Púlsame
</motion.button>
);| Categoría | Animaciones |
|---|---|
| Stars (GitHub) | ⭐ 19k |
| Sitio oficial | https://www.framer.com/motion/ |
| GitHub | https://github.com/framer/motion |
| Instalación | npm i framer-motion |
| Relacionadas | React · React Spring · Popmotion |
C:\Users\TUF\Documents\librerías\local\ antes de descargar.
Volver al índice de los 66 estudios.