For some reason classes don’t seem to work in webflow when you try to select them like this instead of using IDs. For example:
var x = document.getElementsByClassName("myClass"); var x = document.querySelectorAll("myClass");
I need to animate something with gsap in webflow but access a ton of elements with the same class name and stagger them, however IDs only seem to work inside webflow.
Anyone have any idea why this is?