Jump to content
Search Community

sandbucks

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by sandbucks

  1. Hi all!

     

    I feel like this should be a simple one so maybe I'm overlooking something obvious. Basically I have an animation using gsap.to(...), and I'm hoping to track the value/s I'm animating as they animate. I figured this would make sense to be done in the onUpdate() callback, but I'm goofily having trouble figuring out how to get the value (in this case, x) as it animates. 

     

    tldr: if I animate my div's 'x' position from 0 to 150, is there a way to log/use the values in between those two numbers as they're reached during the animation?

     

    I saw an older forum answer or two about a _gsTransform property that I can't seem to find, guessing it may be deprecated.

     

    Thanks!

    See the Pen wvNzWyp by Stuart-Mackinnon (@Stuart-Mackinnon) on CodePen

×
×
  • Create New...