Jump to content

Pausing an animation with Javascript


handemmet
 Share

Recommended Posts

Hi I have created an animation using sencha animator. In the animation I have several thumbnails that when I click on; it launches Shadowbox containing a video. My question is: Is it possible to pause my original animation when I click to open up the Shadowbox video iframe.............and then resume the animation when I close the Shadowbox iframe? I did a bit of reading up on this and the only thing I came accross was this<code>object.style.animationPlayState="paused"</code> But I don't know where to use it. I hope I have explained this without confusion. Thanks for your help RegardsEmmet

  • Like 1
Link to comment
Share on other sites

Do you have a link to the documentation for the parts of Sencha that you're using? If the Shadowbox is a Sencha component then it will have events for things like show, hide, close, etc that you can use to run the other code to stop or start the animation.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...