Developing a scratch card track reveal for Pop Smoke
UX Collective
JULY 27, 2021
Each particle has a x position, y position, x velocity, y velocity, and color. getRandomArbitrary(min, max) { return Math.random() * (max - min) + min } We can then animate these particles using the requestAnimationFrame method so they appear to fall down the screen.
Let's personalize your content