A Pen created at CodePen.io. You can find this one at https://codepen.io/linrock/pen/Amdhr.

 A vanilla.js canvas confetti animation. Move the mouse to change direction.