Jump to content
Search Community

TweenMax TweenLite Starting Position

techiesplus13 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

How can i make my elements go back to their starting position? I have a TweenMax Animation inside a scrollorama pin it, but after the animation starts if i stop the animation by upinit i will get a horizontal scroll bar and i think is beacuse of the positions of my elements that never came back to there original position. Please have a look at it on http://techiesplus.com

Link to comment
Share on other sites

Hi,

 

The thing is that you have some from() instances that make the animated element come from left:2000px, I don't know much about how scrollorama works in this case, but the solution could be to force the browser to hide the horizontal scroll bar in your css, like this:

body
{
    overflow-x:hidden;
}

Hope this helps,

Cheers,

Rodrigo.

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