forked from alevanno/alevanno.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
170 lines (149 loc) · 4.65 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="styles/animation.css">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<title>Hello, world!</title>
</head>
<body id="home">
<label>
<input type='checkbox' onchange="openMenu(this)">
<span class='hamburger'>
<br>Menù
</span>
<span class='menu'></span>
<span class='circle'></span>
<!-- class='list-unstyled' -->
<ul>
<li>
<a id='home-link' href='index.html'>Home</a>
</li>
<li>
<a id='about-link' href='about/about.html'>About</a>
</li>
<li>
<a id='work-link' href='work/work.html'>Lavoro</a>
</li>
<li>
<a id='photos-link' href='#'>Foto</a>
</li>
</ul>
</label>
<div class="container">
<h1 class="ml11">
<span class="text-wrapper">
<span class="line line1"></span>
<span class="letters">Kib Gim</span>
</span>
</h1>
<div class="row intro">
<div class="col">
Digital transformer<br>
Mind changer<br>
</div>
</div>
<div class="row icons">
<div class="col">
<a href="https://github.com/kibgim"><i class="fab fa-github ico""></i></a>
<a href="mailto:[email protected]"><i class="fas fa-envelope-square ico"></i></a>
</div>
</div>
</div>
<!-- JavaScript -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<script src="lib/anime.min.js"></script>
<script src="scripts/common_anim.js"></script>
<script>
// Wrap every letter in a span
$('.ml11 .letters').each(function () {
$(this).html($(this).text().replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>"));
}).css('opacity', '1');
anime.timeline({ loop: false })
.add({
targets: '.ml11 .line',
scaleY: [0, 1],
opacity: [0.5, 1],
easing: "easeOutExpo",
duration: 1500
})
.add({
targets: '.ml11 .line',
translateX: [0, $(".ml11 .letters").width()],
easing: "easeOutExpo",
duration: 1500,
delay: 100,
}, '-=300')
.add({
targets: '.ml11 .letter',
opacity: [0, 1],
easing: "easeOutExpo",
duration: 600,
delay: function (el, i) {
return 34 * (i + 1)
}
}, '-=775')
.add({
targets: '.ml11 .line',
translateX: [$(".ml11 .letters").width()],
scaleY: [1, 0],
opacity: [1, 0.5],
easing: "easeOutExpo",
duration: 700,
}, '-=500')
.add({
targets: '.intro',
translateY: [-50, 0],
scale: [1.1, 1],
opacity: [0, 1],
easing: "easeOutExpo",
duration: 1800,
}, '-=800')
.add({
targets: '.ico',
translateY: [-50, 0],
opacity: [0, 0.74],
easing: "easeOutExpo",
duration: 2000,
delay: function (el, i) {
return 34 * (i + 1)
}
}, '-=1500')
.add({
targets: '.menu',
scale: [0.3, 1],
opacity: [0, 1],
duration: 1000,
}, '-=1800')
.add({
targets: '.hamburger',
opacity: [0, 1],
duration: 1000,
}, '-=1800')
.add({
targets: '.circle',
opacity: [1, 0],
scale: [0.3, 4],
easing: 'linear',
duration: 500,
}, '-=1800')
</script>
</body>
</html>