Skip to content

Instantly share code, notes, and snippets.

@animoplex
Created March 6, 2019 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save animoplex/9119750d299c556779d6df50e3d4de50 to your computer and use it in GitHub Desktop.
Save animoplex/9119750d299c556779d6df50e3d4de50 to your computer and use it in GitHub Desktop.
Loop Expressions
// Loop Expressions
loopOut("cycle", 0) // Repeat from start to finish, default loop mode
loopOut("pingpong", 2) // Loops last three keyframes back and forth
loopOut("offset", 0) // Repeats animation using last keyframe as new start point
loopOut("continue") // Does not loop, but continues onwards with current velocity
// loopOut evaluates from the first keyframe towards the layer outPoint
// loopIn can be substituted to evaluate from layer inPoint towards last keyframe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment