Playground
A working reference for every motion primitive in this project. Scroll this page to see the progress bar at the very top of the viewport, and enable "reduce motion" in your OS accessibility settings to confirm every example below degrades to a static, fully visible state.
1. Reveal (vanilla, inView)
Each box below is wrapped in a <Reveal>component. They fade and slide up independently as they enter the viewport, with a staggered delay.
delay: 0s
delay: 0.1s
delay: 0.2s
2. MagneticButton (React island, motion/react)
Move your cursor near the button — it eases toward the pointer with a spring, then springs back on mouse leave. Hydrated with client:visible.
3. Scroll progress (vanilla, scroll)
A thin bar pinned to the very top of the viewport tracks overall page scroll progress from 0 to 1. It's mounted globally in BaseLayouton every page via <ScrollProgress />.
Keep scrolling — spacer to demonstrate the scroll progress bar.