Closed jhrtn closed 2 years ago
Done some more tweaks to the easing and added the colours to the bin levels. The shader adds really interesting effect as the digits fade out
@shiffman Could you take a quick look and see if you're happy to merge this initial changes?
https://macrodata-refinement-git-feature-updated-bin-animation-jhrtn.vercel.app/
Hey! This is fantastic! I'm getting some weird behavior, however, with the digits starting to move either before I release or perhaps with a long-ish delay after I release? So the interaction feels a little off. I'm happy to take a look at it to see if I can figure out why! Are you noticing this too? I can screen record an example if not.
I actually added that pause intentionally follow this reference:
I added a variable this.binPause
inside data.js
. This is decremented inside goBin()
, the scale of the digit increases and once it reaches zero we send the digits to the bin.
binPause
is set to 30, so at 30fps that's a delay of 1 second.
The aim was to have the doors fully open before the numbers start moving. Happy to reduce this time if it feels off, or remove it altogether!
Let me know and I can make the changes
I've reduced the pause time a bit from 30 frames to 8 which makes things feel a bit more snappy
macrodata-refinement-git-feature-updated-bin-animation-jhrtn.vercel.app
Allright, let's try this we can always adjust as needed!
Working to address #32
demo: https://macrodata-refinement-git-feature-updated-bin-animation-jhrtn.vercel.app/