Scroll navigation component for Slidev
.
Navigate through the slides using the mouse wheel.
npm i slidev-component-scroll
Define this package into your slidev addons.
In your slides metadata (using frontmatter):
---
addons:
- slidev-component-scroll
---
Or in your package.json
:
{
"slidev": {
"addons": [
"slidev-component-scroll"
]
}
}
Create a ./global-top.vue
file in your Slidev
project and use the component:
<template>
<Scroll/>
</template>
Component for the scroll feature:
<Scroll/>