-
Notifications
You must be signed in to change notification settings - Fork 126
/
demo2.jade
83 lines (70 loc) · 1.98 KB
/
demo2.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
include ./spacemixins.jade
doctype html
html
+head("Out of Space")
script.
function preload(arrayOfImages) {
$(arrayOfImages).each(function(){
$('<img/>')[0].src = this;
// Alternatively you could use:
// (new Image()).src = this;
});
}
setTimeout(function(){
preload([
'img/spacetexture2.jpg',
'img/astronaut.jpg',
'img/selfie.jpg'
]);
}, 1000);
body.dark
+bg('img/spacetexture2.jpg')(class="texture")
+nav
//- +frame('img/galaxy1.jpg')
+frame(data-transition="zoomOut rotate360")
//- .white-border
p.nm.right Demo 2
h1.large.nm Out of Space
+frame
p The pressure of world rested on my shoulders
+frame
p And the weight of the universe on my chest
+frame
p I was pushed so hard against the seat
+frame
p It quickly got harder to breathe
+frame
p Harder to think
+frame
p I remember holding my breath
+frame
p Minutes passed. It was so loud.
+frame
p Joe screamed something to me through the radio.<br>I couldn't make out the words
+frame('img/astronaut.jpg')(data-enter="fadeIn", data-exit="fadeOut", data-duration="1.3")
p.large We were leaving earth and we didn't know what for.
+frame('img/selfie.jpg')(data-enter="fadeIn", data-exit="fadeOut", data-duration="1.3")
p.large I realised I was sweating heavily.
+frame
p It was not until four days later
+frame
p On a walk
+frame
p We had drifted into a shower
+frame
p I remember the feeling of my gloves scratch<br>the ladder as I was pulled loose
+frame(data-enter="fadeIn", data-exit="zoomOut rotate360")
p I drifted out
+frame(data-enter="fadeIn", data-exit="zoomOut")
p Into nothingness
+frame
p And this is where my story ends.
+frame(data-enter="fadeIn" data-exit="fadeOut")
p.large In the dark.
+frame(data-enter="fadeIn", data-exit="zoomOut rotate360")
p In the depth.
+frame(data-enter="slideInBottom rotateInQuarter", data-exit="scaleOut fadeOut")
p Drifting through space.
+lastNav
+frame
script(src="space.js")