v-scroll-to-top

A simple scroll to top button for Vue

Usage no npm install needed!

<script type="module">
  import vScrollToTop from 'https://cdn.skypack.dev/v-scroll-to-top';
</script>

README

v-scroll-to-top

A simple scroll to top button for Vue

Demo

demo

Installation

npm

npm install v-scroll-to-top --save

Usage

import Vue from 'vue'
import VScrollToTop from 'v-scroll-to-top'

Vue.use(VScrollToTop)
SomeComponent.vue
<template>
  <v-scroll-to-top></v-scroll-to-top>
</template>

GitHub

https://github.com/captain-melanie/vue-scroll-to-top