GithubHelp home page GithubHelp logo

scrolling's Introduction

scrolling

简介

移动端带滚动效果的返回顶部、返回指定位置

示例

扫一扫 DEMO链接

使用方法

document.querySelector('.back_up').addEventListener('click',function(){
    scrolling();
},false);

或者加参数

scrolling({
    // 参数
});

参数列表

参数 说明 默认值 可填值
dom 滚动到指定DOM的位置 网页顶部 js对象
speed 滚动速度(ms) 500 数字
callback 滚动完毕回调 function(){}

版本

0.1.0(160717)

  • 支持滚动到指定DOM的位置
  • 支持滚动速度
  • 支持滚动完毕回调

scrolling's People

Contributors

ximan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.