Sunday, October 30, 2022
HomeWordPress Developmentplugins - Auto-scroll to starting of toggle

plugins – Auto-scroll to starting of toggle


I would like a assist with toggles on my web site.
My web page is organized in such approach that there are a number of toggle buttons, and when one is clicked, it expands and exhibits the content material.
If then one other toggle is clicked on, the primary toggle auto-collapses and the opposite expands.

The issue is that – when one other toggle expands its content material, viewing-window will not be set to the start of this toggle. Relying on the scale of the content material in comparison with the content material size of the earlier toggle, generally you must scroll as much as see the content material of the toggle you’ve simply clicked on.
This isn’t very intuitive…

What I wish to ask:
Is there a approach to make sure the web site auto-scrolls to the start of the content material below a toggle when a sure toggle button is clicked on?

Thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments