-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (61 loc) · 1.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<section>
<div>
<h1>Heeellooo</h1>
<a href="https://donkovtsevarthur.github.io/i/"> My website</a>
</div>
</section>
</body>
<style>
body {
margin: 0;
font-size: 36px;
line-height: 1.5;
}
section {
display: block;
position: absolute;
background-color: #ccc;
width: 100%;
height: 100%;
}
div {
position: absolute;
display: block;
top: 50%;
left: 50%;
text-align: center;
transform: translate(-50%, -50%) ;
}
div a {
text-decoration: none;
text-transform: uppercase;
font-size: 18px;
letter-spacing: 5px;
color: #fff;
padding: 10px 20px;
background-color: #000;
border: none;
animation-name: example;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
div a:hover {
text-decoration: none;
}
@keyframes example {
0% {padding: 10px 20px;}
25% {padding: 15px 25px;}
50% {padding: 20px 30px;}
75% {padding: 15px 25px;}
100% {padding: 10px 20px;}
}
</style>
</html>