@eunsatio/ngx-smooth-scroll
v1.0.6
Published
Provide simple & configurable & cubic-bezier support smooth scroll for Angular 7+
Downloads
203
Maintainers
Readme
Provide simple, configurable, cubic-bezier support smooth scroll for Angular 7+
Contents
Purpose
Javascript Browser APIs has scrollTo
and scrollIntoView
method. Which allows us to manipulate browser native scroll behavior easily.
But some browser does not supports behavior: 'smooth'
option. Thus, this methods doesn't have options for duration nor timing-function. And we have to seek for workaround to know when this behavior going to ends.
This package is configurable, compatible, easy to use, and uses rxjs.Observable
to notify the subscribers when behavior ends.
Installation
NPM
npm install @eunsatio/ngx-smooth-scroll
Issues
If you found any errors or suggestion to this library, please open an issue.