-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutton.css
94 lines (94 loc) · 1.63 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
body
{
margin: 0;
padding: 0;
display: flex;
justify-content: left-side;
float: center;
padding: 10px;
width: 100%;
align-items: center;
min-height: 10vh;
background: #031321;
font-family: consolas;
}
a
{
position: relative;
display: inline-block;
padding: 15px 30px;
color: #2196f3;
text-transform: uppercase;
letter-spacing: 4px;
text-decoration: none;
font-size: 20px;
overflow: hidden;
transition: 0.2s;
}
a:hover
{
color: #00FF00;
background: #2196f3;
box-shadow: 0 0 10px #2196f3, 0 0 40px #2196f3, 0 0 80px #2196f3;
transition-delay: 0.6s;
}
a span
{
position: absolute;
display: block;
}
a span:nth-child(1)
{
top: 0;
left: -100%;
width: 100%;
height: 100px;
background: linear-gradient(90deg,transparent,#FF0000);
}
a:hover span:nth-child(1)
{
left: 100%;
transition: 0.8s;
}
a span:nth-child(2)
{
bottom: 0;
right: -100%;
width: 100%;
height: 100px;
background: linear-gradient(270deg,transparent,#00FF00);
}
a:hover span:nth-child(2)
{
right: 100%;
transition: 0.8s;
transition-delay: 0.1s;
}
a span:nth-child(3)
{
top: -100℅;
right: 100%;
width: 2px%;
height: 100%;
background: linear-gradient(180deg,transparent,#2196f3);
}
a:hover span:nth-child(3)
{
top: 100%;
transition: 1s;
transition-delay: 0.25s;
}
a span:nth-child(4)
{
bottom: -100℅;
left: 0%;
width: 2px%;
height: 100%;
background: linear-gradient(360deg,transparent,#2196f3);
}
a:hover span:nth-child(4)
{
bottom: 100%;
transition: 1s;
transition-delay: 0.75s;
}