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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -