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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:44:51+00:00 2026-05-27T05:44:51+00:00

I have some dynamically created elements that are supposed to be animated. The animations

  • 0

I have some dynamically created elements that are supposed to be animated. The animations work fine as long as you don’t start another one before it finishes.

Here’s a demo of a mock up design I have.

It works well, but if you spam click “POST!” you’ll see that the previous bubbles don’t quite finish animating. Instead they just stop midway. It becomes more apparent if you change the animation speed.

Does anyone know what could be causing it?

  • 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-27T05:44:52+00:00Added an answer on May 27, 2026 at 5:44 am

    I copied your code and put it into a jsfiddle: http://jsfiddle.net/mau3J/

    Your problem lies with this line:

    $('#chatbox').html( html+$('#chatbox').html() );
    

    You are inherently replacing everything inside #chatbox with what #chatbox was at that moment, cancelling any animations.

    As in the jsfiddle link, replace with:

     $('#chatbox').prepend($(html));
    

    This is adding to the DOM instead of replacing it. Wrapping the html var in $() will convert it into a jquery object.

    Also as side advice, classes in jQuery can be referred to with a period in front. Your code here:

    $('#chatbox').find('[class="chatbubble"]:first')
    

    is equivalent to

    $('#chatbox .chatbubble:first')
    

    Reading up on CSS selectors will help you understand what the jQuery notation means.

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

Sidebar

Related Questions

I have some Javascript code that needs to be dynamically created as a String
I have a page in magento which has some dynamically created elements but the
I'm trying to hide some divs that I have created dynamically using the .hide()
I have some dynamically created inputs which are not server-side controls. I want to
I have some code that dynamically creates a new button through JavaScript that when
I am loading some text dynamically into a div, but have the problem that
I have a flash movie that dynamically generates urls based on some params. Snip:
I have some link elements which are dynamically added and hidden from the page.
I have the following that is created dynamically: <a class=editLink href=/location/Edit?city=05>Edit</a> This and other
I have long known that you can load style rules into a page dynamically

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.