In this video I will teach you how to recreate the Google Thanos easter egg in under 40 lines of code. We will use the html2canvas and disintegrate.js JavaScript libraries to make the Thanos snap effect. The video will cover how to setup all the dependencies for the project as well as how to configure disintegrate.js to create a custom particle effect.

On top of covering disintegrate.js we will also focus on covering how to build rectangles using canvas for the particles and how to create smooth animations using JavaScript and a bit of math.


Materials/References:

Disintegrate.js: https://github.com/ZachSaucier/Disintegrate
Html2canvas: https://github.com/niklasvh/html2canvas
GitHub Code: https://github.com/WebDevSimplified/Thanos-Snap
Code Pen Code: https://codepen.io/WebDevSimplified/pen/dEGBgR


🧠 Concepts Covered:

- Disintegrate.js
- How to build rectangles in canvas
- Custom particle systems in disintegrate.js
- How to be Thanos
- How to make cats disappear


Find Me Here:

Twitter: https://twitter.com/DevSimplified
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


#Thanos #JavaScript #ThanosSnap