![]() ![]() ⚠ Has to be set global (on html), check the docs for limitationsīecause CSS properties unknown to a browser can't efficiently be parsed from JavaScript, just specyfing the normal scroll-behavior property is not enough unfortunately. Smooth scroll to target when clicking an anchor Smooth scroll to target on hashchange ( / buttons) Updates URL with fragment Handles focus for improved accessibility Doesn't break server-side rendering 1.3KB gzipped Requires smooth scroll for window.scroll () and Element.scrollIntoView () (e.g. * hashchange navigation triggered by forwards/backwards buttons isn't smooth despite native support. ⚠ Requires smooth scroll for window.scroll() and Element.scrollIntoView() (e.g. Scribd is the world's largest social reading and publishing site. User agents should follow platform conventions, if any. Smoothscroll.js.LICENSE - Free download as Text File (.txt), PDF File (.pdf) or read online for free. ![]() It is also free to use on any individual website. // You may use it in your theme if you credit me. ✔ Handles focus for improved accessibility The scrolling box scrolls in a smooth fashion using a user-agent-defined timing function over a user-agent-defined period of time. // SmoothScroll for websites v1.2.1 // Licensed under the terms of the MIT license.✔ Smooth scroll to target on hashchange ( ◀/ ▶ buttons).✔ Smooth scroll to target when clicking an anchor SmoothScroll.js // // SmoothScroll for websites v1.2.1 // Licensed under the terms of the MIT license.⚓ Apply smooth scroll to anchor links to polyfill the CSS property scroll-behavior ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |