Guest User

Untitled

a guest
Dec 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. animOptions = {time: 0.3}
  2.  
  3. customTransition = () ->
  4. transition =
  5. layerA:
  6. show: { opacity: 1, x: 0, y: 0, options: animOptions }
  7. hide: { opacity: 0, x: 0, y: 0, options: animOptions }
  8. layerB:
  9. show: { opacity: 1, x: 0, y: 0, options: animOptions }
  10. hide: { opacity: 0, x: 0, y: 0, options: animOptions }
  11.  
  12. flow = new FlowComponent
  13. flow.transition(layer, customTransition)
Add Comment
Please, Sign In to add comment