Permalink
Browse files

Add finish method that stops the animation and moves to the resulting…

… state
  • Loading branch information...
nvh committed Sep 29, 2016
1 parent e339750 commit 2f6e5200dfefdd8d613a15a66691c14a0cead532
Showing with 3 additions and 0 deletions.
  1. +3 −0 framer/Animation.coffee
View
@@ -252,6 +252,9 @@ class exports.Animation extends BaseClass
# the actual update loop. This saves a lot of frame budget.
@_prepareUpdateValues()
finish: =>
@stop()
@_updateValues(1)
_update: (delta) =>
if @_animator.finished()

0 comments on commit 2f6e520

Please sign in to comment.