From 1901d12d5a74734a5eb66481fa1ecef3fe3d0327 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Silva?= <joaopms@users.noreply.github.com>
Date: Thu, 11 Feb 2021 19:16:12 +0000
Subject: [PATCH] Run the animations when the page renders

---
 src/index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/index.js b/src/index.js
index 1bdbc65..0f127f1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -8,6 +8,7 @@ export default {
         const scrollAnimate = ScrollAnimate(Date.now())
         const previousClassName = el.className
         let lastScrollTop = window.pageYOffset
+        scrollAnimate.run(el, binding, {isUpwards: false, previousClassName})
         window.addEventListener('scroll', function() {
           let scrollTop = window.pageYOffset || document.documentElement.scrollTop
           const isUpwards = scrollTop < lastScrollTop
@@ -17,4 +18,4 @@ export default {
       }
     })
   }
-}
\ No newline at end of file
+}