UNPKG

waypoints

Version:

Easily execute a function when you scroll to an element

18 lines (15 loc) 235 B
<div class="wp-container"> <div class="before"></div> <div class="sticky"></div> </div> <style type="text/css"> .wp-container { height:3000px; } .before { height:300px; } .sticky { height:50px; } </style>