An example of tracking an element within the viewport using Motion for React's useScroll hook.
"use client" import TrackElementWithinViewport from "@/components/ui/motion-scroll-track-element" export default function Default() { return ( <div className="motion-example flex w-full items-center justify-center p-4"> <TrackElementWithinViewport /> </div> ) }