Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Alan Kell

Scale pulse text on appear

Recommended Posts

Hi,

 

I wonder whether somebody can help me with something I’m struggling to figure out? I have a text element in an SVG object that has a transform applied to it. I am trying to make this text fade in, grow to about 2.5 times it’s final size in scale, then shrink back to it’s normal size - so that it looks like it’s pulsing/bouncing into view.

 

The fade in the attached CodePen example comes in fine, but the scale doesn’t seem to work. I’m guessing this is because there’s already a transform applied to the item, but am not sure. I’ve slowed the attached CodePen down to see what’s going on, but the final effect I’m going for is text springing into view to draw attention.

 

Any help that anybody could give would be gratefully received!

 

Thanks in advance,

Al

See the Pen LXBvmK by alan-kell (@alan-kell) on CodePen

Link to comment
Share on other sites

39 minutes ago, Alan Kell said:

The fade in the attached CodePen example comes in fine, but the scale doesn’t seem to work. I’m guessing this is because there’s already a transform applied to the item, but am not sure.

 

Yep. See this thread.

 

 

  • Like 4
Link to comment
Share on other sites

Thanks OSUblake!

 

I’ve just changed the attached CodePen setting the transform with a TweenMax.set instead and it all works well now.

 

Best regards,

Al.

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