-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
executable file
·70 lines (64 loc) · 2.25 KB
/
index2.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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Animation Test - Demo 2</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" type="text/css" href="css/text.css" />
<link rel="stylesheet" type="text/css" href="css/MyFontsWebfontsKit.css"/>
<style type="text/css">
.AbitareSans-0 { font-family: AbitareSans-0; }
.AbitareSans-700 { font-family: AbitareSans-700; }
</style>
<script>document.documentElement.className = 'js';</script>
</head>
<body class="demo-1 loading">
<main class="site-wrapper">
<div class="text">
<div class="text__content">
<p class="AbitareSans-0">From Data</p>
<p class="AbitareSans-700">
<strong>
<span>T</span><span>o</span> <span>D</span><span>i</span><span>s</span><span>c</span><span>o</span><span>v</span><span>e</span><span>r</span><span>y</span>
</strong>
</p>
</div>
</div>
<div class="content">
<div class="slide-wrapper">
<div class="slide-item">
<img src="img/background2.png" class="slide-item__image">
</div>
</div>
</div>
</main>
<script src="js/demo.js"></script>
<script src="js/pixi.min.js"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/main.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<script>
var spriteImages = document.querySelectorAll('.slide-item__image');
var spriteImagesSrc = [];
for (var i = 0; i < spriteImages.length; i++) {
var img = spriteImages[i];
spriteImagesSrc.push(img.getAttribute('src'));
}
var initCanvasSlideshow = new CanvasSlideshow({
sprites: spriteImagesSrc,
centerSprites: true,
displacementImage: 'img/dmaps/2048x2048/clouds.jpg',
autoPlay: false,
autoPlaySpeed: [10, 3],
displaceScale: [200, 70]
});
imagesLoaded(document.body, () => {
document.body.classList.remove('loading');
initCanvasSlideshow.play();
});
</script>
</body>
</html>