Skip to content

Commit de12ea8

Browse files
committed
Fix function usage on docs. Fix #1075
1 parent 1fcabbd commit de12ea8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,10 +1110,10 @@ <h2>Usage with Javascript</h2>
11101110
});
11111111
</code></pre>
11121112
<p>And use it like this:</p>
1113-
<pre><code class="language-javascript">animateCSS('.my-element', 'animate__bounce');
1113+
<pre><code class="language-javascript">animateCSS('.my-element', 'bounce');
11141114

11151115
// or
1116-
animateCSS('.my-element', 'animate__bounce').then((message) =&gt; {
1116+
animateCSS('.my-element', 'bounce').then((message) =&gt; {
11171117
// Do something after the animation
11181118
});
11191119
</code></pre>

docsSource/sections/04-javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ const animateCSS = (element, animation, prefix = 'animate__') =>
5151
And use it like this:
5252

5353
```javascript
54-
animateCSS('.my-element', 'animate__bounce');
54+
animateCSS('.my-element', 'bounce');
5555

5656
// or
57-
animateCSS('.my-element', 'animate__bounce').then((message) => {
57+
animateCSS('.my-element', 'bounce').then((message) => {
5858
// Do something after the animation
5959
});
6060
```

0 commit comments

Comments
 (0)