# 펄스 링

중심에서 퍼져 나가는 고리 애니메이션

- Type: animation
- Theme: base
- Tags: animation, pulse, loop, status
- English title: Pulse Ring
- URL: https://dsui.vercel.app/items/pulse-ring

## AI prompt

```text
Draw a dot with two concentric rings that scale from 1 to 2.4 while fading out, 2400ms infinite, the second ring delayed by 800ms.
```

## Source

### demo.module.css

```css
.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.core {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ds-color-brand-blue);
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ds-color-brand-blue);
  animation: pulse 2400ms var(--ds-ease-out) infinite;
}

.ring:nth-child(2) {
  animation-delay: 800ms;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

```

### demo.tsx

```tsx
import styles from "./demo.module.css";

export default function Demo() {
  return (
    <div className={styles.stage}>
      <div className={styles.core}>
        <span className={styles.ring} />
        <span className={styles.ring} />
      </div>
    </div>
  );
}

```
