ng2-backtop
v1.0.0
Published
Backtop-Angular2 Directive/Component <br/> This is a Backtop Directive/Component for Angular 2.
Downloads
2
Readme
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
#Tested in:
- Chrome
- Firefox
- Safari