File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes overlapping animations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "overlapping animations" Watch "overlapping animations" New topic

overlapping animations

emmanuel durand

Joined: Mar 17, 2011
Posts: 2
i have a table whose "cell" values are updated every seconds. Moreover each value change is highlighted by a fade animation (using jquery) which could last for let's say 3 seconds. I used a setInterval javascript function. But the result is that the effect occuring on a cell only last for one second instead of tree seconds. Javascript is single threaded i know be how is it possible to have the event queue rearrange in a way that allow : cell one modification + fade animation happen correctly in the same time of others cells modifications + other animations ? I noticed too that if the div containing the table has a scrollbar, and that i use this scrollbar during the animations then just stop until i release the use of the scrollbar because the event of animation has no time to execute anymore.
How can i resolve this problem ?
I agree. Here's the link:
subject: overlapping animations
It's not a secret anymore!