"Scroll to top of page" component for deku
npm install deku-scroll-up> "Scroll to top of page" component for deku
```
$ npm install --save deku-scroll-up
`js
import ScrollUp from 'deku-scroll-up';
export function render() {
return (
UP!
);
}
`
Required
Type: number
At what distance from top the element will be displayed.
Type: number 0
Default:
Position to which you will be moved on click.
Type: number 500
Default:
Time in milliseconds it will take to reach the top position.
Type: string out-circ
Default:
Type of scrolling easing. Complete list can be found here.
Type: string`
Add classes to the element
MIT © Andreas Gillström