Team:UCLA/Template
From 2013.igem.org
(Difference between revisions)
Michaelc1618 (Talk | contribs) |
Dewalgupta (Talk | contribs) |
||
Line 15: | Line 15: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
- | var yPos = -($(window).scrollTop() / $bgobj.data('speed')); | + | //var yPos = -($(window).scrollTop() / $bgobj.data('speed')); |
+ | var yPos = -( ($(window).scrollTop() - $bgobj.offset().top) / $bgobj.data('speed')); | ||
// Put together our final background position | // Put together our final background position |
Revision as of 00:36, 26 September 2013