Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

itstrive/backToTop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 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
bower install tinyBack
npm install tiny-back -D

Questions?

If you have any questions, please contact me.

LICENSE

MIT

npm address

https://www.npmjs.com/package/tiny-back

About

Dependence zeptoJs, backToTop module by strive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /