Jquery waypoints - destroy sticky when parent element is 50% passed -
im sure simple have been @ bit , cant seem syntax right. have series of sections containing captions fixed top when parent hits top of page. want destroy sticky when parent element 50% past top cant seem right.
heres declare waypoints - ive tried writing handler within target captions , destroy waypoint havent gotten working.
$('.content').each(function() { new waypoint.inview({ element: this, enter: function(direction) { $(this.element).addclass('active') }, exited: function(direction) { $(this.element).removeclass('active') } }) new waypoint.sticky({ element: $(this).children('.caption') }) });
Comments
Post a Comment