I have a menu with accordion effect I need to find out how tall this menu is, remembering that the height is dynamic, ie when it has some open element it gets bigger.
Then you need to find the position of the clicked element relative to the scroll.
Basically what I'm trying to do is when I click on the item I recognize the height of the menu and its position on the scroll, then I go up the screen x% to center the clicked content.
Any help is welcome, thanks