Back to Top
This is actually a directive and not a component. It allows to make visible any DOM elements (like buttons) which appear after a certain scroll offset. When clicked/tapped they take the user to the top of the page.
Basic Usage
|
Vue Modifiers
Vue Modifier | Description |
---|---|
animate | Adds scrolling animation |
Vue Binding Value
You can use the binding value in 3 forms:
- No value. Defaults will apply.
- As a Number. This will be the scroll offset after which DOM element will be made visible.
- As an Object with
offset
and/orduration
as props. Duration is ignored ifanimate
modifier is not used.