Jump to content
Search Community

Robert Cambridge

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Robert Cambridge

  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.
×
×
  • Create New...