This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source https://codepen.io/juliangarnier/pen/gmOwJX | |
// (C) Julian Garnier | |
// Adapted by Lilian Besson (Naereen) https://github.com/Naereen | |
// to add a fireworks effect on a reveal.js slideshows | |
var canvasEl = document.querySelector('.fireworks'); | |
var ctx = canvasEl.getContext('2d'); | |
var numberOfParticules = 40; | |
var pointerX = 0; | |
var pointerY = 0; |