-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (138 loc) · 4.19 KB
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>fantasia Test Suite</title>
<!-- Load local jQuery. -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<!-- Load local QUnit. -->
<link rel="stylesheet" href="src/fantasia.css" media="screen">
<!-- Load local lib and tests. -->
<script src="src/fantasiajs.js"></script>
</head>
<body>
<section class="section">
<div id="scene3d" class="example-scene">
<div id="box3d1" class="box">
<div class="layer" data-depth="-5">
<div class="shadow"></div>
</div>
<div class="layer" data-depth="1">
<div class="shadow"></div>
</div>
<div class="layer" data-depth="4">
<div class="shadow"></div>
</div>
<div class="layer" data-depth="2">
<div class="shadow"></div>
</div>
</div>
</div>
<div id="scene3dNoScale" class="example-scene">
<div id="box3d2" class="box">
<div class="layer" data-depth="-5">
<div class="shadow"></div>
</div>
<div class="layer" data-depth="1">
<div class="shadow"></div>
</div>
<div class="layer" data-depth="4">
<div class="shadow"></div>
</div>
<div class="layer" data-depth="2">
<div class="shadow"></div>
</div>
</div>
</div>
<div id="sceneParallax" class="example-scene">
<div id="boxP1" class="box">
<div class="layer" data-depth="-5" data-scale="false">
</div>
<div class="layer" data-depth="1">
</div>
<div class="layer" data-depth="4">
</div>
<div class="layer" data-depth="2">
</div>
</div>
</div>
<div id="sceneParallaxNoScale" class="example-scene" style="margin-bottom: 0;">
<div id="boxP2" class="box">
<div class="layer" data-depth="-5">
</div>
<div class="layer" data-depth="1">
</div>
<div class="layer" data-depth="4">
</div>
<div class="layer" data-depth="2">
</div>
</div>
</div>
</section>
<section class="footer">
<div id="oceanScene" class="example-scene">
<div id="oceanSceneMain" class="ocean">
<div class="oceon-layer" data-depth="-0.8" >
<div class="oceon__bg"></div>
</div>
<div class="oceon-layer" data-depth="0" >
<div class="oceon__wave depth-1"></div>
</div>
<div class="oceon-layer" data-depth="1" >
<div class="oceon__wave depth-2"></div>
</div>
<div class="oceon-layer" data-depth="2" >
<div class="oceon__wave depth-3"></div>
</div>
<div class="oceon-layer" data-depth="3">
<div class="oceon__wave depth-4"></div>
</div>
<div class="oceon-layer" data-depth="4">
<div class="oceon__wave depth-5"></div>
</div>
</div>
</div>
</section>
<!-- Notes -->
<!--
Full width image / bg math: width: 300%, left: -100%;
-->
<script>
$(document).ready(function() {
$('#box3d1').fantasia({
trackFrom: '#scene3d',
type: '3d',
perspective: '600px',
});
$('#box3d2').fantasia({
trackFrom: '#scene3dNoScale',
type: '3d',
perspective: '600px',
scaleDepths: false
});
$('#boxP1').fantasia({
trackFrom: '#sceneParallax',
type: 'parallax',
perspective: '600px',
rotationLimit: 10
});
$('#boxP2').fantasia({
trackFrom: '#sceneParallaxNoScale',
type: 'parallax',
perspective: '600px',
rotationLimit: 10,
scaleDepths: false
});
$('#oceanSceneMain').fantasia({
trackFrom: '#oceanScene',
perspectiveParent: '#oceanScene',
type: 'parallax',
perspective: '600px',
rotationLimit: 20,
scaleDepths: true,
magicNumber: 30
});
});
</script>
</body>
</html>