06정품 인증 씰 (톱니 테두리)
별 모양 톱니 테두리를 clip-path로 자르고 그 위에 무지개 그라디언트를 얹어 천천히 돌립니다. 호버하면 회전 속도가 빨라집니다.
쓰임정품 인증 스티커, 공식 굿즈 씰, 품질 보증 배지
clip-path polygon@keyframes rotateanimation-duration 전환

<main class="stage">
<div class="seal" tabindex="0">
<span class="seal__shape" aria-hidden="true"></span>
<span class="seal__text">정품</span>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: 700ms; // 호버 시 회전이 빨라지는 애니메이션 길이
$easing: linear;
$color: $subject-blue; // 사용 안 함(참고용)
@include stage($stage-yellow);
.seal {
position: relative;
width: min(116px, 40vw);
aspect-ratio: 1;
display: grid;
place-items: center;
outline: none;
cursor: pointer;
}
.seal__shape {
position: absolute; inset: 0;
clip-path: polygon(50% 0%, 61% 12%, 75% 6%, 78% 20%, 93% 20%, 90% 35%, 100% 43%, 90% 55%,
96% 68%, 82% 70%, 80% 85%, 65% 80%, 58% 93%, 50% 82%, 42% 93%, 35% 80%,
20% 85%, 18% 70%, 4% 68%, 10% 55%, 0% 43%, 10% 35%, 7% 20%, 22% 20%, 25% 6%, 39% 12%);
background: conic-gradient(from 0deg, #dcb9d1, #b9d9dc, #c8dcb9, #dcdab9, #dcb9d1);
animation: seal-spin $dur-loop linear infinite;
}
.seal__text {
position: relative; z-index: 1;
font-weight: 800; font-size: 13px; color: $stage-ink; font-family: inherit;
background: $stage-paper; padding: $sp-2 $sp-3; border-radius: $r-pill;
}
.seal:hover .seal__shape,
.seal:focus-visible .seal__shape,
.seal.is-demo .seal__shape { animation-duration: $duration; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
.seal__shape { animation: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffd23f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.seal {
position: relative;
width: min(116px, 40vw);
aspect-ratio: 1;
display: grid;
place-items: center;
outline: none;
cursor: pointer;
}
.seal__shape {
position: absolute;
inset: 0;
clip-path: polygon(50% 0%, 61% 12%, 75% 6%, 78% 20%, 93% 20%, 90% 35%, 100% 43%, 90% 55%, 96% 68%, 82% 70%, 80% 85%, 65% 80%, 58% 93%, 50% 82%, 42% 93%, 35% 80%, 20% 85%, 18% 70%, 4% 68%, 10% 55%, 0% 43%, 10% 35%, 7% 20%, 22% 20%, 25% 6%, 39% 12%);
background: conic-gradient(from 0deg, #dcb9d1, #b9d9dc, #c8dcb9, #dcdab9, #dcb9d1);
animation: seal-spin 2s linear infinite;
}
.seal__text {
position: relative;
z-index: 1;
font-weight: 800;
font-size: 13px;
color: #17141a;
font-family: inherit;
background: #ffffff;
padding: 8px 12px;
border-radius: 999px;
}
.seal:hover .seal__shape,
.seal:focus-visible .seal__shape,
.seal.is-demo .seal__shape {
animation-duration: 700ms;
}
@keyframes seal-spin {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: reduce) {
.seal__shape {
animation: none;
}
}import type { CSSProperties } from "react";
import styles from "./AuthenticitySeal.module.scss";
export type AuthenticitySealProps = {
text: string;
/** 호버 시 회전이 빨라지는 애니메이션 길이 (기본 700ms) */
duration?: number;
easing?: string;
/** 사용 안 함(참고용) */
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function AuthenticitySeal({
text,
duration = 700,
easing = "linear",
color = "#2f6df6",
}: AuthenticitySealProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<div className={styles.seal} style={vars} tabIndex={0}>
<span className={styles.shape} aria-hidden="true" />
<span className={styles.text}>{text}</span>
</div>
);
}06 정품 인증 씰 (톱니 테두리) — 측정 누적면적 6.797% · 움직인 프레임 23/23GODRICH 원작 · zip 에 SCSS·React 포함 · CSS 홀로그램 카드 효과 9가지 — 스티커·뱃지·티켓
이 데모가 속한 글
CSS 홀로그램 카드 효과 9가지 — 스티커·뱃지·티켓CSS 홀로그램 효과는 각도에 따라 빛이 다르게 반사되는 홀로그램 재질을, CSS 그라디언트와 애니메이션만으로 흉내 내는 기법입니다. 포켓몬 카드처럼 빛나는 표면을 눈으로는 자주 보지만 막상 코드로 옮기려면 막막한 이 글의 데모 전부 보기


