Jump to content
Search Community

absolute/relative positioning problem with Edge Animate

westykid 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

Hello!

I'm very new to js so apologies if this is something obvious, but i'm having some trouble with TweenMax in edge animate. I figure there's always lots going on behind the scenes using these wysiwyg programs so that could be the problem, anyway...

 

I've got 3 buttons that i'm tweening like this:

 

 

TweenMax.to(sym.$("btn_about")   ,.5, {left:"80%",delay:.1,ease:Quart.easeOut});
TweenMax.to(sym.$("btn_map")     ,.5, {left:"80%",delay:.2,ease:Quart.easeOut});
TweenMax.to(sym.$("btn_gallery") ,.5, {left:"80%",delay:.3,ease:Quart.easeOut});
 
All three of these buttons are identical symbols apart from the text inside -
"btn_map" moves to 80% (which is what i'm after) but "btn_about" and "btn_gallery" add 80% to the current left property. Has anyone encountered this before?
 
Thanks!
 

 

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