I’m trying to write a pretty simple js interaction on my site.
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.
this has worked before on my non-webflow website. and I don’t think there’s a way to do it with webflow interactions (without using custom code).
Here is my public share link: https://preview.webflow.com/preview/gentleoriental?utm_medium=preview_link&utm_source=dashboard&utm_content=gentleoriental&preview=4f9b283bb12a178183ac589a58100501&mode=preview
(how to access public share link)