Jump to content
GreenSock

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

Robert Cambridge

Members
  • Posts

    2
  • Joined

  • Last visited

Robert Cambridge's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. @GreenSock interesting: I'd overlooked nesting. I haven't tested that code, but it looks to me as though parent timelines could also be in their *yoyo state* and your function doesn't consider it...?
  2. Stumbled across this looking for a similar solution, ended up creating this function: var playBackwards = function(timeline) { var retval = false; retval ^= timeline.reversed(); if (timeline.yoyo()) { retval ^= timeline.totalTime() / (timeline.duration() + timeline.repeatDelay()) % 2 > 1; } return !!retval; }; Perhaps this should be brought into GSAP itself.
×