-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrick-button.css
59 lines (54 loc) · 1019 Bytes
/
brick-button.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
body{
margin: 0;
padding: 0;
background: #262626;
}
a{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 15px 30px;
text-transform: uppercase;
text-decoration: none;
color: #fff;
letter-spacing: 2px;
font-size: 20px;
}
a:before{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #B22222;
z-index: -1;
transition: transform 0.5s;
transform-origin: bottom right;
transform: scale(0);
}
a:hover:before{
transition: transform 0.5s;
transform-origin: top left;
transform: scale(1);
}
a:after{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: transparent;
border: 2px solid #fff;
z-index: -1;
transition: transform 0.5s;
transform-origin: bottom left;
transform: scale(1);
}
a:hover:after{
transition: transform 0.5s;
transform-origin: bottom right;
transform: scale(0);
}