Plugins – Auto-scroll to beginning of accordion item

I need help with an accordion item on my website. My page is organized in such a way that there are several accordion items, and when one is clicked, it expands and shows the content. If another accordion is clicked again, the first accordion is automatically collapsed and the second one is expanded.

The problem is – when another accordion expands its content, the viewing-window is not set to the beginning of this accordion. Depending on the size of the content compared to the content length of the previous accordion, sometimes you have to scroll up to see the content of the accordion 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 content under an accordion when a certain accordion button is clicked?

Leave a Comment