02Quote with a bouncing quotation mark
The big quotation mark left of the text pops once and lands, while the body slides in at its right.
Best forHelp and guide openers
transform-originscaletranslateX

<main class="stage">
<figure class="qm is-demo" aria-label="Quote with a bouncing quotation mark">
<svg class="qm__mark" viewBox="0 0 256 256" width="44" height="44" fill="currentColor" aria-hidden="true"><g><path d="M108 72v72H40a8 8 0 0 1-8-8V72a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8m108-8h-60a8 8 0 0 0-8 8v64a8 8 0 0 0 8 8h68V72a8 8 0 0 0-8-8" opacity=".2"/><path d="M100 56H40a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-16-16m0 80H40V72h60Zm116-80h-60a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-8-16m0 80h-60V72h60Z"/></g></svg>
<blockquote class="qm__body">
<p class="qm__l1">Simplify the screen,</p>
<p class="qm__l2">and its purpose becomes clear.</p>
</blockquote>
<figcaption class="qm__cite">— First line of the getting-started guide</figcaption>
</figure>
</main>@use "../../../../site/static/demo-tokens" as *;
// 큰따옴표 아이콘(Phosphor Duotone quotes)이 scale 로 한 번 튀어 올라 자리를 잡고,
// 본문 두 줄이 오른쪽에서 밀려 들어오는 도움말 첫머리용 인용구.
// 아이콘의 overshoot 는 $ease-pop(cubic-bezier(.2,1.4,.4,1)) — y 가 1을 넘는 커브로 튕김을 만든다.
// 복귀는 아이콘 걷어냄+문장 컷을 서로 다른 지점에 두고, 입장(튐+슬라이드 동시)이 최대 변화로 남게.
$duration: $dur-loop;
$easing: $ease-spring;
$color: $subject-ink;
@include stage($stage-yellow);
.qm {
box-sizing: border-box;
width: min(300px, 92vw);
margin: 0;
display: grid;
justify-items: start;
gap: $sp-3;
color: $color;
font-family: inherit;
}
.qm * { box-sizing: border-box; }
.qm__mark {
display: block;
color: $subject-ink;
}
.qm__body {
margin: 0;
display: grid;
gap: $sp-1;
}
.qm__l1,
.qm__l2 {
margin: 0;
font-size: 15px;
font-weight: 700;
line-height: 1.5;
}
.qm__cite {
margin: 0;
font-size: 11px;
font-weight: 500;
line-height: 1.4;
color: rgba($subject-ink, .72);
}
// ── 미리보기 루프 ─────────────────
.qm.is-demo .qm__mark {
transform-origin: left bottom; // 규칙8: 붙는 지점 — 본문과 공유하는 왼쪽 정렬선·본문 위 모서리에 뿌리박은 채 1.14 로 튄다(중심이면 작을 때 정렬선에서 떠오르고 overshoot 에서 정렬선을 왼쪽으로 넘는다)
animation-name: qmMark;
animation-duration: $duration;
animation-timing-function: $ease-pop;
animation-iteration-count: infinite;
}
.qm.is-demo .qm__l1,
.qm.is-demo .qm__l2 {
animation-name: qmLine;
animation-duration: $duration;
animation-timing-function: $easing;
animation-iteration-count: infinite;
}
.qm.is-demo .qm__l1 { animation-delay: 80ms; animation-fill-mode: backwards; }
.qm.is-demo .qm__l2 { animation-delay: 180ms; animation-fill-mode: backwards; }
.qm.is-demo .qm__cite {
animation-name: qmCite;
animation-duration: $duration;
animation-timing-function: $easing;
animation-iteration-count: infinite;
}
// 아이콘: 0~6% 나타나며 22%까지 1.14 배로 튀었다가 30%에 1 로 착지 → 78~90% 걷어냄
@keyframes qmMark {
0% { opacity: 0; transform: scale(.2); }
6% { opacity: 1; transform: scale(.92); }
22% { transform: scale(1.14); }
30%, 78% { opacity: 1; transform: scale(1); }
90%, 100% { opacity: 0; transform: scale(.9); }
}
// 본문: 왼쪽에서 밀려 들어옴(delay 로 한 박자 차이 — 무한 루프에서도 위상이 그대로 유지된다)
@keyframes qmLine {
0%, 4% { opacity: 0; transform: translateX(-14px); }
30%, 74% { opacity: 1; transform: translateX(0); }
80%, 100% { opacity: 0; }
}
@keyframes qmCite {
0%, 18% { opacity: 0; transform: translateX(-10px); }
42%, 70% { opacity: 1; transform: translateX(0); }
76%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.qm.is-demo .qm__mark,
.qm.is-demo .qm__l1,
.qm.is-demo .qm__l2,
.qm.is-demo .qm__cite {
animation: none !important;
}
}
@media (max-width: 340px) {
.qm { gap: $sp-2; }
.qm__l1, .qm__l2 { font-size: 14px; }
.qm__mark { width: 36px; height: 36px; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffd23f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.qm {
box-sizing: border-box;
width: min(300px, 92vw);
margin: 0;
display: grid;
justify-items: start;
gap: 12px;
color: #17141a;
font-family: inherit;
}
.qm * {
box-sizing: border-box;
}
.qm__mark {
display: block;
color: #17141a;
}
.qm__body {
margin: 0;
display: grid;
gap: 4px;
}
.qm__l1,
.qm__l2 {
margin: 0;
font-size: 15px;
font-weight: 700;
line-height: 1.5;
}
.qm__cite {
margin: 0;
font-size: 11px;
font-weight: 500;
line-height: 1.4;
color: rgba(23, 20, 26, 0.72);
}
.qm.is-demo .qm__mark {
transform-origin: left bottom;
animation-name: qmMark;
animation-duration: 2s;
animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
animation-iteration-count: infinite;
}
.qm.is-demo .qm__l1,
.qm.is-demo .qm__l2 {
animation-name: qmLine;
animation-duration: 2s;
animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
animation-iteration-count: infinite;
}
.qm.is-demo .qm__l1 {
animation-delay: 80ms;
animation-fill-mode: backwards;
}
.qm.is-demo .qm__l2 {
animation-delay: 180ms;
animation-fill-mode: backwards;
}
.qm.is-demo .qm__cite {
animation-name: qmCite;
animation-duration: 2s;
animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
animation-iteration-count: infinite;
}
@keyframes qmMark {
0% {
opacity: 0;
transform: scale(0.2);
}
6% {
opacity: 1;
transform: scale(0.92);
}
22% {
transform: scale(1.14);
}
30%, 78% {
opacity: 1;
transform: scale(1);
}
90%, 100% {
opacity: 0;
transform: scale(0.9);
}
}
@keyframes qmLine {
0%, 4% {
opacity: 0;
transform: translateX(-14px);
}
30%, 74% {
opacity: 1;
transform: translateX(0);
}
80%, 100% {
opacity: 0;
}
}
@keyframes qmCite {
0%, 18% {
opacity: 0;
transform: translateX(-10px);
}
42%, 70% {
opacity: 1;
transform: translateX(0);
}
76%, 100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.qm.is-demo .qm__mark,
.qm.is-demo .qm__l1,
.qm.is-demo .qm__l2,
.qm.is-demo .qm__cite {
animation: none !important;
}
}
@media (max-width: 340px) {
.qm {
gap: 8px;
}
.qm__l1, .qm__l2 {
font-size: 14px;
}
.qm__mark {
width: 36px;
height: 36px;
}
}// QuoteMarkPop — vanilla 판(run/282/demo/02-quote-mark-pop) 의 React 포트.
import { useState } from "react";
import type { CSSProperties } from "react";
import styles from "./QuoteMarkPop.module.scss";
export type QuoteMarkPopProps = {
line1?: string;
line2?: string;
cite?: string;
groupLabel?: string;
demo?: boolean;
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
function QuotesMark() {
return (
<svg className={styles.mark} viewBox="0 0 256 256" width="44" height="44" fill="currentColor" aria-hidden="true"><g><path d="M108 72v72H40a8 8 0 0 1-8-8V72a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8m108-8h-60a8 8 0 0 0-8 8v64a8 8 0 0 0 8 8h68V72a8 8 0 0 0-8-8" opacity=".2"/><path d="M100 56H40a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-16-16m0 80H40V72h60Zm116-80h-60a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h60v8a32 32 0 0 1-32 32a8 8 0 0 0 0 16a48.05 48.05 0 0 0 48-48V72a16 16 0 0 0-8-16m0 80h-60V72h60Z"/></g></svg>
);
}
export default function QuoteMarkPop({
line1 = "화면을 단순하게 만들면",
line2 = "쓰임이 분명해진다.",
cite = "— 시작 가이드 첫 문장",
groupLabel = "따옴표가 튀어나오는 인용구",
demo = true,
duration = 2000,
easing = "cubic-bezier(.2, .8, .2, 1)",
color = "#17141a",
}: QuoteMarkPopProps) {
const [live, setLive] = useState(demo);
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
function onEnter() {
setLive(false);
}
const cls = [styles.qm, live ? styles.isDemo : ""].filter(Boolean).join(" ");
return (
<figure className={cls} style={vars} aria-label={groupLabel} onMouseEnter={onEnter}>
<QuotesMark />
<blockquote className={styles.body}>
<p className={styles.l1}>{line1}</p>
<p className={styles.l2}>{line2}</p>
</blockquote>
<figcaption className={styles.cite}>{cite}</figcaption>
</figure>
);
}02 Quote with a bouncing quotation mark — Measured area 3.84% · moving frames 14/23Original by GODRICH · SCSS and React ship in the zip · Blockquote CSS: 9 Quote Box Designs (Copy-Paste)
The post this demo lives in
Blockquote CSS: 9 Quote Box Designs (Copy-Paste)Blockquote CSS places another writer's sentence inside your own text. Nine boxes run live below, every snippet Copy-Past See all demos in this post

