Permalink
Browse files

Made animationOptions a simple property

  • Loading branch information...
nvh committed Sep 30, 2016
1 parent 7e06984 commit db56e3325eff01771e3d526c1aa9ea23d82b6ead
Showing with 3 additions and 2 deletions.
  1. +0 −1 framer/Components/PageComponent.coffee
  2. +3 −1 framer/Layer.coffee
@@ -22,7 +22,6 @@ class exports.PageComponent extends ScrollComponent
@define "originX", @simpleProperty("originX", .5)
@define "originY", @simpleProperty("originY", .5)
@define "velocityThreshold", @simpleProperty("velocityThreshold", 0.1)
@define "animationOptions", @simpleProperty("animationOptions", {curve:"spring(500, 50, 0)"})
constructor: ->
super
View
@@ -138,7 +138,6 @@ class exports.Layer extends BaseClass
if options.hasOwnProperty(p)
@[p] = options[p]
@animationOptions = {}
@_context.emit("layer:create", @)
delete @__constructor
@@ -152,6 +151,9 @@ class exports.Layer extends BaseClass
# A placeholder for layer bound properties defined by the user:
@define "custom", @simpleProperty("custom", undefined)
# Default animation options for every animation of this layer
@define "animationOptions", @simpleProperty("animationOptions", {})
# Css properties
@define "width", layerProperty(@, "width", "width", 100, _.isNumber)
@define "height", layerProperty(@, "height", "height", 100, _.isNumber)

0 comments on commit db56e33

Please sign in to comment.