Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
StruthyBoy

add graph parameters to animations

Recommended Posts

Hi, newbie question. I am struggling a bit with the syntax.

 

How would I add the graph variables to this piece of code?

 .from(".device-iphone", 0.7, {
        opacity: 0,
        x: "-150%",
        ease:  Bounce.easeOut,
        delay: 0.5
    })

I mean the (graph,10,) bit from the ease visualizer

TweenLite.to( graph, 10, {ease:Bounce. easeOut,y: 0});

Thanks in advance

Link to post
Share on other sites

Not sure what you're asking. There are no graph variables, and your snippet of code looks correct. If you make a CodePen demo to illustrate the problem you are having, we can help you out further.

 

Instructions

  • Like 3
Link to post
Share on other sites

Welcome to the forums,

 

I imagine you are referring to how the Ease Visualizer allows you to change the target of the tween which then changes how the ease is visualized

 

KZd0JwN.png

 

Displaying the graph, clock or box is built into the Ease Visualizer just to give you different options of seeing how the ease (or rate of change) impacts animations on different elements / properties. 

 

I'm not totally clear on what you are asking but you can't put "graph" into your own tween and have a graph show up. Does that help?

  • Like 3
Link to post
Share on other sites

I must be a dope!  :idea:  i never noticed that option for graph, clock, or box.. thanks Carl :)

  • Like 2
Link to post
Share on other sites

I must be a dope!  :idea:  i never noticed that option for graph, clock, or box.. thanks Carl :)

Ha! I was just thinking the same thing. I completely missed that.  :-P

  • Like 2
Link to post
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.

×