-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.css
More file actions
36 lines (36 loc) · 883 Bytes
/
Copy pathindex2.css
File metadata and controls
36 lines (36 loc) · 883 Bytes
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
body{
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #efeeee;
gap: 30px;
}
.img{
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 20px;
box-shadow: 18px 18px 30px 0px rgba(0, 0, 0, 0.2),
-18px -18px 30px 0px rgba(255, 255, 255, 1);
transition: all .5s ease-out;
}
img{
width: 24px;
transition: all .5s ease-out;
}
.img:hover{
cursor: pointer;
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2),
0 0 0 0 rgba(255, 255, 255, 0.5),
inset 18px 18px 30px 0px rgba(0, 0, 0, 0.1),
inset -18px -18px 30px 0px rgba(255, 255, 255, 0.8);
}
img:hover{
width: 31px;
}
/* box-shadow 偏移值x, 偏移值y, 模糊半径, 扩展半径 */