07마퀴 CTA
가로 전체 폭 띠 안에서 초대형 CTA 문구가 이음새 없이 반복해서 흐른다.
쓰임가입 유도 띠, 이벤트 배너
translateX(-50%) 루프margin 간격(gap 금지)hover 일시정지

<main class="stage">
<div class="cta-band">
<div class="cta-band__track">
<span class="cta-band__item">지금 시작하기 —</span>
<span class="cta-band__item">지금 시작하기 —</span>
<span class="cta-band__item">지금 시작하기 —</span>
<span class="cta-band__item">지금 시작하기 —</span>
<span class="cta-band__item">지금 시작하기 —</span>
<span class="cta-band__item">지금 시작하기 —</span>
<span class="cta-band__item" aria-hidden="true">지금 시작하기 —</span>
<span class="cta-band__item" aria-hidden="true">지금 시작하기 —</span>
<span class="cta-band__item" aria-hidden="true">지금 시작하기 —</span>
<span class="cta-band__item" aria-hidden="true">지금 시작하기 —</span>
<span class="cta-band__item" aria-hidden="true">지금 시작하기 —</span>
<span class="cta-band__item" aria-hidden="true">지금 시작하기 —</span>
</div>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 실제 서비스는 12~20s 가 보통. 데모는 gif 루프에 맞춰 2s 로 배속
$easing: linear; // 등속
$color: $subject-cream; // 문구 색
@include stage($stage-orange);
.cta-band {
width: min(440px, 94vw);
overflow: hidden;
}
.cta-band__track {
display: flex;
width: max-content;
animation: marquee-scroll $duration $easing infinite;
}
// 6개를 그대로 한 번 더 복제해 트랙 하나에 12개. 간격은 트랙의 gap 이 아니라 margin-right 로 —
// gap 은 12개 사이에 11번만 생겨 -50% 가 gap 의 절반만큼 모자라 한 바퀴마다 튄다 (028 실측, BD15)
.cta-band__item {
margin-right: $sp-6;
flex-shrink: 0;
white-space: nowrap;
color: $color;
font-weight: 800;
font-size: clamp(24px, 7vw, 40px);
line-height: 1;
}
@keyframes marquee-scroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
.cta-band__track { animation: none; transform: translateX(0); }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ff4d1f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.cta-band {
width: min(440px, 94vw);
overflow: hidden;
}
.cta-band__track {
display: flex;
width: max-content;
animation: marquee-scroll 2s linear infinite;
}
.cta-band__item {
margin-right: 24px;
flex-shrink: 0;
white-space: nowrap;
color: #fff7e6;
font-weight: 800;
font-size: clamp(24px, 7vw, 40px);
line-height: 1;
}
@keyframes marquee-scroll {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
@media (prefers-reduced-motion: reduce) {
.cta-band__track {
animation: none;
transform: translateX(0);
}
}import type { CSSProperties } from "react";
import styles from "./KineticCtaBand.module.scss";
export type KineticCtaBandProps = {
phrase?: string;
/** 한 바퀴 도는 시간(기본 2000ms) */
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function KineticCtaBand({
phrase = "Get started now —",
duration = 2000,
easing = "linear",
color = "#fff7e6",
}: KineticCtaBandProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
// 6개를 그대로 한 번 더 복제해 트랙 하나에 12개 — margin-right 간격, gap 은 쓰지 않는다 (이음새 점프 방지)
const items = Array.from({ length: 12 }, (_, i) => i);
return (
<div className={styles.stage} style={vars}>
<div className={styles.band}>
<div className={styles.track}>
{items.map((i) => (
<span key={i} className={styles.item} aria-hidden={i >= 6 ? true : undefined}>{phrase}</span>
))}
</div>
</div>
</div>
);
}07 마퀴 CTA — 측정 누적면적 8.303% · 움직인 프레임 23/23GODRICH 원작 · zip 에 SCSS·React 포함 · 키네틱 타이포그래피 랜딩페이지, 코드로 뜯어봤다
이 데모가 속한 글
키네틱 타이포그래피 랜딩페이지, 코드로 뜯어봤다키네틱 타이포그래피는 헤드라인 글자가 화면 폭에 맞춰 커지고, 단어가 순서대로 튀어 오르고, 숫자가 굴러가듯 올라가는 디자인 방식입니다. 요즘 랜딩페이지 첫 화면을 다 이렇게 만들길래, 실제로 코드까지 뜯어서 아홉 이 글의 데모 전부 보기


