-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
79 lines (70 loc) · 1.23 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
72
73
74
75
76
77
78
79
*,
*::after *::before {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
display: grid;
place-items: center;
min-height: 100vh;
background-color: #191a21;
}
button {
padding: 1rem 2rem;
border-radius: 10rem;
border: none;
background-color: transparent;
color: #fff;
font-size: 1.2rem;
position: relative;
overflow: hidden;
}
button::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 2rem;
height: 2rem;
background-color: #fff;
transform: translate(-50%, -50%);
border-radius: 50%;
filter: blur(12px);
animation: button-animation 3s linear infinite;
}
button::after {
content: attr(data-text);
position: absolute;
top: 2%;
left: 1%;
width: 98%;
height: 96%;
background-color: #252731;
border-radius: inherit;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
button:hover::after {
background-image: linear-gradient(to top, rgb(44, 44, 44), #252731);
}
@keyframes button-animation {
0% {
left: 0;
top: 0;
}
35% {
left: 100%;
top: 0;
}
50% {
left: 100%;
top: 100%;
}
85% {
left: 0%;
top: 100%;
}
}