08丸い上部フッター
フッター上端の角が大きく丸まり、上のコンテンツを柔らかく包み込むように乗る。
使いどころマルチカラムフッター・サイトマップの整理
상단 radius 16칸 배경 대비4열→2열

<main class="stage">
<footer class="footerclay">
<div class="footerclay__col footerclay__col--a is-demo">
<p class="footerclay__h">プロダクト</p>
<p class="footerclay__link">機能</p>
</div>
<div class="footerclay__col footerclay__col--b is-demo">
<p class="footerclay__h">会社</p>
<p class="footerclay__link">会社概要</p>
</div>
<div class="footerclay__col footerclay__col--c is-demo">
<p class="footerclay__h">サポート</p>
<p class="footerclay__link">ヘルプセンター</p>
</div>
</footer>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 칸이 뜨고 가라앉는 한 주기
$easing: $ease-out; // 곡선
$color: $subject-blue; // 강조 색
@include stage($stage-paper);
.footerclay {
margin: 0;
box-sizing: border-box;
display: flex;
gap: $sp-3;
width: clamp(240px, 84vw, 380px);
border-radius: $r-card $r-card 0 0;
background: $subject-cream;
padding: $sp-5 $sp-4;
box-shadow: 8px 8px 16px rgba($stage-ink, .16), -8px -8px 16px rgba($stage-paper, .9);
}
.footerclay__col {
flex: 1;
box-sizing: border-box;
border-radius: $r-sm;
background: rgba($stage-ink, .04);
padding: $sp-3;
animation: colFloat $duration $easing infinite;
}
.footerclay__col--a { animation-delay: 0s; }
.footerclay__col--b { animation-delay: -0.6s; }
.footerclay__col--c { animation-delay: -1.2s; }
.footerclay__h {
margin: 0 0 $sp-1;
color: rgba($subject-ink, .72);
font-weight: 700; font-size: clamp(9px, 2.2vw, 10.5px); line-height: 1;
letter-spacing: .04em;
text-transform: uppercase;
}
.footerclay__link {
margin: 0;
color: $subject-ink;
font-weight: 600; font-size: clamp(11px, 2.6vw, 13px); line-height: 1.3;
}
// 데모: 세 칸이 서로 다른 박자로 살짝 떠올랐다 가라앉는다
@keyframes colFloat {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
.footerclay__col { 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: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.footerclay {
margin: 0;
box-sizing: border-box;
display: flex;
gap: 12px;
width: clamp(240px, 84vw, 380px);
border-radius: 16px 16px 0 0;
background: #fff7e6;
padding: 20px 16px;
box-shadow: 8px 8px 16px rgba(23, 20, 26, 0.16), -8px -8px 16px rgba(255, 255, 255, 0.9);
}
.footerclay__col {
flex: 1;
box-sizing: border-box;
border-radius: 8px;
background: rgba(23, 20, 26, 0.04);
padding: 12px;
animation: colFloat 2s ease-out infinite;
}
.footerclay__col--a {
animation-delay: 0s;
}
.footerclay__col--b {
animation-delay: -0.6s;
}
.footerclay__col--c {
animation-delay: -1.2s;
}
.footerclay__h {
margin: 0 0 4px;
color: rgba(23, 20, 26, 0.72);
font-weight: 700;
font-size: clamp(9px, 2.2vw, 10.5px);
line-height: 1;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.footerclay__link {
margin: 0;
color: #17141a;
font-weight: 600;
font-size: clamp(11px, 2.6vw, 13px);
line-height: 1.3;
}
@keyframes colFloat {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
@media (prefers-reduced-motion: reduce) {
.footerclay__col {
animation: none !important;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./FooterClay.module.scss";
export type FooterClayCol = { h: string; link: string };
export type FooterClayProps = {
cols?: FooterClayCol[];
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
const DELAYS = ["0s", "-0.6s", "-1.2s"];
export default function FooterClay({
cols = [
{ h: "제품", link: "기능" },
{ h: "회사", link: "소개" },
{ h: "고객지원", link: "도움말" },
],
duration = 2000,
easing = "ease-out",
color = "#2f6df6",
}: FooterClayProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<footer className={styles.footer} style={vars}>
{cols.map((col, i) => (
<div key={col.h} className={styles.col} style={{ animationDelay: DELAYS[i % DELAYS.length] }}>
<p className={styles.h}>{col.h}</p>
<p className={styles.link}>{col.link}</p>
</div>
))}
</footer>
);
}08 丸い上部フッター — 計測 累積面積 1.393% · 動いたフレーム 23/23GODRICH オリジナル · SCSS と React は zip に同梱 · クレイモーフィズムとは?丸くてぷっくりしたLPパーツ9選
このデモが属する記事
クレイモーフィズムとは?丸くてぷっくりしたLPパーツ9選クレイモーフィズムとは、太い角丸と明るいハイライト・暗い影を同じ面に重ねることで、粘土を指で押したような柔らかい質感を作るUIデザインの手法です。ボタンやカードによく使われます。 この記事のデモをすべて見る


