Skip to content

The open alternative to Salesforce, designed for AI.

1.0 KB
Raw Blame
.container {
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: var(--t-spacing-2);
  width: var(--t-spacing-6);
  height: var(--t-spacing-3);
  border-radius: var(--t-border-radius-pill);
  corner-shape: round;
  border: 1px solid
    var(--loader-color, var(--tw-button-color, var(--t-font-color-tertiary)));
  overflow: hidden;
}

.dot {
  background-color: var(
    --loader-color,
    var(--tw-button-color, var(--t-font-color-tertiary))
  );
  border-radius: var(--t-border-radius-pill);
  corner-shape: round;
  height: 8px;
  width: 8px;
  animation: loaderDot 0.8s ease-in-out infinite;
}

// Replicates the framer keyframes: x [-16, 0, 16], width [8, 12, 8],
// height [8, 2, 8] with times [0, 0.15, 0.3] over a 0.8s loop.
@keyframes loaderDot {
  0% {
    transform: translateX(-16px);
    width: 8px;
    height: 8px;
  }

  15% {
    transform: translateX(0);
    width: 12px;
    height: 2px;
  }

  30%,
  100% {
    transform: translateX(16px);
    width: 8px;
    height: 8px;
  }
}