@universityofmaryland/scroll-top
v0.0.5
Published
Scroll To Top
Downloads
6
Keywords
Readme
<umd-scroll-top> element
Installation
$ yarn add @universityofmaryland/scroll-top
Basic Usage
Import the utility header in your js if you bundle using a transpile with babel or typescript.
import '@universityofmaryland/scroll-top';
HTML usage
<umd-scroll-top show-mobile="true" position-bottom="30vh"></umd-scroll-top>
Optional Attributes
- show-mobile: defaults to false
- position-bottom: defaults to length of view
License
Distributed under the MIT license. See LICENSE for details.