Advertisement
Guest User

FramerJS row fix

a guest
Oct 22nd, 2014
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. row.on Events.DragEnd, (event, row) ->
  2.         if row.x < -row.width or row.x > screenWidth
  3.             container.removeSubLayer row
  4.             row.destroy()
  5.             for sibling, i in container.subLayers
  6.                 sibling.animateStop()
  7.                 sibling.animate
  8.                     properties: {y: i*itemHeight-1}
  9.                     curve: "spring(400,100,0)"
  10.                     time: 0.33
  11.         else
  12.             row.animate
  13.                 properties: {x:0}
  14.                 curve: "spring(400,100,0)"
  15.                 time: 0.33
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement