Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
akadigital

Some SplitText characters not fading in with typewriter effect

Recommended Posts

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

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)
  • Like 1
Link to comment
Share on other sites

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

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

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

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. 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×