File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg )] ( http://standardjs.com/ ) [ ![ npm] ( https://img.shields.io/npm/dm/localeval.svg )] ( https://www.npmjs.com/package/scrollto-with-animation )
4
4
5
- - Only ** one dependency** * (for the [ polyfill] ( https://www.npmjs.com/package/animation-frame ) )*
6
- - ** Cross-browser**
5
+ - Only ** one dependency** * (for the [ polyfill] ( https://www.npmjs.com/package/animation-frame ) )* for ** rAF cross-browser**
7
6
- ** 60 FPS** Animation
8
7
- If user scrolls while animation is running, scroll animation would be immediately canceled
9
- - Available adding ** script or browserify **
8
+ - Available adding ** script or module **
10
9
11
10
#### [ Live demo] ( https://davesnx.github.io/scrollto-with-animation/docs/demo/index.html )
12
11
@@ -18,15 +17,15 @@ npm install scrollto-with-animation --save
18
17
19
18
## Usage
20
19
21
- ### Available with browserify
20
+ ### Available as a module
22
21
23
22
``` javascript
24
23
var scrollToWithAnimation = require (' scrollto-with-animation' )
25
24
// or ES2015
26
25
import scrollToWithAnimation from ' scrollto-with-animation'
27
26
```
28
27
29
- ### or available as a script
28
+ ### or as a script
30
29
31
30
``` html
32
31
<script src =" scrollToWithAnimation.min.js" ></script >
You can’t perform that action at this time.
0 commit comments