Closed eppel2013 closed 11 years ago
There's nothing obviously wrong from the two snippets you've posted. I would need to see the page in action to debug further. The only thing I can think of is that perhaps you're combining the scripts wrong and doing this:
$(function() {
$('#x').waypoint(function(direction) {
if (direction === "down")
window.onload = function(){
var l = document.getElementById("logo");
var time = 1;
TweenLite.from(logo, time, {left:"-632px", scale:.3,delay:0});
}
}, {
offset: '300',
});
});
});
Where you should be leaving out the onload
handler. But like I said, need to see it to know for sure.
Thank you for the reply !!! This is great!
Hello,
I cannot get the greensock animation function to work with Waypoints
Greensock script:
The idea is to delay the animation until an element is in view.
Have been using this example, but am failing ...
Have been replacing the
window.location.href = 'http://www.startpage.com';
with Greensock script.If you can help, would be much appreciated. thank you