Jump to content
Search Community

Scale a Div while exempting the Text inside

Afrowave test
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

Hi guys,

 

Firstly, I love GSAP and the stuff I am doing to the Div here is wizardry. 

 

Here it is: 

 

The plan is to scale the width div from a fixed size to the % of the screen size and height with a scale factor. That is working for the div. However, in the div there is text that being affected by the height scaling but not the width. I don't want it affected at all by the parent's scaling since it is warped.  I have tried a reverse scale on the height, but to no avail.

 

What am I doing wrong?

See the Pen eNVXxL by Afrowave (@Afrowave) on CodePen

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