superhighfives
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by superhighfives
-
-
Hey folks,
I'm using ScrambleTextPlugin with a wrapping paragraph of text:
Working across design, development and
interactive media, I build interfaces, websites,
applications and open source experiments
using web technologies.Currently there's no way to ignore spaces while scrambling, which means the last word of each sentence flicks between each line. For example:
Working across design, development
and interactive media, I build interfaces,
websitesaoxooxoxxxoxxoooooxoxxxooxooxxoxxx
xooxxxxoxooxooxxxooxxoooxxxxoxBecause the word website is tied to the remaining scrambled string.
I believe ignoring spaces could solve that issue:
Working across design, development and
interactive media, I build interfaces, xoxoxoxox
xoxoxoxoxxox xox oxox xxooxo xooxxoxoxox
xoxox xox oxoxoxxoxoxoxI have looked in the source, but I haven't been able to find a place where I could loop through the string before it is passed to the DOM. My goal would be to do something like the following (pseudo-code):
if(actualText[indexOfLetter] === " ") {
awesomeScrambledText[indexOfLetter] = " ";
}
Any advice would be really appreciated, and I'd love to add something like this into the actual plugin.
If anyone has any suggestions that'd be awesome.
Cheers,
Charlie.
Ignore spaces in ScrambleText
in GSAP
Posted
Ah, good call! Thanks OSUblake.