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

Menu

Scroll Animation

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—

Updated