From b1ae03a1d825660efdb37355e92d29ab960bc014 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 10 Oct 2023 20:33:19 +0200 Subject: [PATCH] wait #6388 @0.25 --- js/quiz.animations.js | 4 ++++ js/quiz.js | 3 +++ js/quiz.screen.intro.js | 1 - style/101-header-footer.sass | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/js/quiz.animations.js b/js/quiz.animations.js index d9a22a2..d13c662 100644 --- a/js/quiz.animations.js +++ b/js/quiz.animations.js @@ -126,6 +126,10 @@ QuizAnimations.prototype = { $(".active-screen .list-item").addClass("complete") } }, .7) + }, + + globalAnimations:function(){ + gsap.fromTo('#credits',{y:50} ,{y:0,duration:.5},0.35); } } diff --git a/js/quiz.js b/js/quiz.js index ef6e390..ff022a8 100644 --- a/js/quiz.js +++ b/js/quiz.js @@ -74,6 +74,9 @@ Quiz.prototype = { } this.screens.showScreen('q-' + (state.q + 1), callback); } + + this.animations.globalAnimations(); + this.progressbar.update(); }, diff --git a/js/quiz.screen.intro.js b/js/quiz.screen.intro.js index b2cfdad..6ef01bc 100644 --- a/js/quiz.screen.intro.js +++ b/js/quiz.screen.intro.js @@ -29,7 +29,6 @@ QuizScreenIntro.prototype = { .to("#start", { y: 0, }, .2) - .fromTo('#credits',{y:50}, {y: 0, duration: .5}, .3) .from(title.words, { opacity: 0, y: 20, duration: .2, stagger: 0.05 }, .5) diff --git a/style/101-header-footer.sass b/style/101-header-footer.sass index ac1a802..9af7e19 100644 --- a/style/101-header-footer.sass +++ b/style/101-header-footer.sass @@ -100,7 +100,7 @@ header font-size: 12px position: absolute bottom: 20px - right: 20px + right: 25px color: $texts-color opacity: 0.7 z-index: 100 -- 2.39.5