From 3136466e5b34deac0ad0692058ba6b72963954ed Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Tue, 16 Nov 2021 11:18:12 +0530 Subject: [PATCH] The Navbar Animation is Too Slow Fixes #12 --- docs/assets/js/main.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index 344a041..e67dfbd 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -400,42 +400,42 @@ var t1 = new TimelineMax({ paused: true }); - t1.to(".one", 0.8, { + t1.to(".one", 0.1, { y: 9, autoAlpha: 0, - ease: Expo.easeInOut + // ease: Expo.easeInOut }); - t1.to(".two", 0.8, { - ease: Expo.easeInOut, + t1.to(".two", 0.1, { + // ease: Expo.easeInOut, delay: -1 }); - t1.to(".tre", 0.8, { + t1.to(".tre", 0.1, { y: -9, autoAlpha: 0, - ease: Expo.easeInOut, + // ease: Expo.easeInOut, delay: -1 }); - t1.to(".over-all", 1, { + t1.to(".over-all", 0.1, { autoAlpha: 1, - ease: Expo.easeOut, + // ease: Expo.easeOut, }) - t1.to(".bg-nav", 1, { + t1.to(".bg-nav", 0.1, { autoAlpha: 1, - ease: Power4.easeOut, + // ease: Power4.easeOut, delay: -1 }) - t1.to(".menu", 1, { + t1.to(".menu", 0.1, { autoAlpha: 1, - ease: Expo.easeOut, + // ease: Expo.easeOut, delay: -1 }) t1.staggerFrom(".menu ul li", 3, { y: 50, opacity: 0, - ease: Power4.easeInOut, + // ease: Power4.easeInOut, }, '0.1', '-0.01');