Jump to content
Search Community

ScrambleTextPlugin - How to return initial html structure through Scrumble plugin?

dmytro.kuz test
Moderator Tag

Recommended Posts

Hey guys!

First of all, I would like to thank you for such a great product.

 

Is it possible to achieve such a case that the text is returned with the initial styles and structure specified in html and css when un-scramble?
For example, I have a complex initial structure in an HTML element (with many divs, span, etc.) and different CSS styles: 

image.thumb.png.8a4bcf7d60df54088f0d029d145dc9ae.png

 

Can I use the scramble plugin to return to this structure from the encrypted structure? Or you can advise me how to achieve the desired result

  • I want to achieve :

 

scrumbled text

=====>image.thumb.png.8a4bcf7d60df54088f0d029d145dc9ae.png

 

 

 

 

 

 

 

 

 

  • What I achieved in fact: 

 

scrumbled text

======>image.thumb.png.a572066d696ba0a4e3e331eec066114f.png

 

 

 

 

 

 

image.png

See the Pen xxmYxmJ?editors=0010 by Dmytro-Kuz (@Dmytro-Kuz) on CodePen

Link to comment
Share on other sites

Hi @dmytro.kuz and welcome to the GreenSock forums!

 

I'm afraid that is not that simple. The ScrambleText Plugin actually alters the content of the element, which means that the HTML tags and styles applied to the elements inside are gone. The only alternative is go block by block and add each ScrambleText instance to a timeline like in this example:

See the Pen jOxpVw by GreenSock (@GreenSock) on CodePen

 

Hopefully this helps.

Happy Tweening!

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...