GithubHelp home page GithubHelp logo

hu19891110 / smoothscroll Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamdustan/smoothscroll

0.0 3.0 0.0 74 KB

Scroll Behavior polyfill

Home Page: http://iamdustan.com/smoothscroll/

License: MIT License

JavaScript 44.62% HTML 55.38%

smoothscroll's Introduction

Smooth Scroll behavior polyfill

The Scroll Behavior specification has been introduced as an extension of the Window interface to allow for the developer to opt in to native smooth scrolling. To date this has only been implemented in Firefox.

See it in action https://iamdustan.github.io/smoothscroll

Install

Download the distribution file from this repository and include it in your project.

You can also find it in npm as smoothscroll-polyfill or bower as smoothscroll.

require('smoothscroll-polyfill').polyfill();

Requires requestAnimationFrame polyfill for browsers which don't support it!

Contribute

Fork the repository and run npm install.

After any modification make sure it doesn't break in any of the supported browsers, check linting and build running npm run build and then open a pull request.

Browser Support

Successfully tested in:

  • Safari 6+
  • iOS Safari 6+
  • Chrome (last version)
  • natively supported in Firefox
  • Internet Explorer 9+
  • Microsoft Edge
  • Opera Next

If you have tested this and worked as expected in a different browser let us know so we can add it to the list, if not open an issue providing browser, browser version and a good description about it.

Standards documentation

smoothscroll's People

Contributors

jeremenichelli avatar iamdustan avatar ffuubarbuzz avatar dougroyal avatar dylanpiercey avatar staabm avatar phloe avatar timgluz avatar tjgrathwell avatar trezy avatar ghybs avatar

Watchers

James Cloos avatar hadi avatar  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.