Jump to content
GreenSock

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

ScrambleText from one word into another?

Recommended Posts

Is it possible to scramble text from one word into another using, say, a loop and an array of strings? And if, then how would I do that using the ScrambleText plugin?

 

I mean letter by letter one at a time. It seems the initial text is immediately replaced by characters from the options object, and then from there on scrambled.

Link to comment
Share on other sites

Hi @blaasvaer :)

 

If I understand your question correctly, it sounds like you might be looking for the text plugin rather than scrambleText. Here's a quick demo showing the difference.

 

See the Pen oqVgJL by PointC (@PointC) on CodePen

More info:

https://greensock.com/docs/Plugins/TextPlugin

 

Hopefully that helps. Happy tweening.

:)

 

 

  • Like 4
Link to comment
Share on other sites

That's exactly what I'm looking for, thanks a bunch.

Link to comment
Share on other sites

Is the textplugin free to use? How do I get it?

Link to comment
Share on other sites

Yep - free to use.

 

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.4/plugins/TextPlugin.min.js"></script>

 

Happy tweening.

:)


 

  • Like 1
Link to comment
Share on other sites

Thanks a lot for that. But how come I have absolute no clue where to find that information on this site ... absolutely none?

Link to comment
Share on other sites

Just head for the home page https://greensock.com/ and click the green 'DOWNLOAD GSAP' button and choose your build. If you choose customize, it will allow you to pick which plugins you want. (That's where you'll find the text plugin link)

 

Happy tweening.

:)

 

  • Like 2
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.
×