Basically my projects are in modals on the “work” page, and when you click the “X” button in the modal to exit the project, i want the project to scroll to top .scrollTop(0) which I tried down below in the custom code snippet, but it isn’t working and I’m not really sure what to do.
Thanks for the reply! I tried that but it also didn’t work. Im trying to scrollTop the modal which isn’t the body (body is fixed so you can’t scroll it anyway I think).
Hey, there’s this one thing here: Your class names actually become lowercase whenever you publish with Webflow. They do this annoying thing with publishing the website and changing the class names.
So closeButton in the designer will actually become closebutton in the live version
oh wow i had no idea, thank you! I was trying to figure out how the selectors are converted to css/html for a while so i could make sure i was referencing them correctly. I’ll try it now and see if it works!