Copy link to clipboard
Copied
I'm using a Swipe Cube template and on each side I've inserted an AnimateCC animation. When I swipe through the cube however all those 4 animations continue to run even when they are not in view. I've added them to the cube template through iFrames. The template has an optional function to do something when a transition has started or ended. Which would allow my to add some javascript to control playback of my iFrames. But how would I do that? I first would use a javascript line to getelmentbyid iframe. But then I would have to add something to control that iframe content. So I could use this.gotoAndPlay('start') to make the animation in that iFrame start from the beginning again. Is something like that even possible?
HTMLIFrameElement.contentWindow - Web APIs | MDN
Canvas documents declare a global variable, exportRoot, that points to the root timeline.
And it's called an iframe, not an iFrame. Apple had nothing to do with it.
Copy link to clipboard
Copied
HTMLIFrameElement.contentWindow - Web APIs | MDN
Canvas documents declare a global variable, exportRoot, that points to the root timeline.
And it's called an iframe, not an iFrame. Apple had nothing to do with it.
Copy link to clipboard
Copied
iThank you
Find more inspiration, events, and resources on the new Adobe Community
Explore Now