Smooth scroll component for Vue3 and Nuxt apps. Demo
npm i vb-smooth
<template>
<VBSmooth>
// Your Content...
</VBSmooth>
</template>
<script lang="ts">
import VBSmooth from 'vb-smooth';
export default {
components: { VBSmooth },
};
</script>
<template>
<VBSmooth>
<router-view />
</VBSmooth>
</template>
<script lang="ts">
import VBSmooth from 'vb-smooth';
export default {
components: { VBSmooth },
};
</script>
Check out options at docs.
<template>
<VBSmooth :options="options">
// Your Content...
</VBSmooth>
</template>
<script lang="ts">
import { ref } from 'vue';
import VBSmooth from 'vb-smooth';
export default {
components: { VBSmooth },
setup() {
const options = ref({
// options
});
return {
options,
};
},
};
</script>