View Full Version : Start/stop animation onclick

17 Jan 2012, 3:35 AM
I was searching the forum but didn't find code.
I have an object that needs to start animating when clicked.
Earlier using Webkit I was initially setting -webkit-animation-name CSS property to "none", and then to its proper name on click.
Any suggestions how to do it in Sencha?

17 Jan 2012, 7:23 AM
You should be able to do the same thing. In Animator, just give an element a css id, and you can use some custom JS to remove the animation name (make sure you store it though), and then put the animation back in when you want to play (must be in the same scene).