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 8480671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:21:31+00:00 2026-06-10T19:21:31+00:00

I am trying to do some tricky things with animations in a queue function.

  • 0

I am trying to do some tricky things with animations in a queue function. I hesitated to post my original code here since it’s long and messy. But I’ve boiled down the problem I’m having to the following example (I’m coding the queue using this method by Alnitak: jQuery: code stops working after adding delay() and removeClass()):

http://jsfiddle.net/AYMY7/6/

This is an attempt to write a program that will animate the prime power factorization of 100. It’s constructed with a for loop in which the #target div receives new html each time with ‘span’ tags around the piece that needs to be replaced. Then the ‘span’ned part is supposed to fade out, be replaced by something, and fade in. If you run it you’ll see that fade in/out only works the first time in the loop and then stops. My guess is that it is because when the next iteration replaces the html in the #target div, the ‘span’ tags are treated as something new and not affected by the original ‘span’ queue. I don’t know if that made any sense, but if you study the code and run it, you’ll see what I mean.

I’ve tried fixing it with classes and id’s but I think the same core problem is still there. Can anyone see a way to fix this?

I thought I fixed it by adding separate div’s for each piece and changing the array:

http://jsfiddle.net/nQjBw/2/

This just about works great, except there are these little twitches that seem to happen randomly. So if someone can see how to fix this instead that would be awesome.

In either case I need a solution that isn’t specific to factoring numbers, as I’m trying to use this method for a bigger project.

Thanks!

  • 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-10T19:21:33+00:00Added an answer on June 10, 2026 at 7:21 pm

    This seems to work:

    http://jsfiddle.net/EHJfR/

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

Sidebar

Related Questions

I am trying some things with JSON and PHP and there is something that
I am a newbie at jQuery. I was trying some things but I need
I'm trying to POST some JSON and a binary file from an iPhone to
I've just started to use Moles to mock some tricky legacy code. In essence,
I'm trying to get CALayer working so I can start practicing some animations tricks
I'm trying to write some command line PHP - is there a trick to
I'm trying some iOS test applications on the new Mac mini, that supports Bluetooth
I am trying some basic application on Sencha Touch 2. Instead of json ,
Recently I was trying some practice programs in python and I came across this
I am trying some way to optimize following sql statement: exe_sql DELETE FROM tblEvent_type

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.