forked from manrajgrover/SingleDivProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Melting Ice Cream.html
71 lines (68 loc) · 1.87 KB
/
Melting Ice Cream.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
<!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>Melting Ice Cream | Loader</title>
<style>
html, body {
height: 100%;
background: skyblue;
margin: 0;
padding: 0;
}
#melting-icecream {
width: 0px;
height: 0px;
position: relative;
top: 40%;
left: 40%;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-right: 50px solid orange;
}
#melting-icecream::before {
content: '';
display: block;
position: absolute;
left: 46px;
top: -10px;
width: 31px;
height: 20px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
transform: rotate(90deg);
background: #ffffff;
}
#melting-icecream::after {
content: '';
display: block;
position: absolute;
background: #ffffff;
left: 69px;
top: 5px;
width: 8px;
height: 8px;
border-radius: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 2px;
transform: rotate(-45deg);
animation: melt 0.8s infinite linear;
}
@keyframes melt {
0% {
opacity: 0;
transform: translateY(0) rotate(-45deg);
}
100% {
opacity: 1;
transform: translateY(60px) rotate(-45deg);
}
}
</style>
</head>
<body>
<div id="melting-icecream"></div>
</body>
</html>