Components

BaseReveal

Animates a block the first time it enters the screen, honouring reduced motion.

components/ui/animations/BaseReveal.vue
View in the demo

Example

Press the button to play the four animations again.

fade

zoom

slide-x

slide-y

Motion explains the presets and the rules: one reveal per block and never on the hero text.

API

Props

Name
Type
Default
Description
animationRevealAnimation"fade"fade, zoom, slide-x or slide-y.
distancenumber24Pixels travelled by the slides.
delaynumber0Seconds before starting.
trigger"in-view" | "mount""in-view"in-view or mount.
tagstring"div"The element to render.

Slots

Name
Slot props
Description
#default—The block to animate.
© 2026 melsami UI.
Developer documentation for melsami UI.