Permalink
Browse files

Using new animation API

  • Loading branch information...
nvh committed Sep 12, 2016
1 parent 9e65920 commit 5f9fd6408c1cb89d574b5bb0c468153ad302cb0d
@@ -70,8 +70,7 @@ class exports.CircularProgressComponent extends SVGLayer
curve: "linear"
time: dynamicTime
animationOptions = _.extend animationOptions,
properties:
progress: Utils.clamp(value, 0, 1)
animationProperties =
progress: Utils.clamp(value, 0, 1)
@animate(animationOptions)
@animate(animationProperties, animationOptions)
@@ -274,9 +274,8 @@ class exports.ScrollComponent extends Layer
point = {}
point.x = contentPoint.x if contentPoint.hasOwnProperty("x")
point.y = contentPoint.y if contentPoint.hasOwnProperty("y")
animationOptions.properties = point
@content.animateStop()
@content.animate(animationOptions)
@content.animate(point, animationOptions)
else
@content.point = contentPoint
@@ -85,10 +85,10 @@ class ErrorDisplay extends BaseClass
error.text.html = message
animation = error.animate
properties:
scale: 1
curve: "spring(800, 55, 10)"
scale: 1
options:
curve: "spring(800, 55, 10)"
destroy: ->
@_context?.destroy()

0 comments on commit 5f9fd64

Please sign in to comment.