Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions showcase/src/patterns/03.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down