forked from spandey1296/Learn-Share-Hacktoberfest2021
-
Notifications
You must be signed in to change notification settings - Fork 5
/
style.css
49 lines (44 loc) · 831 Bytes
/
style.css
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
body{
margin: 0;
padding: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #2c3a47;
}
.sm a{
display: inline-block;
font-size: 40px;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
color: #6ab04c;
margin: 0 16px;
transition: .4s linear;
position: relative;
}
.sm a::before, .sm a::after{
content: '';
position: absolute;
box-sizing: border-box;
width: 100%;
height: 100%;
left: 0;
top: 0;
transition: .4s linear;
}
.sm a:hover{
transform: scale(.8);
}
.sm a:hover::before{
border-left: 4px solid;
border-right: 4px solid;
transform: skewX(20deg);
}
.sm a:hover::after{
border-top: 4px solid;
border-bottom: 4px solid;
transform: skewY(-20deg);
}