See how you can control #granular when to trigger an event when css:sticky happens
You have to consider the sentinel height and position to trigger the event to correspond with the sticky posittion and the element's height. Check this article for more details