Share Posted August 11, 2016 I just upgraded my membership to get access to SplitText. However, I cannot get it maintain the spaces between words. I am using basic configuration: var splith1 = new SplitText(h1, { type: "chars" }), tl = new TimelineMax(), splith1Array = base.randomize(splith1.chars); tl.staggerFrom(splith1Array, 0.5, { autoAlpha: 0, y: "100%" }, 0.1); It can also be seen on default GS demos: See the Pen pbWwLZ by GreenSock (@GreenSock) on CodePen Link to post Share on other sites
Share Posted August 11, 2016 Hello anteksiler, and Welcome to the GreenSock forum! Sorry you having trouble! I contacted Jack about this, please standby! Do you have an example of what you have tried so we can see your code example in context? Also make sure you are using version 1.19.0 and replace the word latest with 1.9.0 if you are using the TweenMax.min.js your script url. Here is a video tut on how to create a codepen example. This way we can test your code live on codepen. Thanks! 2 Link to post Share on other sites
Share Posted August 11, 2016 Hm, I'm kinda confused. That codepen you linked to seems to work perfectly. I must be missing something. Like Jonathan said, it'd really help if you could provide a reduced test case so we can see things in context and identify what's going awry. 1 Link to post Share on other sites
Author Share Posted August 16, 2016 Hm, I'm kinda confused. That codepen you linked to seems to work perfectly. I must be missing something. Like Jonathan said, it'd really help if you could provide a reduced test case so we can see things in context and identify what's going awry. Hi there, I forked that demo and only removed wordDelimiter: "*" option: See the Pen qNvRwj by anteksiler (@anteksiler) on CodePen Link to post Share on other sites
Share Posted August 16, 2016 hmm, I think the wordDelimiter might be confusing things. That property is for a very rare edge-case where you want to use a special character other than a natural space to denote where words should be split and not have any space between them. SplitText automatically detects the spaces in the text that you want to split into words. http://codepen.io/GreenSock/pen/EyrWYk?editors=1010 Does that help? 4 Link to post Share on other sites