01Corner ribbon badge
A ribbon tilted -45deg across the card corner has a white light streak (an ::after gradient) sweep over it on a loop, so even a static NEW label keeps pulling the eye.
Best forNew-arrival thumbnails on a shop grid, just-posted notice or event cards
rotate(-45deg)::after 빛줄기 스윕overflow: hidden

<main class="stage is-demo">
<div class="card" aria-label="new arrival">
<div class="thumb"></div>
<div class="ribbon-wrap">
<span class="ribbon">NEW</span>
</div>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: $dur-loop; // 2s — 빛줄기 한 주기
$easing: $ease-out;
$color: #50a26e; // NEW 리본 그린
@include stage($stage-yellow);
.card {
position: relative;
width: 220px; height: 140px;
border-radius: $r-card;
overflow: hidden;
background: $subject-cream;
box-shadow: $shadow-raised;
}
.thumb {
position: absolute; inset: 0;
background: linear-gradient(135deg, rgba($subject-blue, .12), rgba($subject-blue, .04));
}
.ribbon-wrap {
position: absolute;
top: $sp-6; left: -$sp-10;
width: 160px;
transform: rotate(-45deg);
overflow: hidden;
}
.ribbon {
position: relative;
display: block;
padding: $sp-1 0;
background: $color;
color: $subject-ink;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
font-weight: 700;
font-size: 13px;
letter-spacing: .06em;
text-align: center;
box-shadow: $shadow-press;
}
// 빛줄기 ::after — background-position 만 움직인다 (레이아웃은 그대로)
.ribbon::after {
content: "";
position: absolute; inset: 0;
background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, .7) 45%, transparent 75%);
background-size: 220% 100%;
background-position: 140% 0;
}
.stage.is-demo .ribbon::after {
animation: shine-sweep $duration $easing infinite;
}
@keyframes shine-sweep {
0%, 15% { background-position: 140% 0; }
55% { background-position: -40% 0; }
100% { background-position: -40% 0; }
}
@media (prefers-reduced-motion: reduce) {
.stage.is-demo .ribbon::after { animation: none; background-position: 30% 0; }
}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);
}
.card {
position: relative;
width: 220px;
height: 140px;
border-radius: 16px;
overflow: hidden;
background: #fff7e6;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
.thumb {
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(47, 109, 246, 0.12), rgba(47, 109, 246, 0.04));
}
.ribbon-wrap {
position: absolute;
top: 24px;
left: -40px;
width: 160px;
transform: rotate(-45deg);
overflow: hidden;
}
.ribbon {
position: relative;
display: block;
padding: 4px 0;
background: #50a26e;
color: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
font-weight: 700;
font-size: 13px;
letter-spacing: 0.06em;
text-align: center;
box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}
.ribbon::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.7) 45%, transparent 75%);
background-size: 220% 100%;
background-position: 140% 0;
}
.stage.is-demo .ribbon::after {
animation: shine-sweep 2s ease-out infinite;
}
@keyframes shine-sweep {
0%, 15% {
background-position: 140% 0;
}
55% {
background-position: -40% 0;
}
100% {
background-position: -40% 0;
}
}
@media (prefers-reduced-motion: reduce) {
.stage.is-demo .ribbon::after {
animation: none;
background-position: 30% 0;
}
}import type { CSSProperties } from "react";
import styles from "./BadgeNewRibbon.module.scss";
export type BadgeNewRibbonProps = {
duration?: number;
easing?: string;
color?: string;
label?: string;
};
export default function BadgeNewRibbon({
duration = 2000,
easing = "ease-out",
color = "#16a34a",
label = "NEW",
}: BadgeNewRibbonProps) {
const vars: CSSProperties = { "--duration": `${duration}ms`, "--easing": easing, "--color": color } as CSSProperties;
return (
<div className={styles.card} style={vars} aria-label="new arrival">
<div className={styles.thumb} />
<div className={styles.ribbonWrap}>
<span className={styles.ribbon}>{label}</span>
</div>
</div>
);
}01 Corner ribbon badge — Measured area 1.912% · moving frames 9/23Original by GODRICH · SCSS and React ship in the zip · 9 CSS Badge Design Ideas — New, Sale, Verified
The post this demo lives in
9 CSS Badge Design Ideas — New, Sale, VerifiedA badge is the small label on a thumbnail or name that shows status at a glance — new, sale, verified, sold out. Good CS See all demos in this post


