You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,7 +44,7 @@ Once you’ve got `scrollReveal.min.js` into your project’s JavaScript directo
43
44
Basic Usage
44
45
-----------
45
46
46
-
How does it work? It’s as simple as adding `data-sr` to an element, it will reveal as it enters the viewport.
47
+
How does it work? Just add `data-sr` to an element, and it will reveal as it enters the viewport.
47
48
```html
48
49
<pdata-sr> Chips Ahoy! </p>
49
50
```
@@ -54,8 +55,8 @@ Taking Control
54
55
You guessed it, the `data-sr` attribute is waiting for _you_ to describe the type of animation you want. It’s as simple as using a few **keywords** and natural language.
55
56
```html
56
57
<divdata-sr="enter left please, and hustle 20px"> Foo </div>
57
-
<divdata-sr="enter bottom and move 50px after 1s"> Bar </div>
58
-
<divdata-sr="wait 2.5s and then ease-in-out 100px"> Baz </div>
58
+
<divdata-sr="wait 2.5s and then ease-in-out 100px"> Bar </div>
59
+
<divdata-sr="enter bottom and scale up 20% over 2s"> Baz </div>
59
60
```
60
61
What you enter into the `data-sr` attribute is parsed for specific words:
0 commit comments