Adding WebGL and Three.js effects in Webflow

Hey, I stumbled upon this tutorial to add some neat effects on images using WebGL and Three.js. But am kinda confused as to how to incorporate that code. Any tips or advice on where to start would be greatly appreciated!
Tutorial: Interactive WebGL Hover Effects | Codrops
Preview of Effect: Interactive Hover Effects with Three.js | Demo 3