Why combine GSAP and Framer Motion?
GSAP excels at complex timeline choreography and precise control; Framer Motion brings a declarative model that feels at home in React. Use GSAP for sequences and physics-like motion, use Framer Motion for layout-aware transitions and gestures.
Example timeline:
const tl = gsap.timeline({ defaults: { ease: 'power2.out' } });
tl.from('.hero', { y: 40, opacity: 0, duration: 0.6 })
.from('.cta', { scale: 0.8, opacity: 0 }, '-=0.3');Then wrap interactive bits with motion.div:
<motion.button whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.97 }}>Click</motion.button>