From fd0465ede7130c402029a36fb492adcb7a5af2d0 Mon Sep 17 00:00:00 2001 From: Vittorio Gissara <65747989+drKreshel@users.noreply.github.com> Date: Fri, 15 Jan 2021 01:50:55 -0300 Subject: [PATCH] Update 03.js --- showcase/src/patterns/03.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/showcase/src/patterns/03.js b/showcase/src/patterns/03.js index 68e2531..3178cef 100644 --- a/showcase/src/patterns/03.js +++ b/showcase/src/patterns/03.js @@ -91,20 +91,14 @@ const useClapAnimation = ({ }) const scaleButton = new mojs.Html({ - el: burstEl, - duration: tlDuration, + el: clapEl, + duration: 0, + }).then({ scale: { 1.3: 1 }, - easing: mojs.easing.out + duration: tlDuration, + easing: mojs.easing.out, }) - if (typeof burstEl === 'string') { - clap.style.transform = 'scale(1, 1)' - const el = document.getElementById(id) - el.style.transform = 'scale(1, 1)' - } else { - burstEl.style.transform = 'scale(1, 1)' - } - const updatedAnimationTimeline = animationTimeline.add([ countAnimation, countTotalAnimation,