Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( typeof Waypoint !== 'undefined' ) {
- $('.watch-scroll').each(function(){
- new Waypoint({
- element: $(this),
- handler: function(direction) {
- var el = $(this.element);
- if( !el.hasClass('in-view') ) {
- el.addClass('in-view');
- }
- },
- offset: '90%',
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement