Jump to content
Search Community

Removing code gsap.to() duplications

m.avangarde test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I have to change scale of element (like box on codepen example) in the intersection of sections to 0. In the center of section the element should scale to 1.

 

I am aware of gsap.to() duplications. Maybe anyone have an idea how to make it without duplication? As it is highly possible, there will be lot of sections. Also they could be different heights.

See the Pen ZEMwJyv by mishamgla (@mishamgla) 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...