Jump to content
Search Community

add graph parameters to animations

StruthyBoy
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

Posted

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

Posted

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
Posted

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
Posted

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

  • Like 2
Posted

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

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