ng2-backtop

1.0.0 • Public • Published

ng2-backtop

Backtop-Angular2 Directive/Component
This is a Backtop Directive/Component for Angular 2.

GitHub

Please fell free to declare issues or contribute : https://github.com/psykolm22/ng2-backtop

#Prerequies

FontAwesome : http://fontawesome.io/

Installation

npm i --save ng2-backtop

Usage

  • in your app.component.html :
<backtop scrollspeed=600 buttontheme="light"></backtop>
  • Add BacktopModule in your app.module.ts:
import {BacktopModule} from 'ng2-backtop';

@NgModule({
    ...
    import: [..., BacktopModule]
})

#Options Options for Backtop

  • Choose speed to scroll top : example : 100(very fast) - 10000(very slow)
  scrollspeed = 600 (default)
  • buttontheme CSS Style : choose to ligth or dark or create your own theme based on ng2-backtop.css
  buttontheme = ligth

Dark Theme Ligth Theme

#Tested in:

  • Chrome
  • Firefox
  • Safari

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

Package Sidebar

Install

npm i ng2-backtop

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • psykolm22