1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    10
    Vote Rating
    0
    dokluch is on a distinguished road

      0  

    Default Start/stop animation onclick

    Start/stop animation onclick


    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?

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
    arnebech will become famous soon enough

      0  

    Default


    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).

Thread Participants: 1

Tags for this Thread