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

  • SEARCH
  • Home
  • 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 8397997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:55:25+00:00 2026-06-09T20:55:25+00:00

In this demonstration , I am using an animation effect called Rotate 3d in

  • 0

In this demonstration, I am using an animation effect called “Rotate 3d” in jq transit. I expect that, when you mouse over the first box, the boxes will start rotating one after another until all of them are white, and when you mouse out off the container box, they will all change back to black.

Problem: The problem occurs when you mouse over the first box then out of the container a few times in rapid succession. It seems that the boxes flipping lose their order of rotating and not reset properly to black on mouse off.

Things I have tried: I have tried playing around with the fx queue but it didn’t seem to make much of a difference. I have also tried unbinding the mouse leave while the animations are running and then binding it again after the delay for the last box have passed, but that didn’t work either.

Answer I’m looking for: There are a few ways this can be answered. The first would be how to kill those animations as soon as you mouse out. The second would be how to start the order at the first box every time you mouse out. The third answer would be to ensure that everything is reset on mouse out after the box is rotated (adding it to queue?)

If you could include the jsFiddle for the solution, that would be great.

  • 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-06-09T20:55:26+00:00Added an answer on June 9, 2026 at 8:55 pm

    Okay after a while working at this I was able to come up with a (probably poor) solution, but at least it mostly works.

    var queue = new Array();
    
    $("#img1").on("hover", function() {
        var delay = 500;
        $("#mainContainer").children('div').each(function(i) {
            var _this = this;
            queue.push(setTimeout(function() {
                animate(_this);
            }, i * delay));
        });
    });
    
    function animate(elem) {
        $(elem).css("transition", "500ms all ease-in-out");
        $(elem).css("transform", "perspective(100px) rotate3d(1, 1, 0, 360deg)")
        $(elem).css("background-color", "#fff");
    }
    
    function clearQueue() {
        for (index in queue) {
            clearTimeout(queue[index]);
        }        
    }
    
    $("#mainContainer").on("mouseleave", function() {
        clearQueue();
        $("#mainContainer").children('div').each(function(i) {
            $(this).css("transition", "0ms all ease-in-out");
            $(this).removeAttr('style');
        });
    });
    ​
    

    Here’s the Fiddle.

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

Sidebar

Related Questions

This is simple demonstration of pipe fork exec trio using in unix. #include <stdio.h>
this is my first question in here, and I would like to ask if
This should be a simple one: I have an observableArray object called To in
Edit 2: For a practical demonstration of why this remains important, look no further
My supervisor at the office tells me that he saw a demonstration with a
I am trying to make a demonstration using cubism. I have created a custom
I'm using the v7 Bing Maps Javascript control (I don't know why it's called
i am using rpy2-2.0.7 (i need this to work with windows 7, and compiling
I'm using QI and Phoenix, and I want to write a small grammar that
I'm running what should be a basic BDD demonstration using Cucumber and Aruba on

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.