File size: 5,353 Bytes
f5071ca |
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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
.buttons {
display: flex;
width: 380px;
gap: 10px;
--b: 5px; /* the border thickness */
--h: 1.8em; /* the height */
scale: 0.5;
}
.buttons button {
--_c: crimson;
flex: calc(1.25 + var(--_s,0));
min-width: 0;
font-size: 40px;
font-weight: bold;
height: var(--h);
cursor: pointer;
color: var(--_c);
border: var(--b) solid var(--_c);
background:
conic-gradient(at calc(100% - 1.3*var(--b)) 0,var(--_c) 209deg, #0000 211deg)
border-box;
clip-path: polygon(0 0,100% 0,calc(100% - 0.577*var(--h)) 100%,0 100%);
padding: 0 calc(0.288*var(--h)) 0 0;
margin: 0 calc(-0.288*var(--h)) 0 0;
box-sizing: border-box;
transition: flex .4s;
}
.buttons button + button {
--_c: #0092CC;
flex: calc(.75 + var(--_s,0));
background:
conic-gradient(from -90deg at calc(1.3*var(--b)) 100%,var(--_c) 119deg, #0000 121deg)
border-box;
clip-path: polygon(calc(0.577*var(--h)) 0,100% 0,100% 100%,0 100%);
margin: 0 0 0 calc(-0.288*var(--h));
padding: 0 0 0 calc(0.288*var(--h));
}
.buttons button:focus-visible {
outline-offset: calc(-2*var(--b));
outline: calc(var(--b)/2) solid #000;
background: none;
clip-path: none;
margin: 0;
padding: 0;
}
.buttons button:focus-visible + button {
background: none;
clip-path: none;
margin: 0;
padding: 0;
}
.buttons button:has(+ button:focus-visible) {
background: none;
clip-path: none;
margin: 0;
padding: 0;
}
button:hover,
button:active:not(:focus-visible) {
--_s: .75;
}
button:active {
box-shadow: inset 0 0 0 100vmax var(--_c);
color: #fff;
}
#glow{
text-transform: uppercase;
-webkit-box-reflect: below 1px linear-gradient(transparent,#0004);
line-height: 0.7rem;
outline: none;
animation: animate 5s linear infinite;
}
@keyframes animate {
0%,18%,20%,50.1%,60%,65.1%,80%,90.1%,92%{
color: #0e3742;
text-shadow: none;
}
18.1%,20.1%,50%,60.1%,65%,80.1%,90%,92.1%,100%{
color: #fff;
text-shadow: 0 0 10px #03bcf4, 0 0 20px #03bcf4, 0 0 40px #03bcf4, 0 0 80px #03bcf4, 0 0 160px #03bcf4;
}
}
#back{
background-image: url(wallpaperflare.com_wallpaper.jpg);
background-size: cover;
}
/* .btn-23,
.btn-23 *,
.btn-23 :after,
.btn-23 :before,
.btn-23:after,
.btn-23:before {
border: 0 solid;
box-sizing: border-box;
}
.btn-23 {
padding-top: 5px;
-webkit-tap-highlight-color: transparent;
-webkit-appearance: button;
background-color: #000;
background-image: none;
color: #fff;
cursor: pointer;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
font-size: 100%;
font-weight: 900;
line-height: 1.5;
margin: 0;
-webkit-mask-image: -webkit-radial-gradient(#000, #fff);
padding: 0;
text-transform: uppercase;
}
.btn-23:disabled {
cursor: default;
}
.btn-23:-moz-focusring {
outline: auto;
}
.btn-23 svg {
display: block;
vertical-align: middle;
}
.btn-23 [hidden] {
display: none;
}
.btn-23 {
border-radius: 99rem;
border-width: 2px;
overflow: hidden;
padding: 0.8rem 3rem;
position: relative;
}
.btn-23 span {
display: grid;
inset: 0;
place-items: center;
position: absolute;
transition: opacity 0.2s ease;
}
.btn-23 .marquee {
--spacing: 5em;
--start: 0em;
--end: 5em;
-webkit-animation: marquee 1s linear infinite;
animation: marquee 1s linear infinite;
-webkit-animation-play-state: paused;
animation-play-state: paused;
opacity: 0;
position: relative;
text-shadow: #fff var(--spacing) 0, #fff calc(var(--spacing) * -1) 0,
#fff calc(var(--spacing) * -2) 0;
}
.btn-23:hover .marquee {
-webkit-animation-play-state: running;
animation-play-state: running;
opacity: 1;
}
.btn-23:hover .text {
opacity: 0;
}
@-webkit-keyframes marquee {
0% {
transform: translateX(var(--start));
}
to {
transform: translateX(var(--end));
}
}
@keyframes marquee {
0% {
transform: translateX(var(--start));
}
to {
transform: translateX(var(--end));
}
} */
#hero-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 0 10px;
color: white;
text-shadow: 2px 2px rgb(116, 116, 116);
text-transform: uppercase;
cursor: pointer;
border: solid 2px black;
letter-spacing: 1px;
font-weight: 600;
font-size: 17px;
background-color: hsl(49deg 98% 60%);
border-radius: 50px;
position: relative;
overflow: hidden;
transition: all 0.5s ease;
}
#hero-btn:active {
transform: scale(0.9);
transition: all 100ms ease;
}
#hero-btn svg {
transition: all 0.5s ease;
z-index: 2;
}
.play {
transition: all 0.5s ease;
transition-delay: 300ms;
}
#hero-btn:hover svg {
transform: scale(3) translate(50%);
}
.now {
position: absolute;
left: 0;
transform: translateX(-100%);
transition: all 0.5s ease;
z-index: 2;
}
#hero-btn:hover .now {
transform: translateX(10px);
transition-delay: 300ms;
}
#hero-btn:hover .play {
transform: translateX(200%);
transition-delay: 300ms;
}
@media only screen and (max-width: 600px) {
}
|