Jump to content
Search Community

add graph parameters to animations

StruthyBoy 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

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