motion in your project and bridges it with Remotion's
frame-based rendering. Use motion.div, springs, variants, staggered children,
and keyframes inside MDX sections.1pnpm add motion
1234567891011121314import { motion } from 'motion/react' export function AnimatedCard() { return ( <motion.div initial={{ opacity: 0, y: 50 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.6, ease: 'easeOut' }} style={{ background: '#1a1a2e', padding: 32, borderRadius: 12 }} > <h2>Hello Motion</h2> </motion.div> ) }
Element.prototype.animate (WAAPI) before Motion's
support check runs, patches JSAnimation.prototype, and uses
MotionGlobalConfig.useManualTiming. A MotionTimingSync component wraps each
section and publishes the current frame time.layout prop): may work forward but are not seekablelayoutId shared layout: does not work reliably; use egaki's <LayoutTransition> insteadwhileInView, whileHover, drag): not deterministicmotion is not installed: no scripts injected, no patches applied,
MotionTimingSync is a passthrough. No performance cost.