Hello.
I goes on following page: https://greensock.com/docs/Plugins/TextPlugin
And tried to use animation with text. But what I got:
Test cases:
var yourElement = document.getElementById('quest-begin');
TweenLite.to(yourElement, 2, {text: { value: 'HELLO!', newClass:"class2", oldClass:"class1"}, ease:Power2.easeIn});
TweenLite.to(yourElement, 2, { scrambleText: { chars: "0123456789", ease: Linear.easeNone}}, "label+=" + 1*0.2);
TweenMax.to(yourElement, 2, {text:"hello"});
TweenLite.to(yourElement, 1, {text:{value:"shorter new text", padSpace:true}});
Test case errors:
invalid text tween value: [object Object]
invalid scrambleText tween value: [object Object]
invalid text tween value: hello
invalid text tween value: [object Object]
What's wrong? It's simple but not works. Help please.