It\'s quite straightforward to detect the scroll direction when scrolling page with static size. But if one of the elements is a sticky header and changes the height while s