Hello
I'm having an issue with scroll trigger when there are expandable elements on the page such as an accordion or a dropdown.
If I scroll the page without expanding an accordion at the top of the page above the scroll trigger element, it scrolls as expected.
If I expand an accordion then scroll to the scroll trigger element there's a bit of jump as if it's snapping to the element - not smooth at all.
Created a really rough codepen of the issue.
I'm pretty sure it's because the scroll trigger element can't calculate the new height of the page when the accordion is expanded but I can't figure out how to fix it.
I've googled around and searched the forums trying a few things but can't get anything to work. I'm probably missing something really obvious.
Any help would be appreciated.
Thanks