-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbtn.css
More file actions
115 lines (100 loc) · 2 KB
/
Copy pathbtn.css
File metadata and controls
115 lines (100 loc) · 2 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
*{
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
.container{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background-color: #161616;
overflow :hidden;
transform:scale(1.5);
flex-direction: column;
gap: 100px;
}
.decision{
display: flex;
gap: 200px;
flex-direction: row;
}
.hide{
display:none;
}
#btn{
padding:15px 40px;
border:none;
border-radius: 12px;
outline:none;
color:#fff;
cursor:pointer;
position:relative;
z-index: 0;
}
#btn::after{
content:"";
z-index: -1;
position:absolute;
width:100%;
height:100%;
background-color: #333;
left:0;
top:0;
border-radius:12px;
}
/* glow */
#btn::before{
content:"";
font-family: cursive;
background: linear-gradient(
45deg,
#ff1300, #fff251, #317046, #cf02a6,#002bff, #ff7300
);
position:absolute;
top:-2px;
left: -2px;
background-size:600%;
z-index: -1;
width:calc(100% + 5px);
height: calc(100% + 5px);
filter:blur(8px);
animation: glowing 20s linear infinite;
transition:opacity .3s ease-in-out;
border-radius:10px;
opacity: 0;
}
@keyframes glowing{
0% {background-position: 0 0;}
50% {background-position: 400% 0;}
100% {background-position: 0 0;};
}
#btn:hover::before{
opacity:1;
z-index: -1;
}
#btn:active::after{
background: transparent;
}
#btn:active{
color:#000;
font-weight:bold;
font-family: cursive;
}
#yes,#no{
border: none;
border-radius: 25px;
height: 30px;
width:50px ;
cursor: pointer;
background-color: #f6ea8e;
font-size: 15px;
transition: 0s ease-in;
}
#yes:hover,#no:hover{
background: rgb(245, 240, 189);
box-shadow:0 0 5px rgb(227, 219, 145),
0 0 20px rgb(240, 239, 231),
0 0 80px #bacce5,
0 0 1500px #b7e3d8;
}