1.0.1 • Published 6 years ago

ngx-scrollup v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

ngx-scrollup

This project is build using Angular 5.x.

Installation

Use npm install ngx-scrollup to install it to your project.

In your app.module.ts

Add , import {ScrollupModule} from 'ngx-scrollup' to add the reference to your project.

Update your import array like this

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...
    ScrollupModule
    ...
  ],
  providers: [],
  bootstrap: [AppComponent]
})

You can give scrollDuration by yourself or default is of 200ms. Example :

<scrollup duration="40"></scrollup>

Feel free to contribute to the project at github Here