[Solved] Why isn’t anime.js working in my browser?
You need to load your main.js at the end of the body tag, so the DOM has been loaded by the time your script executes. If you put it in the head (above the body), the DOM has not loaded your elements yet, so anime.js doesn’t find them. This is why the codepen works but … Read more