I’ve been following this tutorial on Youtube where they’re recreating an image gallery interaction from a portfolio website. I’m a newbie, so I can’t comprehend how a certain function works. But halfway through the tutorial, I stumbled over an Uncaught TypeError.
Uncaught TypeError: gallery.animate is not a function at window.onmousemove
Here’s the javascript file from the video: script.js. Am I doing something wrong?