5
I have a menu with accordion effect I need to find out how high this menu, remembering that the height is dynamic, IE when it has some open element it gets bigger.
After that it is necessary to discover the position of the element clicked in relation to the scroll.
Basically what I’m trying to do is when clicked on the item I recognize the height of the menu and its position in scroll,then I move up the screen x% to center the content clicked.
Any help is welcome, thank you
The answer given is correct? Solved your problem? Don’t forget to vote yes and choose the correct answer.
– user3603