![]() If you want to watch tests as you write your code run yarn test -watch. On tests files we are using ES2015, but the polyfill is written in ES5 for browser compatibility. This is a polyfill, not library, so make sure the behavior you are introducing is in the spec. If you don't, a precommit hook will prevent you from pushing code that hasn't been formatted properly.Īre you done? Awesome, submit a pull request explaining your changes. The Scroll Behavior specification has been introduced as an extension of the Window interface to allow for the developer to. In this project we use Prettier to format the final published code, you can run yarn format before committing. ![]() Create a feature branch, write your stuff and run yarn test to check code style and prevent bugs. Method of specifying the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs. To date this has only been implemented in Chrome, Firefox and Opera. The requirements to contribute are yarn and the latest LTS Node.js version.įirst, fork the repository and do yarn install in the root folder to get all the dependencies to work with. 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. The feature of this plug-in is that the page scrolling behavior is taken. We strongly recommend not to do this unless your project strongly needs it. What is smoothscroll-polyfill It is a smooth scrolling plugin for pure JS pages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |