<template>
  <div class="ccb-loader-3">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
  </div>
</template>

<script setup lang="ts">
import { useAppearanceColors } from "@/admin/shared/utils/useAppearanceColors";

const { accentColor } = useAppearanceColors();
</script>

<style lang="scss">
.ccb-loader-3 {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
  transform: scale(0.3);
  left: -9px !important;
}
.ccb-loader-3 div {
  transform-origin: 40px 40px;
  animation: ccb-loader-3 1.2s linear infinite;
}
.ccb-loader-3 div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: v-bind(accentColor);
}
.ccb-loader-3 div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.ccb-loader-3 div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.ccb-loader-3 div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.ccb-loader-3 div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.ccb-loader-3 div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.ccb-loader-3 div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.ccb-loader-3 div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.ccb-loader-3 div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.ccb-loader-3 div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.ccb-loader-3 div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.ccb-loader-3 div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.ccb-loader-3 div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

@keyframes ccb-loader-3 {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
</style>
