Jump to content

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

Scale a Div while exempting the Text inside

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

pls add display: block; to your #ab css and pls fix your tweens selectors  .

  • Like 1
Link to comment
Share on other sites

Diaco, you can't be serious! After creating a bald head, that is all it took?


You are the man, okay, Wookiee  :-D

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.