-
Notifications
You must be signed in to change notification settings - Fork 1
/
startup.coffee
60 lines (55 loc) · 1.2 KB
/
startup.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
if Meteor.isClient
# head transitions
FlowTransition.addTransition
section: 'head'
from: 'home'
to: 'page2'
txIn:
hooks:
translateY: '-100%'
properties:
translateY: [0, '-100%'],
translateX: [0, 'spring', '10%'],
# opacity: [ 1, "easeInSine", 0]
options:
duration: 220
easing: 'ease-in-out'
queue: false
complete: ()->
console.log('the one that was passed in')
# body transitions
FlowTransition.addTransition
section: 'body'
from: 'home'
to: 'page2'
txFull: 'left'
FlowTransition.addTransition
section: 'body'
from: 'page2'
to: 'page3'
# txFull: 'left'
txFull:
properties: 'right'
options:
duration: 350
easing: 'spring'
queue: false
FlowTransition.addTransition
section: 'body'
from: 'page3'
to: 'page4'
txFull: 'down'
# foot transitions
FlowTransition.addTransition
section: 'foot'
from: 'home'
to: 'page2'
txIn:
hooks:
display: 'none'
properties: 'fadeIn'
FlowTransition.addTransition
section: 'foot'
from: 'page4'
to: 'home'
txOut: 'transition.fadeOut'