07Citrus-gradient CTA band
The band carries a citrus gradient flowing from orange to lime whose position slowly drifts, while the white button on top presses in and springs back in a loop.
Best forSign-up bands, start-free-trial prompts
background-position 흐름press 버튼radius pill

<main class="stage">
<section class="ctacitrus">
<div class="ctacitrus__scrim">
<h2 class="ctacitrus__title">Start fresh, right now</h2>
<p class="ctacitrus__sub">Give it a free try</p>
</div>
<button class="ctacitrus__btn" type="button">Get started</button>
</section>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 그라디언트가 한 바퀴 흐르는 주기
$easing: $ease-spring; // 버튼이 눌렸다 튕겨 돌아오는 곡선
$color: $stage-ink;
$citrus-cream: #fffaf0;
$citrus-orange-deep: #bd967a;
$citrus-lime-deep: #98af5c;
$citrus-lemon-deep: #bdb27a;
$citrus-ink: #204a17;
// 무대 — 크림
@include stage($citrus-cream);
.ctacitrus {
box-sizing: border-box;
width: clamp(280px, 90vw, 430px);
display: flex;
flex-direction: column;
align-items: center;
gap: $sp-2;
padding: clamp($sp-5, 6vw, $sp-8) $sp-5;
border-radius: $r-card;
// 시트러스 그라디언트 — 색이 이어지도록 양 끝을 같은 색으로 두고 300% 폭으로 깔아 위치를 흘린다
background: linear-gradient(90deg, $citrus-orange-deep, $citrus-lemon-deep, $citrus-lime-deep, $citrus-lemon-deep, $citrus-orange-deep);
background-size: 300% 100%;
box-shadow: 0 10px 24px rgba($citrus-orange-deep, .45);
animation: gradFlow $duration linear infinite;
}
// 스크림 — 그라디언트가 흐르며 레몬 구간을 지날 때 흰 글자 대비가 1.4:1까지 떨어진다(실측, 접근성 섹션 참고).
// 잉크 65% 스크림을 글자 뒤에 깔면 세 색 전 구간에서 흰 글자 대비가 4.7:1 이상으로 유지된다
.ctacitrus__scrim {
display: flex;
flex-direction: column;
align-items: center;
gap: $sp-1;
padding: $sp-2 $sp-4;
border-radius: $r-card;
background: rgba($citrus-ink, .65);
}
.ctacitrus__title {
margin: 0;
color: $stage-paper;
font-weight: 700; font-size: clamp(16px, 4.2vw, 21px); line-height: 1.25;
font-family: inherit;
text-align: center;
}
.ctacitrus__sub {
margin: 0;
color: rgba($stage-paper, .92);
font-weight: 500; font-size: clamp(11px, 2.8vw, 13px); line-height: 1.4;
font-family: inherit;
text-align: center;
}
.ctacitrus__btn {
margin-top: $sp-2;
border: 0;
border-radius: $r-pill;
background: $stage-paper;
color: $citrus-ink;
padding: $sp-2 $sp-6;
font-weight: 700; font-size: clamp(12px, 3vw, 14px); line-height: 1;
font-family: inherit;
box-shadow: 0 8px 18px rgba($citrus-ink, .28);
animation: btnPress $duration $easing infinite;
}
.ctacitrus__btn:focus-visible {
outline: 3px solid $stage-paper;
outline-offset: 2px;
}
// 데모: 그라디언트는 왼쪽으로 천천히 흐르고, 버튼은 살짝 눌렸다 통통 튕겨 돌아온다
@keyframes gradFlow {
0% { background-position: 0% 50%; }
100% { background-position: -300% 50%; }
}
@keyframes btnPress {
0%, 55%, 100% { transform: translateY(0); box-shadow: 0 8px 18px rgba($citrus-ink, .28); }
65% { transform: translateY(4px) scaleY(.96); box-shadow: 0 2px 6px rgba($citrus-ink, .2); }
82% { transform: translateY(-3px); box-shadow: 0 11px 22px rgba($citrus-ink, .3); }
}
@media (prefers-reduced-motion: reduce) {
.ctacitrus, .ctacitrus__btn { animation: none !important; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #fffaf0;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.ctacitrus {
box-sizing: border-box;
width: clamp(280px, 90vw, 430px);
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: clamp(20px, 6vw, 32px) 20px;
border-radius: 16px;
background: linear-gradient(90deg, #bd967a, #bdb27a, #98af5c, #bdb27a, #bd967a);
background-size: 300% 100%;
box-shadow: 0 10px 24px rgba(189, 150, 122, 0.45);
animation: gradFlow 2s linear infinite;
}
.ctacitrus__scrim {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 8px 16px;
border-radius: 16px;
background: rgba(32, 74, 23, 0.65);
}
.ctacitrus__title {
margin: 0;
color: #ffffff;
font-weight: 700;
font-size: clamp(16px, 4.2vw, 21px);
line-height: 1.25;
font-family: inherit;
text-align: center;
}
.ctacitrus__sub {
margin: 0;
color: rgba(255, 255, 255, 0.92);
font-weight: 500;
font-size: clamp(11px, 2.8vw, 13px);
line-height: 1.4;
font-family: inherit;
text-align: center;
}
.ctacitrus__btn {
margin-top: 8px;
border: 0;
border-radius: 999px;
background: #ffffff;
color: #204a17;
padding: 8px 24px;
font-weight: 700;
font-size: clamp(12px, 3vw, 14px);
line-height: 1;
font-family: inherit;
box-shadow: 0 8px 18px rgba(32, 74, 23, 0.28);
animation: btnPress 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.ctacitrus__btn:focus-visible {
outline: 3px solid #ffffff;
outline-offset: 2px;
}
@keyframes gradFlow {
0% {
background-position: 0% 50%;
}
100% {
background-position: -300% 50%;
}
}
@keyframes btnPress {
0%, 55%, 100% {
transform: translateY(0);
box-shadow: 0 8px 18px rgba(32, 74, 23, 0.28);
}
65% {
transform: translateY(4px) scaleY(0.96);
box-shadow: 0 2px 6px rgba(32, 74, 23, 0.2);
}
82% {
transform: translateY(-3px);
box-shadow: 0 11px 22px rgba(32, 74, 23, 0.3);
}
}
@media (prefers-reduced-motion: reduce) {
.ctacitrus, .ctacitrus__btn {
animation: none !important;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./CtaBandCitrus.module.scss";
export type CtaBandCitrusProps = {
title?: string;
sub?: string;
cta?: string;
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function CtaBandCitrus({
title = "지금 상큼하게 시작하기",
sub = "무료로 시작해 보세요",
cta = "시작하기",
duration = 2000,
easing = "cubic-bezier(.2,.8,.2,1)",
color = "#ff6a00",
}: CtaBandCitrusProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<section className={styles.ctacitrus} style={vars}>
<div className={styles.scrim}>
<h2 className={styles.title}>{title}</h2>
<p className={styles.sub}>{sub}</p>
</div>
<button type="button" className={styles.btn}>{cta}</button>
</section>
);
}07 Citrus-gradient CTA band — Measured area 41.17% · moving frames 21/23Original by GODRICH · SCSS and React ship in the zip · Citrus Web Design Kit: 9 Fruit-Color Sections
The post this demo lives in
Citrus Web Design Kit: 9 Fruit-Color SectionsCitrus web design layers saturated fruit colors — orange, lime, grapefruit — on cream, with each card's shadow tinted to See all demos in this post


