Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7178323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:53:56+00:00 2026-05-28T16:53:56+00:00

The CODE function wkHover(){ $(‘.worksItem’).hover(function() { $(this).animate({ top: ‘-10px’ }, 300, ‘swing’, {queue: false});

  • 0

The CODE

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});
    });
}

http://egegorgulu.com/works

http://jsfiddle.net/vJQEQ/17/

All right so I have two problems:

  1. When hovering between items, it naturally triggers the mouseout function when going over the margins, which creates this unpleasant flashy effect. What I want to do is just animate the ones being hovered out of and hovered in to so that the rest will stay the same. Any ideas?

  2. Try moving the mouse quickly around all of the elements, and try not to go into an epileptic seizure. Anyway to prevent this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:53:57+00:00Added an answer on May 28, 2026 at 4:53 pm

    Here is a working fiddle. The key is to .stop() the animation before adding a new one to the queue:

    $(this).stop(true, true).animate(/***/);
    

    However; this causes problems because multiple animations have to be run at once, so calling .stop() would interfere with the wrong animation. Therefore the different animations will have to be put in different animation queues:

    $(this).stop('jump', true, true).animate({/***/}, {
      queue: 'jump'
    });
    

    If you use a different queue from the default (fx), you have to .dequeue() them manually.

    $(this).stop('jump', true, true).animate({/***/}, {
      queue: 'jump'
    })
    .dequeue('jump');
    

    [Edit] As for the first problem, I think the best solution is to .delay() the fade-out animation, to give the cursor some time to move on to the next block. Here is a fiddle with that included:

    $(this).stop('fade', true).delay(300, 'fade').animate({ //***
    

    This has some downsides, mainly due to the fact that .stop() does not cancel timeouts that were set by .delay(). My best solution is to have you choose between the “flash-effect” from the first fiddle, or the delayed fade-in effect from the second fiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code : function move() { $(document).mousemove(function(e){ var x = e.pageX; $('.linkHover').animate({'right':
This code function LoadContent(Id) { alert('Controls/Network/NetworkDetail.aspx?' + rnd() + '&CtlId=' + Id); $.get('Controls/Network/NetworkDetail.aspx?' +
View this code: function testprecision(){ var isNotNumber = parseFloat('1.3').toPrecision(6); alert(typeof isNotNumber); //=> string }
I have this code: function submitTwice(f){ f.action = 'http://mydomain.com/threevideopage.php'; f.target='name'; f.submit(); } I left
With this code function someFunction(classParam:Class):Boolean { // how to know if classParam implements some
I have such code: function allValid() { $('input').each(function(index) { if(something) { return false; }
Consider the following base code: (function($) { $.fn.myPlugin = function(settings) { return this.each(function() {
I have just come across this code: function test(){ //... if ( $profilerule ==
For instance this code: function stuff() { this.onlyMethod = function () { return something;
Consider this code: function Foo(ds as OtherDLL.BaseObj) dim lngRowIndex as long dim lngColIndex as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.