Jump to content
Search Community

Some SplitText characters not fading in with typewriter effect

akadigital test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

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

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

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.
×
×
  • Create New...