05라이브 펄스 닷 뱃지
점 뒤에 깔린 ::before 원이 scale 로 커지며 opacity 가 0 까지 옅어지길 반복해, 레이더 핑처럼 신호가 퍼져나가는 걸 보여준다.
쓰임실시간 방송·진행 중 이벤트 표시, 온라인 상태 인디케이터
::before scale·opacityaria-label@keyframes ping

<main class="stage is-demo">
<span class="badge" aria-label="live now">
<span class="dot"></span>
LIVE
</span>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: $dur-loop; // 2s — 핑 한 주기
$easing: $ease-out;
$color: $error;
@include stage($stage-ink);
.badge {
display: inline-flex; align-items: center; gap: $sp-2;
padding: $sp-2 $sp-4;
border-radius: $r-pill;
background: rgba($stage-paper, .08);
color: $stage-paper;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
font-weight: 700;
font-size: 18px;
letter-spacing: .1em;
}
.dot {
position: relative;
width: $sp-2; height: $sp-2;
border-radius: 50%;
background: $color;
}
.dot::before {
content: "";
position: absolute; inset: 0;
border-radius: 50%;
background: $color;
}
.stage.is-demo .dot::before {
animation: ping $duration $easing infinite;
}
@keyframes ping {
0% { transform: scale(1); opacity: .7; }
70%, 100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.stage.is-demo .dot::before { animation: none; opacity: 0; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
font-weight: 700;
font-size: 18px;
letter-spacing: 0.1em;
}
.dot {
position: relative;
width: 8px;
height: 8px;
border-radius: 50%;
background: #c2361a;
}
.dot::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
background: #c2361a;
}
.stage.is-demo .dot::before {
animation: ping 2s ease-out infinite;
}
@keyframes ping {
0% {
transform: scale(1);
opacity: 0.7;
}
70%, 100% {
transform: scale(2.6);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.stage.is-demo .dot::before {
animation: none;
opacity: 0;
}
}import type { CSSProperties } from "react";
import styles from "./BadgeLivePulseDot.module.scss";
export type BadgeLivePulseDotProps = {
duration?: number;
easing?: string;
color?: string;
label?: string;
};
export default function BadgeLivePulseDot({
duration = 2000,
easing = "ease-out",
color = "#c2361a",
label = "LIVE",
}: BadgeLivePulseDotProps) {
const vars: CSSProperties = { "--duration": `${duration}ms`, "--easing": easing, "--color": color } as CSSProperties;
return (
<span className={styles.badge} style={vars} aria-label="live now">
<span className={styles.dot} />
{label}
</span>
);
}05 라이브 펄스 닷 뱃지 — 측정 누적면적 0.147% · 움직인 프레임 8/23GODRICH 원작 · zip 에 SCSS·React 포함 · 뱃지 디자인 UI 9종 — 신상·세일·인증 배지 코드
이 데모가 속한 글
뱃지 디자인 UI 9종 — 신상·세일·인증 배지 코드뱃지 디자인 UI는 상품 썸네일이나 이름 옆에 작게 붙어 지금 상태를 알려주는 라벨 장식이다. NEW·세일·인증·품절처럼 사진 없이 코드 몇 줄로 만들 수 있고, 움직임 하나만 더하면 복붙 몇 줄로도 훨씬 눈에 띈다 이 글의 데모 전부 보기


