Animated Gradient Border Pure CSS
<div class="wrapper"></div>
/* Customization */

:root {
  --color-1: #ff007b;
  --color-2: #fff;
  --radius: 100%;
  --border-size: 10px;
  --body-background: #030303;
  --inner-background: #222222;
  --text: "Skriper";
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--body-background);
}
div.wrapper {
  width: 250px;
  height: 250px;
  box-shadow: 5px 5px 40px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  position: absolute;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
div.wrapper::before {
  content: "";
  background-image: conic-gradient(var(--color-1) 20deg, var(--color-2) 120deg);
  width: 150%;
  height: 150%;
  position: absolute;

  animation: rotate 2s linear infinite;
}
div.wrapper::after {
  content: var(--text);
  width: calc(245px - var(--border-size));
  height: calc(245px - var(--border-size));
  background: var(--inner-background);
  position: absolute;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-1);
  font-size: 20px;
  box-shadow: inset 5px 5px 30px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
// JavaScript

Animated Gradient Border Pure CSS

  • Files
  • Index
  • Style
  • Script
  • README
  • CDN Add
  • Poppins v19 Google Fonts
HTML

title: description:

Markdown

PLEASE WAIT...