Share Posted September 17, 2015 Hi, I'm animating in some text with a typewriter effect. Problem is sometimes a few characters are not displaying. I'm using Adobe Edge and previewing in Chrome. Anyone else had the same problem?! Many thanks chaps, See the Pen qEoerY?editors=001 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Share Posted September 17, 2015 Hi akadigital hmm , for me everything works correctly with edge animate , pls try this ( simple version of above codepen ) : var tl = new TimelineMax({repeat:-1, yoyo:true,repeatDelay:1}), mySplitText = new SplitText("#Stage_myText", {type:"chars"}), // myText = id of your text in Stage chars = mySplitText.chars; tl.staggerFrom(chars,0.01,{opacity:0,ease:Power1.easeIn},0.08); tl.timeScale(0.5) 1 Link to comment Share on other sites More sharing options...
Author Share Posted September 21, 2015 Thank you Diaco, changing the staggerFrom parameters, 0.01 and 0.08 to 0.03 seems to have worked. Link to comment Share on other sites More sharing options...
Share Posted September 22, 2015 Hey Diaco, I was hoping you could help me as well. I'm trying to use SplitText with Flash CC. I tried calling the text with the format you had "#Stage_myText" .I am assuming that you have a dynamic text box on the stage named myText. It throws me an error and the banner does not run. Am I doing something wrong or is the naming different for Flash. I tried this.myText but no luck. Cheers Link to comment Share on other sites More sharing options...
Share Posted September 22, 2015 Hi Colin Ochel here's GSAP Html5/js forum ! , you can ask your Flash related questions here : http://greensock.com/forums/forum/3-gsap-flash/ btw , "#Stage_myText" is a way to select elements in adobe Edge animate . Link to comment Share on other sites More sharing options...
Share Posted September 22, 2015 Thanks Diaco, I should have been more specific. I am leveraging Flash CC to export out a Canvas file. Cheers Link to comment Share on other sites More sharing options...
Share Posted September 23, 2015 Sorry, SplitText only works on text in DOM elements (p, div, h2, etc), there is no support for any canvas text at this time. Text on canvas is just a glob of pixels mashed into a big image, no way for SplitText to measure it and split it apart into individual characters and target them individually. 1 Link to comment Share on other sites More sharing options...
Share Posted September 23, 2015 Thanks Carl, I figured. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now