plugins – Auto-scroll to beginning of toggle


I need a help with toggles on my website.
My page is organized in such way that there are multiple toggle buttons, and when one is clicked, it expands and shows the content.
If then another toggle is clicked on, the first toggle auto-collapses and the other expands.

The problem is that – when another toggle expands its content, viewing-window is not set to 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’ve just clicked on.
This is not very intuitive…

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


user227057 4 weeks 2022-10-29T18:54:38-05:00 0 Answers 0 views 0

Leave an answer