Jump to content
Search Community

transformOrigin not working in css-grid

ghost666 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 @ghost666,

 

Sahil has given you the solution to your problem. What you want to do is, as he said, shrink the other columns, not grow just increase the width of the third column.

 

By the way, you probably don't want to use GSAP just to add classes to your elements. You can toggle that without GSAP - As a rule of thumb it's actually better to animate either with CSS transitions/animations or with GSAP, not both. They'll be fighting for control and causing all sorts of headaches.

 

It really looks like you don't even need GSAP for what you are trying to achieve, simply a :hover pseudo attribute and some transitions and classes.

  • Like 2
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...