@eunsatio/ngx-smooth-scroll

Provide simple & configurable & cubic-bezier support smooth scroll for Angular 7+

Usage no npm install needed!

<script type="module">
  import eunsatioNgxSmoothScroll from 'https://cdn.skypack.dev/@eunsatio/ngx-smooth-scroll';
</script>

README

Agular Smooth Scroll

Demo Version Angular License

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.

Author

SeemsPyo(@eunsatio) Github, Homepage