Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.46 KB

VUE2_README.md

File metadata and controls

54 lines (43 loc) · 1.46 KB

vue-scroll-up

vue2 npm npm npm

Installation

Get from npm / yarn:

npm i vue-scroll-up@1.1.0
yarn add vue-scroll-up@1.1.0

or just include vue-scroll-up.js to your view like

<script src='./vue-scroll-up.js'></script>

Usage

Use this inside your app:

import ScrollUp from 'vue-scroll-up'

export default {
  name: 'app',
  components: {
    ScrollUp,
  }
}
With Default CSS
import 'vue-scroll-up/dist/style.css'

or just include style.css

The scroll button class name is vue-scroll-up

HTML
<scroll-up :scroll-duration="1000" :scroll-y="250"></scroll-up>

Props

Property Type Default Value Description
scroll-duration Number 1000 Page to top speed.
scroll-y Number 250 Show button when scrollY equals a number.