Jump to content
Search Community

horizontalLoop with first element on center

Vitor Martins test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hi, based on the horizontalLoop function -> https://greensock.com/docs/v3/HelperFunctions#loop DEMO WITH DRAGGABLE (with "center: true" and onChange features), I want to have the first element starting on the center as well, basically the center element changes based on the viewport size, but my goal is to start the animation with it in the center.

 

Here is an ideia of what i want to achieve -> public-image.co

 

Thanks!

 

 

 

 

 

 

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