Jump to content

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

How to init GSAP _gsTransform?

Recommended Posts

Hi guys,


Just trying to figure out how to initiate or have the element._gsTransform object added to a DOM element when an event is fired lets say click.


Is there a way to initiate GSAP without making any changes to the elements css?




Link to comment
Share on other sites

The _gsTransform gets added when you alter any transform-related properties. So something as simple as TweenLite.set(element, {x:"+=0"}) could work. 

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.