04Skills stack
도형으로 그린 기술 칩 여덟 개(실제 로고 아님)가 이어 붙어 끊김 없이 흐르고, 마우스를 올리거나 버튼을 누르면 흐름이 그 자리에서 멈춥니다.
Best for
translateX(-50%)animation-play-statepointerenter

<main class="stage">
<section class="sk" aria-label="Tech stack">
<p class="sk__label">SKILLS</p>
<div class="sk__viewport">
<div class="sk__track">
<span class="sk__chip sk__chip--1" aria-hidden="true"></span>
<span class="sk__chip sk__chip--2" aria-hidden="true"></span>
<span class="sk__chip sk__chip--3" aria-hidden="true"></span>
<span class="sk__chip sk__chip--4" aria-hidden="true"></span>
<span class="sk__chip sk__chip--1" aria-hidden="true"></span>
<span class="sk__chip sk__chip--2" aria-hidden="true"></span>
<span class="sk__chip sk__chip--3" aria-hidden="true"></span>
<span class="sk__chip sk__chip--4" aria-hidden="true"></span>
</div>
</div>
<button class="sk__pause" type="button" aria-pressed="false">Pause flow</button>
</section>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: 13s; // 트랙 한 바퀴 시간 (근접값 아님 — 마퀴 전용 값)
$easing: linear;
$color: $subject-ink; // 칩 마크 색
@include stage($stage-paper);
.sk { width: min(440px, 96vw); text-align: center; }
.sk__label {
margin: 0 0 $sp-3;
font-weight: 700; font-size: 10px; line-height: 1; font-family: inherit;
letter-spacing: .16em;
color: rgba($subject-ink, .72); // 흰 면 위 7.26:1
}
.sk__viewport {
overflow: hidden;
-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
// 트랙: gap 을 쓰지 않는다(BD15) — 항목마다 margin-right 로 간격을 준다
.sk__track {
display: flex;
width: max-content;
animation: sk-scroll $duration $easing infinite;
}
.sk.is-paused .sk__track,
.sk__viewport:hover .sk__track { animation-play-state: paused; }
@keyframes sk-scroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
.sk__chip {
flex: 0 0 auto;
width: 68px; height: 32px;
margin-right: $sp-5;
border-radius: $r-sm;
background: rgba(23, 20, 26, .06);
display: flex; align-items: center; justify-content: center;
gap: $sp-1;
}
.sk__chip::before {
content: "";
width: 12px; height: 12px;
background: $color;
}
.sk__chip::after {
content: "";
width: 24px; height: 6px;
border-radius: $r-xs;
background: rgba(23, 20, 26, .28);
}
.sk__chip--1::before { border-radius: 50%; }
.sk__chip--2::before { border-radius: $r-xs; transform: rotate(45deg); }
.sk__chip--3::before { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); border-radius: 0; }
.sk__chip--4::before { border-radius: $r-pill; width: 16px; background: $subject-blue; }
.sk__pause {
margin-top: $sp-3;
padding: $sp-1 $sp-3;
border-radius: $r-pill;
border: 1px solid rgba(23, 20, 26, .18);
background: none;
color: rgba(23, 20, 26, .6);
font-weight: 600; font-size: 10px; line-height: 1.6; font-family: inherit;
cursor: pointer;
}
.sk__pause[aria-pressed="true"] { background: rgba(23, 20, 26, .08); color: $subject-ink; }
// ── 접근성 ──────────────────────────────────────────
@media (prefers-reduced-motion: reduce) {
.sk__track { animation: none !important; 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: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.sk {
width: min(440px, 96vw);
text-align: center;
}
.sk__label {
margin: 0 0 12px;
font-weight: 700;
font-size: 10px;
line-height: 1;
font-family: inherit;
letter-spacing: 0.16em;
color: rgba(23, 20, 26, 0.72);
}
.sk__viewport {
overflow: hidden;
-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sk__track {
display: flex;
width: max-content;
animation: sk-scroll 13s linear infinite;
}
.sk.is-paused .sk__track,
.sk__viewport:hover .sk__track {
animation-play-state: paused;
}
@keyframes sk-scroll {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
.sk__chip {
flex: 0 0 auto;
width: 68px;
height: 32px;
margin-right: 20px;
border-radius: 8px;
background: rgba(23, 20, 26, 0.06);
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}
.sk__chip::before {
content: "";
width: 12px;
height: 12px;
background: #17141a;
}
.sk__chip::after {
content: "";
width: 24px;
height: 6px;
border-radius: 4px;
background: rgba(23, 20, 26, 0.28);
}
.sk__chip--1::before {
border-radius: 50%;
}
.sk__chip--2::before {
border-radius: 4px;
transform: rotate(45deg);
}
.sk__chip--3::before {
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
border-radius: 0;
}
.sk__chip--4::before {
border-radius: 999px;
width: 16px;
background: #2f6df6;
}
.sk__pause {
margin-top: 12px;
padding: 4px 12px;
border-radius: 999px;
border: 1px solid rgba(23, 20, 26, 0.18);
background: none;
color: rgba(23, 20, 26, 0.6);
font-weight: 600;
font-size: 10px;
line-height: 1.6;
font-family: inherit;
cursor: pointer;
}
.sk__pause[aria-pressed=true] {
background: rgba(23, 20, 26, 0.08);
color: #17141a;
}
@media (prefers-reduced-motion: reduce) {
.sk__track {
animation: none !important;
transform: translateX(0);
}
}// 실제 동작: 버튼을 누르거나 마우스를 올리면 흐름이 실제로 멈춘다(터치 기기는 버튼으로).
var root = document.querySelector('.sk');
var btn = document.querySelector('.sk__pause');
btn.addEventListener('click', function () {
var on = btn.getAttribute('aria-pressed') === 'true';
btn.setAttribute('aria-pressed', String(!on));
root.classList.toggle('is-paused', !on);
});import { useState } from "react";
import type { CSSProperties } from "react";
import styles from "./ProjectSkillsStack.module.scss";
export type ProjectSkillsStackProps = { duration?: number; easing?: string; color?: string };
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
const SHAPES = [1, 2, 3, 4, 1, 2, 3, 4];
export default function ProjectSkillsStack({ duration = 13, easing = "linear", color = "#17141a" }: ProjectSkillsStackProps) {
const [paused, setPaused] = useState(false);
const vars: Vars = { "--duration": `${duration}s`, "--easing": easing, "--color": color };
return (
<section className={`${styles.sk} ${paused ? styles.paused : ""}`} style={vars} aria-label="기술 스택">
<p className={styles.label}>SKILLS</p>
<div className={styles.viewport}>
<div className={styles.track}>
{SHAPES.map((n, i) => (
<span key={i} className={`${styles.chip} ${styles[`chip${n}`]}`} aria-hidden="true" />
))}
</div>
</div>
<button
type="button"
className={styles.pause}
aria-pressed={paused}
onClick={() => setPaused((v) => !v)}
>
흐름 멈추기
</button>
</section>
);
}04 Skills stack — Measured area 8.058% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · 9 Project Showcase Section Templates — Copy-Paste
The post this demo lives in
9 Project Showcase Section Templates — Copy-PasteA project showcase section template bundles the blocks a portfolio page runs through — hero, grid, case study, contact f See all demos in this post


