Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How can I prevent jquery.hover() from flickering other elements when moving the mouse between elements?
- function wkHover(){
- $('.worksItem').hover(function() {
- $(this).animate({ top: '-10px' }, 300, 'swing', {queue: false});
- $('.worksItem').not(this).animate({ opacity: '0.5' }, 300, 'swing', {queue: false});
- }, function(){
- $(this).animate({ top: '0' }, 200, 'swing', {queue: false});
- $('.worksItem').animate({ opacity: '1' }, 200, 'swing', {queue: false});
- });
- }
- $(this).stop(true, true).animate(/***/);
- $(this).stop('jump', true, true).animate({/***/}, {
- queue: 'jump'
- });
- $(this).stop('jump', true, true).animate({/***/}, {
- queue: 'jump'
- })
- .dequeue('jump');
- $(this).stop('fade', true).delay(300, 'fade').animate({ //***
- $('.worksItem').hover(function() {
- $(this).stop(false, true)
- .animate({ top: '-10px' }, 300, 'swing', {queue: false});
- $('.worksItem').not(this).stop(false, true)
- .animate({ opacity: '0.5' }, 300, 'swing', {queue: false});
- }, function(){
- $(this).stop(false, true)
- .animate({ top: '0' }, 200, 'swing', {queue: false});
- $('.worksItem').not(this).stop(false, true)
- .animate({ opacity: '1' }, 200, 'swing', {queue: false});
- });
Advertisement
Add Comment
Please, Sign In to add comment