1.0.5 • Published 6 years ago

v-back v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

v-back

back to the top

Installation

npm

$ npm i v-back -S

Usage

main.js:

import Vue from 'vue'
import App from './App.vue'
import VBack from 'v-back'

Vue.use(VBack)

// or with options
Vue.use(VBack, {
  el: '#wrapper',
  duration: 300
})

new Vue({
  el: 'body',
  components: {
    App
  }
})

template:

<span v-back="50">
  top
</span>

Scroll to the top 50

use v-back in the container

Vue.use(VBack, {
  el: '#wrapper',
  duration: 300,
  distance: '50px'
})

Constructor Options

keydescriptiondefaultoptions
elscroll containerwindowString
durationRolling time300Number
distanceWhen does the scrolling element appear?Always appearString
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago