Hello
Kind of following on from this thread, I'm getting an error where a section lower down the DOM is being triggered at the very top, on page load.
To explain, I've got sections on a page which have colour attributes which are then used to change the background colour of the wrapping parent element as they are triggered. There is also a horizontal slider that does the same as each slide comes into view.
However, on page load the first slide (orange), which is the 4th section down here, updates the wrapper background colour instead of the first DOM section. Is it because it's a pinned element so it triggers the onEnter when the page loads and if so, can I delay that or something?
The first section works as expected when scrolling back up the page.
If it makes any odds the final site will be dynamic/flexible/CMS so needs to work wherever it may be placed on the page.
Thanks