Jan. 10th, 2012

theaeblackthorn: (Default)
waypoints. New favourite jquery plugin \o///


		$.waypoints.settings.scrollThrottle = 30;
		
		$('#module_nav_3').waypoint(function(event, direction) {
			if (direction === "down")
			{
				$(this).parent().parent().toggleClass('sticky');
				laoffset = 45;
			} else {
				$(this).parent().parent().toggleClass('sticky');
				laoffset = 0;
			}
			
			event.stopPropagation();
		});

	
		$('#scroll_point_two').waypoint(function(event, direction) {
			if (direction === "down")
			{
				$('#module_nav_wrapper img').animate({ left: "280px" }, { duration: 'fast', easing: 'swing'});		
			} else {
				$('#module_nav_wrapper img').animate({ left: "82px" }, { duration: 'fast', easing: 'swing'});		
			}
			event.stopPropagation();
		});


Profile

theaeblackthorn: (Default)
theaeblackthorn

February 2013

S M T W T F S
     12
3 456789
10111213141516
17181920212223
2425262728  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 27th, 2017 12:39 pm
Powered by Dreamwidth Studios