-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstory.html
85 lines (77 loc) · 2.48 KB
/
story.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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Storia – Pinocchio</title>
<link rel="stylesheet" href="main-style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@452&family=Rye&display=swap" rel="stylesheet">
<link rel="icon" href="assets/favicon.png" type="image/png" />
<!-- Splide -->
<script src="splide/js/splide.min.js"></script>
<link rel="stylesheet" href="splide/css/splide.min.css">
<style>
.my-slider-progress {
background: #ccc;
}
.my-slider-progress-bar {
background: rgb(255, 255, 255);
opacity: 100%;
height: 5px;
transition: width 400ms ease;
width: 0;
position:absolute;
bottom: 0px;
}
.slider-back{
background: rgb(255, 255, 255);
bottom: 0px;
position:absolute;
height: 5px;
width: 1024px;
opacity: 30%;
}
</style>
</head>
<body background="./assets/global/background.png">
<div class="splide main-frame credits-frame">
<div class="splide__track">
<ul class="splide__list">
<li class="splide__slide"><img src="assets/story/storia1.svg"></li>
<li class="splide__slide"><img src="assets/story/scena1.jpg"></li>
<li class="splide__slide"><img src="assets/story/storia2.svg"></li>
<li class="splide__slide"><img src="assets/story/scena2.jpg"></li>
<li class="splide__slide"><img src="assets/story/storia3.svg"></li>
<li class="splide__slide"><a id="link_game" href="./play.html">Gioca</a><img src="assets/story/scena3.jpg"></li>
</ul>
</div>
<!-- Add the progress bar element -->
<div class="my-slider-progress">
<div class="slider-back"></div>
<div class="my-slider-progress-bar"></div>
</div>
<!-- Per tornare indietro alla Landing page (copertina) -->
<div class="navigation">
<a href="game.html"><span class="icon"></span></a>
</div>
<a href="./index.html">
<img src="./assets/global/back_button.png" id="back_button"></img>
</a>
</div>
<script>
var splide = new Splide( '.splide' );
var bar = splide.root.querySelector( '.my-slider-progress-bar' );
// Update the bar width:
splide.on( 'mounted move', function () {
var end = splide.Components.Controller.getEnd() + 1;
bar.style.width = String( 100 * ( splide.index + 1 ) / end ) + '%';
} );
splide.mount();
splide.options = {
pagination : false,
arrows: true
};
</script>
</body>
</html>