Skip to content

q9164110/backToTop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backToTop — Dependence zeptoJs

DEMO

Contribution Guides:

Based on zeptojs, encapsulation of a back top plug

  1. Import file

    <script src="zepto.min.js"></script>
    <script src="backToTop.js"></script>
  2. then

    $('.element').backToTop({
      type:'doubleTap',
      duration:500,
      target:100
    })

documentation

options

  • type {String}, default is 'tap'
    • doubleTap, longTap, tap, click
  • target {Number}, Moving target point
  • duration {Number} Moving of time
    • must be ms
  • easing {String}, Moving of easing
    • linear, ease-in, ease-out

How to build your own BackToTop

git clone https://github.com/itstrive/backToTop.git

Questions?

If you have any questions, please contact me.

LICENSE

MIT

About

Dependence zeptoJs, backToTop module by strive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.9%
  • HTML 45.1%