Awesome Open Source
Awesome Open Source

smooth-anchor

Lightweight smooth scrolling polyfill for anchor tags. Every <a href='#'> will result in a smooth scroll and focus to the element referenced in the href.

Install

yarn add smooth-anchor

Usage

import smoothAnchor from "smooth-anchor";

smoothAnchor();

Note

This package also includes smoothscroll-polyfill meaning scrollTo & scrollIntoView will also be polyfilled on your page.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,552,087
Polyfill (512
Related Projects