Permalink
Browse files

Setting the default animationOptions of a PageComponent

  • Loading branch information...
nvh committed Sep 30, 2016
1 parent db56e33 commit 47bbd9c6c2ba77cbc7b6d0a44357797bdf8a264c
Showing with 4 additions and 2 deletions.
  1. +4 −2 framer/Components/PageComponent.coffee
@@ -23,8 +23,10 @@ class exports.PageComponent extends ScrollComponent
@define "originY", @simpleProperty("originY", .5)
@define "velocityThreshold", @simpleProperty("velocityThreshold", 0.1)
constructor: ->
super
constructor: (options) ->
super _.defaults options,
animationOptions:
curve:"spring(500, 50, 0)"
@content.draggable.momentum = false
@content.draggable.bounce = false

0 comments on commit 47bbd9c

Please sign in to comment.