-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
When the page loads my js performs a series of animations and triggers the parallax at the end but the parallax effect only starts when i move my mouse out of the window and turn back again.
the parallax effect is inside a function...
ativaParallax: function(){
$('.parallax-layer').parallax(
{mouseport: jQuery('header'), decay:0}, //configurações gerais
{xparallax:'10px', yparallax:'4px', xorigin:0.5, yorigin:0}, //logo
{xparallax:'25px', yparallax:'10px', xorigin:0.35, yorigin:0.48}, //torcedores
{xparallax:'50px', yparallax:'20px', xorigin:0.55, yorigin:0.60}, //torcedor
{xparallax:'80px', yparallax:'40px', xorigin:0.55, yorigin:0.69} //mesa
);
}
Wich is called at the callback of an animate event...
mostraCallToAction: function(){
$('.resg-ing').animate({top:'91px', opacity:1}, 500, 'easeOutQuart', function(){ home.ativaParallax(); });
},
Did anyone get this problem?
Metadata
Metadata
Assignees
Labels
No labels