Results 1 to 2 of 2

Thread: Start/stop animation onclick

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    10
    Vote Rating
    0
      0  

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •