css-animations

What codes for the confetti in docker/welcome-to-docker?


I was recently impressed by the nuanced, physically realistic motion of the falling confetti in the confetti animation in the docker/welcome-to-docker image used in the introductory tutorial by docker.

docker run -d -p 8080:80 docker/welcome-to-docker #then open http://localhost:8080

What is the code behind this confetti sim? How do I extract it?

a screenshot of the running container webpage


Solution

  • The full source code for docker/welcome-to-docker can be found at the GitHub repo docker/welcome-to-docker. In particular, the particles are created using the tsParticles library as seen in src/Confetti.js.