Copy link to clipboard
Copied
Hi there,
I'm using the GSAP TweenMax library with my Animate project and I'm trying to tween in a couple of movieclips, one of which is a mask. When I test my project I get the error "Cannot tween a null target" This only happens when I add in my mask movieclip to the tween, so I imagine that is what is causing the problem? Does anyone have any experience with this / know of a workaround?
I'm using GSAP simply because I'm more familiar with it than I am with TweenJS - would it be better to use TweenJS in this instance? Can mask movieclips be tweened then?
Any advice is appreciated, thanks!
It's always better to use TweenJS if you can, because then you're not imposing the download of yet another library on every user.
As for masks, timeline masks are converted to internally-named vector shapes on publish, because that's what the canvas element natively works with. The original symbol is discarded as part of this process.
Copy link to clipboard
Copied
It's always better to use TweenJS if you can, because then you're not imposing the download of yet another library on every user.
As for masks, timeline masks are converted to internally-named vector shapes on publish, because that's what the canvas element natively works with. The original symbol is discarded as part of this process.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now