Jump to content
Search Community

Is it possible to Set transform to none?

Huangism test
Moderator Tag

Recommended Posts

I am just trying to set transform to none but it doesn't seem to be working (I suspect this is intentional). Is it possible to do with gsap as part of a timeline?

 

The issue I was experiencing is that I have a container which has a transform and setting positioned fixed on children don't work as expected due to the transform on the parent. So now I am trying to remove the transform during the animation(not animating the parent)

 

 

See the Pen KKdLbdL by Huangism (@Huangism) on CodePen

Link to comment
Share on other sites

37 minutes ago, ZachSaucier said:

Hey Huangism. Try clearProps: "transform" or clearProps: true (to clear all inline styles) :) 

this worked perfectly, the reverse was also fine since I set my values before clearing props, thank you

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