Jump to content
Search Community

ScrambleTextPlugin Svg Text

TRIPLESENSE REPLY
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

TRIPLESENSE REPLY
Posted

Hi to all,
for a project  we need to use the ScrambleTextPlugin with a svg text but it does not work with Internet Explorer.
To get it work we changed innerHTML in TextContent, but I think you can get something better ;-)

Thank for your support
Jacopo

See the Pen raMoKq by anon (@anon) on CodePen.

Posted

Hi BITMAMA  :)

 

i think maybe something tricky like this can help you to deal with stupid IE :
var Ref = document.createElement("div"); 

TweenMax.to(Ref,3,{scrambleText:"I Hate IE :|",onUpdate:update}); 

function update(){
document.getElementById('scramble').textContent = Ref.innerHTML; 
}

See the Pen PwGVKQ by MAW (@MAW) on CodePen.

  • Like 2
Posted

I have updated the plugin to accommodate this - it's already working in that codepen. We'll put it into the next official push, but if you need the file sooner just let me know and I'll send it to you. 

  • Like 3
TRIPLESENSE REPLY
Posted

Hi Jack,

thank you but I can't see it working in my codpen, which one do you refer to?

 

I would like to have it before the next release if possibile.

 

Thank you very much

Jacopo

Posted

I think you just need to clear your cache to see it working in your codepen (or append “?r=5” or a random number to the end of the plugin URL to force the browser to get a fresh copy). Works great for me. 


 


I sent you an email with the updated version. 


  • Like 1
TRIPLESENSE REPLY
Posted

Thank you! It works!

 

Jacopo

  • Like 1

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