songissimo

Enabling/Disabling animation

Discussion created by songissimo on Mar 13, 2012
Hi everybody,
   I need to dynamically play and stop an animation on a graphic symbol (like a blinking dot). For example in the main style sheet I disable the animation (I'm working on mozilla firefox) using the following instructions:
       
            -moz-animation-iteration-count:0;

When I need to enable it I use:

            dojo.byId('mapBox_graphics_layer').style.MozAnimationIterationCount = "infinite";

but it doesn't work. Better, it works if, for example, I put it into init() function , but when I put it into a callback function (result of performing a queryTask) it seems to be irrelevant and the animation doesn't start.

Does anyone know this problem?

Thank you everybody.

Outcomes