05Chubby plan cards
The recommended plan card puffs up one size larger and springs back with a press animation on click.
Best forThree-tier pricing, free vs paid comparison
강조 카드 확대radius 16press 애니메이션

<main class="stage">
<div class="pricing">
<div class="pricing__card pricing__card--basic">
<p class="pricing__name">Light</p>
<p class="pricing__price">Free</p>
</div>
<div class="pricing__card pricing__card--pro is-demo">
<span class="pricing__badge">Recommended</span>
<p class="pricing__name">Pro</p>
<p class="pricing__price">$9/mo</p>
<button class="pricing__cta" type="button">Choose plan</button>
</div>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 눌렸다 튀는 한 주기
$easing: $ease-pop; // 오버슈트 곡선
$color: $subject-blue; // 강조 색
@include stage($stage-ink);
.pricing {
display: flex;
align-items: flex-end;
gap: $sp-4;
width: clamp(240px, 80vw, 360px);
}
.pricing__card {
flex: 1;
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: $sp-1;
padding: $sp-5 $sp-4;
border-radius: $r-card;
background: $subject-cream;
}
.pricing__card--basic {
background: rgba($subject-cream, .8);
box-shadow: inset 4px 4px 8px rgba($stage-ink, .22), inset -4px -4px 8px rgba($stage-paper, .18);
}
.pricing__card--pro {
position: relative;
margin-top: $sp-4;
box-shadow: 10px 10px 20px rgba($stage-ink, .35), -8px -8px 18px rgba($stage-paper, .35);
transform-origin: center bottom;
animation: press $duration $easing infinite;
}
.pricing__badge {
position: absolute;
top: -14px;
left: $sp-4;
border-radius: $r-pill;
background: $subject-blue-deep;
color: $subject-cream;
padding: $sp-1 $sp-3;
font-weight: 700; font-size: clamp(9.5px, 2.4vw, 11px); line-height: 1;
}
.pricing__name {
margin: 0;
color: $subject-ink;
font-weight: 700; font-size: clamp(13px, 3vw, 15px); line-height: 1.3;
}
.pricing__price {
margin: 0;
color: rgba($subject-ink, .7);
font-weight: 600; font-size: clamp(11px, 2.6vw, 13px); line-height: 1.4;
}
.pricing__cta {
margin-top: $sp-3;
border: 0;
border-radius: $r-pill;
background: $subject-ink;
color: $subject-cream;
padding: $sp-2 $sp-4;
font-weight: 700; font-size: clamp(11px, 2.6vw, 13px); line-height: 1;
}
// 데모: 추천 카드가 눌렸다 튀어 오르며 정착한다
@keyframes press {
0% { transform: scale(1); }
40% { transform: scale(.94); }
55% { transform: scale(1.06); }
70% { transform: scale(.98); }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.pricing__card--pro { 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: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.pricing {
display: flex;
align-items: flex-end;
gap: 16px;
width: clamp(240px, 80vw, 360px);
}
.pricing__card {
flex: 1;
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: 4px;
padding: 20px 16px;
border-radius: 16px;
background: #fff7e6;
}
.pricing__card--basic {
background: rgba(255, 247, 230, 0.8);
box-shadow: inset 4px 4px 8px rgba(23, 20, 26, 0.22), inset -4px -4px 8px rgba(255, 255, 255, 0.18);
}
.pricing__card--pro {
position: relative;
margin-top: 16px;
box-shadow: 10px 10px 20px rgba(23, 20, 26, 0.35), -8px -8px 18px rgba(255, 255, 255, 0.35);
transform-origin: center bottom;
animation: press 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}
.pricing__badge {
position: absolute;
top: -14px;
left: 16px;
border-radius: 999px;
background: #0a4fe8;
color: #fff7e6;
padding: 4px 12px;
font-weight: 700;
font-size: clamp(9.5px, 2.4vw, 11px);
line-height: 1;
}
.pricing__name {
margin: 0;
color: #17141a;
font-weight: 700;
font-size: clamp(13px, 3vw, 15px);
line-height: 1.3;
}
.pricing__price {
margin: 0;
color: rgba(23, 20, 26, 0.7);
font-weight: 600;
font-size: clamp(11px, 2.6vw, 13px);
line-height: 1.4;
}
.pricing__cta {
margin-top: 12px;
border: 0;
border-radius: 999px;
background: #17141a;
color: #fff7e6;
padding: 8px 16px;
font-weight: 700;
font-size: clamp(11px, 2.6vw, 13px);
line-height: 1;
}
@keyframes press {
0% {
transform: scale(1);
}
40% {
transform: scale(0.94);
}
55% {
transform: scale(1.06);
}
70% {
transform: scale(0.98);
}
100% {
transform: scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.pricing__card--pro {
animation: none !important;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./PricingClay.module.scss";
export type PricingClayProps = {
basicName?: string;
basicPrice?: string;
proName?: string;
proPrice?: string;
badge?: string;
cta?: string;
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function PricingClay({
basicName = "라이트",
basicPrice = "무료",
proName = "프로",
proPrice = "월 12,000원",
badge = "추천",
cta = "선택하기",
duration = 2000,
easing = "cubic-bezier(.2,1.4,.4,1)",
color = "#0a4fe8",
}: PricingClayProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<div className={styles.pricing} style={vars}>
<div className={`${styles.card} ${styles.basic}`}>
<p className={styles.name}>{basicName}</p>
<p className={styles.price}>{basicPrice}</p>
</div>
<div className={`${styles.card} ${styles.pro}`}>
<span className={styles.badge}>{badge}</span>
<p className={styles.name}>{proName}</p>
<p className={styles.price}>{proPrice}</p>
<button type="button" className={styles.cta}>{cta}</button>
</div>
</div>
);
}05 Chubby plan cards — Measured area 10.817% · moving frames 21/23Original by GODRICH · SCSS and React ship in the zip · Claymorphism UI Kit: 9 Puffy Landing Sections
The post this demo lives in
Claymorphism UI Kit: 9 Puffy Landing SectionsClaymorphism pairs a thick corner radius with one bright highlight and one dark shadow on the same surface, so a card re See all demos in this post


