diff --git a/docs/index.html b/docs/index.html index c622f7e..cc42d0f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1114,7 +1114,7 @@ element.style.setProperty('--animate-duration', '0.5s');

You can also use a simple function to add the animations classes and remove them automatically:

const animateCSS = (element, animation, prefix = 'animate__') =>
   // We create a Promise and return it
-  return new Promise((resolve, reject) => {
+  new Promise((resolve, reject) => {
     const animationName = `${prefix}${animation}`;
     const node = document.querySelector(element);
 
diff --git a/docsSource/sections/04-javascript.md b/docsSource/sections/04-javascript.md
index ea4e1e9..75097a6 100644
--- a/docsSource/sections/04-javascript.md
+++ b/docsSource/sections/04-javascript.md
@@ -30,7 +30,7 @@ You can also use a simple function to add the animations classes and remove them
 ```javascript
 const animateCSS = (element, animation, prefix = 'animate__') =>
   // We create a Promise and return it
-  return new Promise((resolve, reject) => {
+  new Promise((resolve, reject) => {
     const animationName = `${prefix}${animation}`;
     const node = document.querySelector(element);