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 |
|---|---|---|---|
animation | RevealAnimation | "fade" | fade, zoom, slide-x or slide-y. |
distance | number | 24 | Pixels travelled by the slides. |
delay | number | 0 | Seconds before starting. |
trigger | "in-view" | "mount" | "in-view" | in-view or mount. |
tag | string | "div" | The element to render. |
Slots
Name | Slot props | Description |
|---|---|---|
#default | — | The block to animate. |