An example of using Motion for React's useAnimationFrame hook to animate a 3D cube.
"use client" import UseAnimationFrame from "@/components/ui/motion-use-animation-frame" export default function Default() { return ( <div className="motion-example flex w-full items-center justify-center p-8"> <UseAnimationFrame /> </div> ) }