-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (71 loc) · 1.09 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
body{
margin: 0;
padding: 0;
background: #2d3436
}
.middle{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.btn{
position: relative;
display: block;
color: white;
font-size: 24px;
font-family: bankay;
text-decoration: none;
margin: 30px 0;
border: 2px solid #ff7675;
padding: 14px 60px;
overflow: hidden;
transition: 1s all ease;
}
.btn::before{
background: #ff7675;
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
z-index: -1;
transition: all 0.6s ease
}
.btn1::before{
width: 0;
height: 100%;
}
.btn:hover::before{
width: 100%;
}
.btn2::before{
width: 100%;
height: 0;
}
.btn2:hover::before{
height: 100%;
}
.btn3::before{
width: 100%;
height: 0;
transform: translate(-50%,-50%) rotate(45deg);
}
.btn3:hover::before{
height: 385%;
}
.btn1:hover{
color: #2d3436;
}
.btn2:hover{
color: #2d3436;
}
.btn3:hover{
color: #2d3436;
}
p{font-family: befolk;text-align: center;font-size: 100px;animation: expand 0.8s;}
@keyframes expand{
0%{letter-spacing: 0px}
50%{letter-spacing: 5px}
100%{letter-spacing: 0px}
}