Framer X » Animation » The useAnimation() hook

The useAnimation() hook

download the project with all the examplesThe hooks we’ve seen, useState() and useCycle(), give you two things: a value and a function.This one, useAnimation(), returns only one single thing: an AnimationControls object that you then pass to the Frame’s animate. Here I named it animation:export function UseAnimationExample(): Override { const animation = useAnimation() return { animate: animation, […]
To access this page, you must purchase Framer X book - Monthly or Framer X book - Yearly.