<div></div>
:root {
  --card-height: 80vh;
  --card-width: calc(var(--card-height) / 1.5);
  --color-1: #ECB0E1;
  --color-2: #C9DDFF;
  --color-3: #DE6C83;
  --color-4: #E3BCCC;
}

@property --h {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}



div::after {
  background: hsl(var(--h) 90% 50%);
  filter: blur(calc(var(--card-width) / 6));
  animation: spin 5.5s linear infinite;
}

@keyframes spin {
  0% {
    --h: 0deg;
  }
  100% {
    --h: 360deg;
  }
}


div {
  display:flex;
  color: #FFF;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  background: #0E273C;
  width: var(--card-width);
  height: var(--card-width);
  border-radius: 50%;
  padding: 3px;
  position: relative;
  text-align: center;
}

div::after {
  content: "";
  top: 0;
  left: 0;
  z-index: -1;
  height: 125%;
  width: 125%;
  margin: 0 auto;
  border-radius: 50%;
  transform: scale(1, .8);
}

body {
  min-height: 100vh;
  background: #0E273C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.