File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1114,7 +1114,7 @@ <h2>Usage with Javascript</h2>
1114
1114
< p > You can also use a simple function to add the animations classes and remove them automatically:</ p >
1115
1115
< pre > < code class ="language-javascript "> const animateCSS = (element, animation, prefix = 'animate__') =>
1116
1116
// We create a Promise and return it
1117
- return new Promise((resolve, reject) => {
1117
+ new Promise((resolve, reject) => {
1118
1118
const animationName = `${prefix}${animation}`;
1119
1119
const node = document.querySelector(element);
1120
1120
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ You can also use a simple function to add the animations classes and remove them
30
30
``` javascript
31
31
const animateCSS = (element , animation , prefix = ' animate__' ) =>
32
32
// We create a Promise and return it
33
- return new Promise ((resolve , reject ) => {
33
+ new Promise ((resolve , reject ) => {
34
34
const animationName = ` ${ prefix}${ animation} ` ;
35
35
const node = document .querySelector (element);
36
36
You can’t perform that action at this time.
0 commit comments