03형태 바꾸는 블롭
둥근 방석 같은 형태가 border-radius 값 여덟 개를 순서대로 바꿔 끊임없이 모양을 바꾸며 천천히 회전해, 생물처럼 꿈틀대는 로딩 덩어리가 됩니다.
쓰임브랜드 소개형 로딩, 귀여운 서비스 기다림 화면
border-radiusrotate$duration

<main class="stage">
<div class="mb-blob is-demo" aria-hidden="true"></div>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: 2s;
$easing: linear;
$color: $subject-cream;
@include stage($stage-orange);
// 실사용: 로딩 중에만 .is-loading
.mb-blob {
width: 112px;
height: 112px;
border-radius: 58% 42% 43% 57% / 45% 58% 42% 55%; // 정지 모양도 블롭
background: $color;
}
.mb-blob.is-loading,
.mb-blob.is-demo {
// 반경 여덟 값이 순서를 바꾸며 모양을 바꾸고, 회전이 붙어 한 바퀴에 정확히 돌아온다
animation: mb-morph $duration $easing infinite;
}
@keyframes mb-morph {
0% {
border-radius: 58% 42% 43% 57% / 45% 58% 42% 55%;
transform: rotate(0deg) scale(1);
}
25% {
border-radius: 45% 55% 60% 40% / 52% 42% 58% 48%;
transform: rotate(90deg) scale(1.06);
}
50% {
border-radius: 57% 43% 40% 60% / 55% 47% 53% 45%;
transform: rotate(180deg) scale(0.96);
}
75% {
border-radius: 42% 58% 57% 43% / 48% 55% 45% 52%;
transform: rotate(270deg) scale(1.04);
}
100% {
border-radius: 58% 42% 43% 57% / 45% 58% 42% 55%;
transform: rotate(360deg) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.mb-blob.is-loading,
.mb-blob.is-demo {
animation: none !important;
transform: none !important;
}
}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);
}
.mb-blob {
width: 112px;
height: 112px;
border-radius: 58% 42% 43% 57%/45% 58% 42% 55%;
background: #fff7e6;
}
.mb-blob.is-loading,
.mb-blob.is-demo {
animation: mb-morph 2s linear infinite;
}
@keyframes mb-morph {
0% {
border-radius: 58% 42% 43% 57%/45% 58% 42% 55%;
transform: rotate(0deg) scale(1);
}
25% {
border-radius: 45% 55% 60% 40%/52% 42% 58% 48%;
transform: rotate(90deg) scale(1.06);
}
50% {
border-radius: 57% 43% 40% 60%/55% 47% 53% 45%;
transform: rotate(180deg) scale(0.96);
}
75% {
border-radius: 42% 58% 57% 43%/48% 55% 45% 52%;
transform: rotate(270deg) scale(1.04);
}
100% {
border-radius: 58% 42% 43% 57%/45% 58% 42% 55%;
transform: rotate(360deg) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.mb-blob.is-loading,
.mb-blob.is-demo {
animation: none !important;
transform: none !important;
}
}import { CSSProperties } from "react";
import styles from "./MorphingBlob.module.scss";
type Vars = CSSProperties & {
"--duration"?: string;
"--easing"?: string;
"--color"?: string;
};
export interface MorphingBlobProps {
duration?: string;
easing?: string;
color?: string;
}
export default function MorphingBlob({
duration = "2s",
easing = "linear",
color = "#fff7e6",
}: MorphingBlobProps) {
const style: Vars = {
"--duration": duration,
"--easing": easing,
"--color": color,
};
return <div className={styles.blob} style={style} aria-hidden="true" />;
}03 형태 바꾸는 블롭 — 측정 누적면적 2.206% · 움직인 프레임 23/23GODRICH 원작 · zip 에 SCSS·React 포함 · 로딩페이지 디자인 9종 — 복붙하는 예쁜 CSS 로딩 화면
이 데모가 속한 글
로딩페이지 디자인 9종 — 복붙하는 예쁜 CSS 로딩 화면로딩페이지 디자인은 서비스가 켜지는 첫 순간에 사용자에게 "기다리고 있네"라고 말해주는 화면입니다. 기본 스피너 하나로도 되지만, 파스텔 링이나 차오르는 물처럼 예쁜 로딩 화면은 복붙 몇 줄로 사이트 인상을 바꿔 놓 이 글의 데모 전부 보기


