Plugins – Auto-scroll to beginning of toggle

I need help toggling on my website. My page is organized in such a way that there are several toggle buttons, and when one is clicked, it expands and shows the content. If then another toggle is clicked, the first toggle is automatically collapsed and the second one is expanded.

The problem is – when another toggle expands its content, the viewing-window is not set at the beginning of this toggle. Depending on the size of the content compared to the content length of the previous toggle, sometimes you have to scroll up to see the content of the toggle you just clicked on. It’s not very easy‚Ķ

What I want to ask: Is there a way to ensure the website auto-scrolls to the beginning of the content under the toggle when a certain toggle button is clicked?

Thank you!

Leave a Comment