01프로스티드 카드
포트폴리오나 랜딩 페이지의 소개 카드에 backdrop-filter: blur()와 반투명 배경을 얹어, 뒤에 흐릿하게 비치는 배경 위에 카드가 마치 유리판처럼 떠 있습니다. 마우스를 올리면 카드가 살짝 커지고 그림자가 깊어집니다.
쓰임랜딩 페이지 기능 소개 카드, 포트폴리오 프로젝트 카드
backdrop-filterscale300ms

<main class="stage">
<div class="fc-scene is-demo">
<span class="fc-blob fc-blob--a"></span>
<span class="fc-blob fc-blob--b"></span>
<div class="fc-card fc-focal">
<span class="fc-card__eyebrow">Featured</span>
<span class="fc-card__title">Aurora Plan</span>
<span class="fc-card__desc">Glass surface, real blur</span>
</div>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: $dur-base;
$easing: $ease-spring;
$color: $subject-blue;
@include stage($stage-ink);
.fc-scene {
position: relative;
width: min(340px, 90vw);
aspect-ratio: 340 / 190;
display: grid;
place-items: center;
overflow: hidden; // 320px 에서 아래 블러 얼룩이 음수 offset 으로 장면 밖까지 번져 body.scrollHeight 를 넘겼다 (실측 2026-09-10)
}
// 유리 카드 뒤에서 블러될 색 얼룩 — .stage 배경은 그대로 단색, 이 레이어만 그라디언트 역할을 한다
.fc-blob {
position: absolute;
width: 160px;
height: 160px;
border-radius: 50%;
filter: blur(30px);
opacity: .75;
}
.fc-blob--a { background: $color; top: -30px; left: -20px; }
.fc-blob--b { background: $subject-cream; bottom: -40px; right: -10px; }
.fc-card {
position: relative;
z-index: 1;
box-sizing: border-box;
width: min(220px, 80%);
padding: $sp-6 $sp-5;
border-radius: $r-card;
background: rgba(255, 255, 255, .14);
border: 1px solid rgba(255, 255, 255, .35);
backdrop-filter: blur(16px) saturate(160%);
-webkit-backdrop-filter: blur(16px) saturate(160%);
box-shadow: $shadow-press;
display: flex;
flex-direction: column;
gap: $sp-1;
color: $subject-cream;
font: 600 13px/1.4 -apple-system, "Segoe UI", sans-serif;
transition: transform $duration $easing, box-shadow $duration $easing;
}
.fc-card__eyebrow { font-size: 11px; letter-spacing: .02em; } // opacity .75 는 파란 얼룩 위 3.31:1 이라 뺐다 — AA 4.5
.fc-card__title { font-size: 18px; font-weight: 700; }
.fc-card__desc { font-size: 12px; opacity: .8; font-weight: 500; }
// 실사용: 진짜 마우스 호버로 트랜지션
.fc-focal:hover {
transform: scale(1.03);
box-shadow: $shadow-raised;
}
// 데모 루프: is-demo 는 같은 모양을 keyframes 로 무한 재생 (헤드리스는 :hover 를 못 건다)
@keyframes fc-breathe {
0%, 100% { transform: scale(1); box-shadow: $shadow-press; }
50% { transform: scale(1.03); box-shadow: $shadow-raised; }
}
.fc-scene.is-demo .fc-focal { animation: fc-breathe $duration $easing infinite; }
@media (prefers-reduced-motion: reduce) {
.fc-focal:hover,
.fc-scene.is-demo .fc-focal { animation: none !important; transform: none !important; box-shadow: $shadow-press !important; }
}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);
}
.fc-scene {
position: relative;
width: min(340px, 90vw);
aspect-ratio: 340/190;
display: grid;
place-items: center;
overflow: hidden;
}
.fc-blob {
position: absolute;
width: 160px;
height: 160px;
border-radius: 50%;
filter: blur(30px);
opacity: 0.75;
}
.fc-blob--a {
background: #2f6df6;
top: -30px;
left: -20px;
}
.fc-blob--b {
background: #fff7e6;
bottom: -40px;
right: -10px;
}
.fc-card {
position: relative;
z-index: 1;
box-sizing: border-box;
width: min(220px, 80%);
padding: 24px 20px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.35);
backdrop-filter: blur(16px) saturate(160%);
-webkit-backdrop-filter: blur(16px) saturate(160%);
box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
display: flex;
flex-direction: column;
gap: 4px;
color: #fff7e6;
font: 600 13px/1.4 -apple-system, "Segoe UI", sans-serif;
transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fc-card__eyebrow {
font-size: 11px;
letter-spacing: 0.02em;
}
.fc-card__title {
font-size: 18px;
font-weight: 700;
}
.fc-card__desc {
font-size: 12px;
opacity: 0.8;
font-weight: 500;
}
.fc-focal:hover {
transform: scale(1.03);
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
@keyframes fc-breathe {
0%, 100% {
transform: scale(1);
box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}
50% {
transform: scale(1.03);
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
}
.fc-scene.is-demo .fc-focal {
animation: fc-breathe 300ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
.fc-focal:hover,
.fc-scene.is-demo .fc-focal {
animation: none !important;
transform: none !important;
box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32) !important;
}
}import { CSSProperties } from "react";
import styles from "./FrostedCard.module.scss";
type Vars = CSSProperties & {
"--duration"?: string;
"--easing"?: string;
"--color"?: string;
};
export interface FrostedCardProps {
duration?: string;
easing?: string;
color?: string;
}
export default function FrostedCard({
duration = "300ms",
easing = "cubic-bezier(.2, .8, .2, 1)",
color = "#2f6df6",
}: FrostedCardProps) {
const style: Vars = {
"--duration": duration,
"--easing": easing,
"--color": color,
};
return (
<div className={styles.scene} style={style}>
<span className={styles.blobA} />
<span className={styles.blobB} />
<div className={styles.card}>
<span className={styles.eyebrow}>Featured</span>
<span className={styles.title}>Aurora Plan</span>
<span className={styles.desc}>Glass surface, real blur</span>
</div>
</div>
);
}01 프로스티드 카드 — 측정 누적면적 4.222% · 움직인 프레임 23/23GODRICH 원작 · zip 에 SCSS·React 포함 · CSS 글래스모피즘 리퀴드 글래스 효과 9종
이 데모가 속한 글
CSS 글래스모피즘 리퀴드 글래스 효과 9종화면 위에 반투명한 유리판을 얹어 놓은 것처럼, 뒤 배경이 흐릿하게 비치면서 내용은 또렷하게 보이는 디자인을 CSS 글래스모피즘(리퀴드 글래스)이라고 부릅니다. 카드부터 내비게이션, 버튼, 토글까지 아홉 가지 유리 이 글의 데모 전부 보기


