/
main.css
67 lines (67 loc) · 1.29 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
body{
margin: 0;
padding: 0;
background: #262626;
font-family: sans-serif;
}
a{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 200px;
height: 75px;
background: #fff;
border-radius: 75px;
line-height: 75px;
text-align: center;
font-size: 30px;
text-decoration: none;
color: #262626;
transition: .5s;
text-transform: uppercase;
}
a.active{
background: transparent;
color: #fff;
}
a:before{
content: "";
position: absolute;
top: 0;
left: 0;
background: #ff0047;
width: 50%;
height: 100%;
transition: .5s;
z-index: -1;
transform: translateX(-200px) rotate(-325deg);
opacity: 0;
}
a.active:before{
left: 30.5px;
transform: translateX(0px) rotate(35deg);
border-top-left-radius: 75px;
border-bottom-left-radius: 75px;
opacity: 1;
}
a:after{
content: "";
position: absolute;
top: 0;
right: 0;
background: #ff0047;
width: 50%;
height: 100%;
transition: .5s;
z-index: -1;
transform: translateX(200px) rotate(325deg);
opacity: 0;
}
a.active:after{
right: 30.5px;
transform: translateX(0px) rotate(-35deg);
border-top-right-radius: 75px;
border-bottom-right-radius: 75px;
opacity: 1;
}