Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate a jquery fixed animation without some overlapping animation
    primarykey
    data
    text
    <p>I have this animation <a href="http://codepen.io/DWboutin/pen/DFJze" rel="nofollow">http://codepen.io/DWboutin/pen/DFJze</a></p> <p>When i go fast over these tabs, the animations makes really weirds things.</p> <p>How can i stop that? I tried .stop(true,true), i tried to create queue but i can make this cleaner.</p> <p>This function is triggered when mouseenter</p> <pre><code>var becomeBigger = function(element){ deplace(element.index(),function(){ element.dequeue(); element.queue(function(){ $(this).animate({top: '118px', height: '435px',width: '248px'},settings.timeAnimIn,settings.easingIn,function(){ $(this).addClass('active'); deplace(element.index()); }); $(this).children('.img').children('.noiretblanc').animate({'opacity':0},settings.timeAnimIn,settings.easingIn); $(this).children('.img').children('.couleur').animate({opacity: 1, top: '-321px'},settings.timeAnimIn,settings.easingIn); $(this).children('.img').animate({height: '321px'},settings.timeAnimIn,settings.easingIn); $(this).children('.titre').animate({height: '57px', width: '228px', backgroundColor: '#4696a7'},settings.timeAnimIn,settings.easingIn); $(this).children('.titre').children('h2').animate({fontSize : '22px'},settings.timeAnimIn,settings.easingIn); $(this).children('.titre').children('h3').animate({fontSize : '18px'},settings.timeAnimIn,settings.easingIn); $(this).children('.btn-verso').css({backgroundPosition : '0 0'}); $(this).dequeue(); }); }); } </code></pre> <p>And this one on mouseleave</p> <pre><code>var recoverSize = function(element){ replace(element.index(),function(){ element.queue(function(){ $(this).removeClass('active'); $(this).animate({top: '148px',height: '385px',width: '214px'},settings.timeAnimOut,settings.easingOut); $(this).children('.img').children('.noiretblanc').animate({'opacity':1},settings.timeAnimOut,settings.easingOut); $(this).children('.img').children('.couleur').animate({opacity: 0, top: '-277px'},settings.timeAnimOut,settings.easingOut); $(this).children('.img').animate({height: '277px'},settings.timeAnimOut,settings.easingOut); $(this).children('.titre').animate({height: '50px', width: '194px', backgroundColor: '#959595'},settings.timeAnimOut,settings.easingOut); $(this).children('.titre').children('h2').animate({fontSize : '20px'},settings.timeAnimOut,settings.easingOut); $(this).children('.titre').children('h3').animate({fontSize : '16px'},settings.timeAnimOut,settings.easingOut); $(this).children('.btn-verso').css({backgroundPosition : '0 -72px'}); $(this).dequeue(); }); }); } </code></pre> <p>Thank you for all your help</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload