1.3.0 • Published 2 years ago
@illa-design/back-top v1.3.0
BackTop
When scrolling to the height, a button to return to the top will appear in the lower right corner.
Installation
yarn add @illa-design/backtopImport component
import { Backtop } from "@illa-design/backtop"API
Backtop Basic Properties
| Props | Desc | Type | Default |
|---|---|---|---|
| visibleHeight | When scrolled to this height, the back to top button is visible. | number | 400 |
| target | Set the element whose scroll event needs to be listened to | () => HTMLElement | Window |
| onClick | Callback function when click returns to top | () => void | - |
| easing | Scroll to top easing type | string | quartOut |
| duration | Time to scroll to top | number | 400 |
Examples
Basic usage
<Backtop />Set visible height
<TestBackTop visibleHeight={400} />Set duration to scroll to top
<TestBackTop duration={400} />1.2.0
2 years ago
1.3.0
2 years ago
1.0.29
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.30
2 years ago
1.1.0
2 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.26
2 years ago
1.0.25
2 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.20
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.9
3 years ago
0.0.16
3 years ago
0.0.17
3 years ago
0.0.8
3 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago