Hello,
I'm using GSAP on Angular porject. Everything works fine on version 5.
After moving to version 6 : tween code not working anymore, i got this on console :
core.js:1598 ERROR TypeError: Cannot create property '_gsTweenID' on string '.content'
at _register (TweenMax.js:7201)
at new <anonymous> (TweenMax.js:6961)
at Function.push../node_modules/gsap/TweenMax.js.TweenLite.to (TweenMax.js:7755)
...
Implementation of Tween on the code is done like this :
TweenMax.fromTo(
'.content', .4,
{ top: '100%' },
{ top: '0' }
);
if i use document.querySelector('.className'), this is working as dom element is sent.
But on chaining animation got new error in console :
ERROR Cannot tween a null target
Hope the report is clear enough, please fill free to ask for more detail if need.
Best Regards
Arnaud