Scroll Animation
Parallax
Parallax.vueScroll down ↓
Parallax
↑ Scroll up
Install
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
TSUsage
API Reference
speed?numberDrift as a fraction of the element's travel through the viewport. Positive moves with the scroll (foreground), negative against it (background). ~0.1–0.5 reads best.
Default
.3axis?"x" | "y"Default
ycontainer?HTMLElement | nullScroll container element for contained scroll areas. Defaults to the viewport.
Default
—spring?booleanSpring-smooth the drift. Disabled automatically under reduced motion.
Default
trueclass?stringDefault
—#default?slotDefault
—Updated