-
Notifications
You must be signed in to change notification settings - Fork 0
/
eye.html
82 lines (79 loc) · 2.01 KB
/
eye.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
<!DOCTYPE html>
<html lang="en">
<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>eye</title>
<style>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
background: #444;
}
.con{
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.con .shape{
width: 200px;
height: 100px;
background: #fff;
clip-path: ellipse(50% 33% at 50% 50%);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.con .shape::before{
content: '';
width: 100%;
clip-path: ellipse(50% 33% at 50% 50%);
height: 100%;
top: -70px;
background: rgb(255, 135, 79);
position: absolute;
animation: ani 2s alternate infinite ease-in-out;}
@keyframes ani{
0%{
top: -70%;
}
100%{
top: 0;
}
}
.con .shape .innershape{
position: absolute;
width: 100px;
height: 50px;
background: #111;
z-index: -1;
border-radius: 50%;
}
.con .shape:nth-child(2){
margin: 30px;
}
</style>
</head>
<body>
<div class="con">
<div class="shape">
<div class="innershape">
<div class="circle"></div>
</div>
</div>
<div class="shape">
<div class="innershape">
<div class="circle"></div>
</div>
</div>
</div>
</body>
</html>