imakewebthings / waypoints

Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.
http://imakewebthings.com/waypoints/
10.38k stars 1.33k forks source link

Thier is a way to check if offset is true by deafult (without scroll)? #603

Closed Ezra-Siton-UIX closed 5 years ago

Ezra-Siton-UIX commented 5 years ago

Example - the trigger element is 40pxfrom the top of the window (by deafult). And i set the offset to 50(So by deafult waypoints function run - without anyscroll),

I get some bugs when this secnario happens in my code (Mix with type.js). So i want somehow to tell the code "if offset is less than top" do X.

https://codepen.io/ezra_siton/pen/GzEKav