anya-ji's picture
Add files using upload-large-folder tool
98c641a verified
Raw History Blame Contribute Delete
1.02 kB
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alphardex/aqua.css@1.5.5/dist/aqua.min.css">
<style>body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: black; }
:root {
--primary-color: hsl(196, 78%, 61%);
--info-color-transparent: rgba(95, 156, 236, 0.1); }
@property --angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: true; }
.btn-shiny-border {
--angle: 0deg;
--color-1: var(--primary-color);
--color-2: var(--info-color-transparent);
--btn-bg: transparent;
--btn-border-width: 0;
--btn-radius: 0;
color: white;
border: 0.2rem solid;
border-image: linear-gradient(var(--angle), var(--color-1) 10%, var(--color-2) 50%) 10;
animation: spin-angle 1.6s linear infinite; }
@keyframes spin-angle {
from {
--angle: 0deg; }
to {
--angle: 360deg; } }
</style>
</head>
<body>
<div class="btn btn-shiny-border">Shiny Border</div>
<script></script>
</body>
</html>