Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Scroll Animation

Smooth Scroll

SmoothScroll.vue
Section 1
Section 2
Section 3
Section 4
Section 5
Section 6
Section 7
Section 8
Section 9
Section 10
Section 11
Section 12
Section 13
Section 14
Section 15
Section 16

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

bunx --bun shadcn-vue@latest add @beui-vue/smooth-scroll

Import the shared styles once in your application.

TSUsage
import SmoothScroll from '@/components/beui/layout/SmoothScroll.vue'
import '@/components/beui/styles.css'

API Reference

root?
boolean

Drive the page (window) when true, or a contained scroll area when false.

Defaulttrue
lerp?
number

Smoothing factor; lower is smoother and heavier.

Default.1
duration?
number

Wheel / programmatic ease duration in seconds.

Default1.2
orientation?
"horizontal" | "vertical"
Defaultvertical
wheelMultiplier?
number

Wheel scroll speed multiplier.

Default1
touch?
boolean

Smooth touch scrolling. Off by default — native momentum is good on mobile.

Defaultfalse
class?
string
Default—
#default?
slot
Default—

Scroll Progress

ScrollProgress.vue
Section 1
Section 2
Section 3
Section 4
Section 5
Section 6
Section 7
Section 8
Section 9
Section 10
Section 11
Section 12
Section 13
Section 14
Section 15
Section 16
Section 17
Section 18

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

bunx --bun shadcn-vue@latest add @beui-vue/scroll-progress

Import the shared styles once in your application.

TSUsage
import ScrollProgress from '@/components/beui/effects/ScrollProgress.vue'
import '@/components/beui/styles.css'

API Reference

variant?
"bar" | "circle"
Defaultbar
position?
"top" | "bottom"
Defaulttop
height?
number

Bar thickness in px.

Default2
fixed?
boolean

Position the bar with `fixed` (page) or `absolute` (embedded).

Defaulttrue
progress?
number | MotionValue<number>

Override the scroll source. Defaults to the page via useSmoothScroll.

Default—
spring?
boolean

Spring-smooth the value. Disabled automatically under reduced motion.

Defaulttrue
class?
string
Default—
size?
number

Diameter in px.

Default40
thickness?
number

Stroke width in px.

Default3
container?
HTMLElement | null
Default—

Parallax

Parallax.vue
Scroll 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

bunx --bun shadcn-vue@latest add @beui-vue/parallax

Import the shared styles once in your application.

TSUsage
import Parallax from '@/components/beui/effects/Parallax.vue'
import '@/components/beui/styles.css'

API Reference

speed?
number

Drift 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.3
axis?
"x" | "y"
Defaulty
container?
HTMLElement | null

Scroll container element for contained scroll areas. Defaults to the viewport.

Default—
spring?
boolean

Spring-smooth the drift. Disabled automatically under reduced motion.

Defaulttrue
class?
string
Default—
#default?
slot
Default—

Scroll To

ScrollTo.vue
Intro
Features
Pricing
FAQ

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

bunx --bun shadcn-vue@latest add @beui-vue/scroll-to

Import the shared styles once in your application.

TSUsage
import ScrollTo from '@/components/beui/effects/ScrollTo.vue'
import '@/components/beui/styles.css'

API Reference

to
number | string | HTMLElement

Where to scroll: px offset, selector string or element.

Default—
offset?
number

Extra px offset from the target (e.g. to clear a sticky header).

Default0
duration?
number

Override the ease duration in seconds.

Default—
class?
string
Default—
container?
HTMLElement | null
Default—

Scroll Reveal

ScrollReveal.vue
Scroll ↓
Spring slide
Blur in
Staggered by delay
Reveal once
End

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

bunx --bun shadcn-vue@latest add @beui-vue/scroll-reveal

Import the shared styles once in your application.

TSUsage
import ScrollReveal from '@/components/beui/effects/ScrollReveal.vue'
import '@/components/beui/styles.css'

API Reference

y?
number

Slide distance in px before reveal.

Default16
blur?
number

Enter blur in px (kept ≤ 10 per motion conventions).

Default8
duration?
number

Reveal duration in seconds.

Default.6
delay?
number
Default0
once?
boolean

Reveal only once (default) or every time it enters view.

Defaulttrue
amount?
"some" | "all" | number

Portion of the element that must be visible to trigger.

Default.3
root?
Element | null

Scroll root element for contained scroll areas. Defaults to the viewport.

Default—
class?
string
Default—
#default?
slot
Default—

Updated