css animation problem
- Started
- Last post
- 3 Responses
- ldww
when i have a animated gif inside a div that is hidden, and then i change the class to show the div with javasctipt, the graphic is NOT animating.
do you know the problem, PLEASE
- Hello-Sexy0
i don't know why that woud happend, but you could get around it by setting the innerHTML instead of changing classes.
so just use:
document.getElementById('id').in...
instead of changing the class. Have nothing in the div to start.
hopefully the code goes through....
- Hello-Sexy0
fak.. just put an image tag in the string (or whatever other html you want)
- spiralstarez0
I've dealt with the same problem before, and I can't remember off my head what was wrong.
I think I tried a javascript setTimeOut on it to delay it before it became visible and that didn't work.
I believe the solution is to load/reload the image when it becomes visible so it starts as though it was a new image.