-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFace-Effect.css
More file actions
74 lines (66 loc) · 1.2 KB
/
Face-Effect.css
File metadata and controls
74 lines (66 loc) · 1.2 KB
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
#Face-Effect{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.body{
display: flex;
justify-content: center;
height: 100vh;
background: #5d3800;
}
.face{
position: relative;
width: 300px;
height: 300px;
border-radius: 50%;
background: #ffcd00;
display: flex;
justify-content: center;
align-items: center;
top: 200px;
}
.face::before{
content: '';
position: absolute;
top: 180px;
width: 150px;
height: 70px;
background: #b57700;
border-bottom-left-radius: 70px;
border-bottom-right-radius: 70px;
transition: 0.5s;
}
.face:hover::before{
top: 210px;
width: 150px;
height: 20px;
background: #b57700;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.eyes{
position: relative;
top: -40px;
display: flex;
}
.eyes .eye{
position: relative;
width: 80px;
height: 80px;
display: block;
background: #fff;
margin: 0 15px;
border-radius: 50%;
}
.eyes .eye::before{
content: '';
position: absolute;
top: 50%;
left: 25px;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
background: #333;
border-radius: 50%;
}