-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (82 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Jiangxin829</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: rgb(18, 6, 32);
}
.link {
position: absolute;
left: 50%;
top: 30%;
transform: translateX(-50%);
text-decoration: none;
font-size: 30px;
color: blueviolet;
}
.mountain1 {
position: fixed;
bottom: 0;
width: 100%;
height: 569px;
background: url(mountain1.png);
}
.mountain2 {
position: fixed;
bottom: 0;
width: 100%;
height: 336px;
background: url(mountain2.png);
}
.bear {
position: absolute;
bottom: 15%;
width: 200px;
height: 100px;
background: url(bear.png) no-repeat;
animation: bear 1s steps(8) infinite, move 3s forwards;
}
@keyframes mountain {
0% {
background-position: 0 0;
}
100% {
background-position: -3480px 0;
}
}
@keyframes bear {
0% {
background-position: 0 0;
}
100% {
background-position: -1600px 0;
}
}
@keyframes move {
0% {
left: 0;
}
100% {
left: 50%;
/* margin-left: -100px; */
transform: translateX(-50%);
}
}
</style>
</head>
<body>
<div class="mountain1"></div>
<div class="mountain2">
<div class="bear"></div>
</div>
<a class="link" href="https://github.com/jiangxin829/jiangxin829">Click Here!</a>
</body>
</html>