On-click event: move to the top of the view port (help)

Is it possible to add an “on-click” move element to top of page? I have created an accordion style section and on click to reveal/show I would also like the content area to move to the top of the view port. ex - button clicked, accordion opens, section moves to top of screen. Is this possible in webflow?

You need to give an ID to each accordion div and then add a button or link element to each accordion element and set the link to anchor to the appropriate ID.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.