useFrame()

description

  • Add callbacks to `gsap.ticker`. Automatically `remove` on unmounting.

demo

console log

code

useFrame((t, d) => {
      console.log(t, d);
   });