forked from gopatrik/space.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo1.jade
159 lines (127 loc) · 3.32 KB
/
demo1.jade
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
include ./spacemixins.jade
doctype html
html
+head("The Gallery")
script.
function preload(arrayOfImages) {
$(arrayOfImages).each(function(){
$('<img/>')[0].src = this;
// Alternatively you could use:
// (new Image()).src = this;
});
}
setTimeout(function(){
preload([
'img/splash.png',
'img/browser.png',
'img/browser_tiled.png',
'img/paper.jpg',
'img/househill.jpg',
'img/balloon.jpg',
'img/flowers.jpg',
'img/paper.jpg',
'img/househill.jpg',
'img/umbrella.jpg',
'img/paper.jpg',
'img/spacejs.png'
]);
}, 1000);
body
//- Mixins
+nav
+frame
.bg(style="background-image:url(img/splash.jpg); padding:150px 200px;")
section
p.nm.right(style="color:white;") Demo 1
h1.nm.large(style="color:white;") The Gallery
+frame(data-enter="rotateInQuarterClockwise fadeIn", data-exit="fadeOut scaleOut")
p Not too long ago
+frame(data-enter="slideInBottom rotateInQuarterClockwise scaleIn", data-exit="slideOutDown scaleOut rotateQuarterRight")
.paper.relative(style="width:300px; height:400px;")
.center-center
p.bold(style="color:rgba(0,0,0,0.5);") This canvas.
+frame(data-enter="scaleIn", data-exit="fadeOut")
p.large Was our
br
b Medium
+frame
p Our platform
+frame
p We hung our work in bright spaces
+frame
p For people to see our stories
+frame
p We called them
span.modal galleries
|.
+frame
p There we could design
span.modal a path
|.
+frame
p.large.bold.modal A narrative.
+frame(data-enter="scaleIn", data-exit="scaleOut fadeOut", data-duration="2")
p.nm.center Now
i this
| is our
b gallery
img(src="img/browser.png", width="500px" alt="")
+frame
p Where we share our content
b with the world.
+frame(data-enter="slideInTop scaleIn", data-exit="rotate3dOut", data-duration="2")
img(src="img/browser_tiled.png", width="500px" alt="")
p.nm.center
| To make space,
b we tile.
+frame
p This
span.modal removes
| narrative.
+frame
p Not to mention It's been getting more and more
+frame(data-enter="rotate360 scaleIn", data-exit="rotate3dOut slideOutRight", data-duration="1.2")
.flat-shadow
p.nm.huge.bold Flat
+frame
p Let's try
span.modal something new.
+frame(data-enter="slideInLeft", data-exit="slideOutLeft rotate3dOut rotateQuarterRight")
.wall-wrap
.left-wall
+painting('img/paper.jpg')
br
+painting('img/househill.jpg')
section.center-center
p.large
| Because
br
| Our content
br
| deserves
b Space
//- .right-wall
//- +painting('img/balloon.jpg')
+frame('img/flowers.jpg')(data-enter="fadeIn", data-exit="fadeOut")
p.large.bold To flourish.
+frame(data-enter="slideInBottom", data-exit="slideOutDown fadeOut", data-duration="2")
p.large.center To impact
.whole
.half
+painting('img/paper.jpg')
+painting('img/househill.jpg')
.half
+painting('img/umbrella.jpg')(class="nm")
+frame(data-enter="slideInRight", data-exit="rotate3dOut")
.whole
.half
p.right(style="padding-top:60px;") To Touch
.half
+painting('img/paper.jpg')
+frame
p Welcome to the future.
+frame(data-enter="scaleIn", data-exit="scaleOut fadeOut")
img(src="img/spacejs.png", width="300px" alt="")
+lastNav
+frame
script(src="space.js")