06吹き出しのレビュー
レビューはしっぽ付きの丸い吹き出しに入れ、隣のアバターはキャンディ模様の円です。吹き出しがゼリーのように縦に軽く潰れては戻るを繰り返し、ページ全体が柔らかく見えます。
使いどころお客様の声・レビュー引用
꼬리 말풍선캔디 아바타squish 루프

<main class="stage">
<figure class="quotecandy">
<span class="quotecandy__avatar" aria-hidden="true"></span>
<div class="quotecandy__bubble">
<blockquote class="quotecandy__text">
<p class="quotecandy__line">このサイト、本当にかわいい</p>
</blockquote>
<figcaption class="quotecandy__who">キム・モチ・カフェ運営</figcaption>
</div>
</figure>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 말풍선이 한 번 눌렸다 펴지는 주기
$easing: $ease-spring;
$color: $stage-ink; // 글자 기본(토큰) — 베리 잉크로 덮는다
// 캔디 팔레트 — 값은 tailwind.config.js · tokens.css 와 같다
$candy-cream: #fff6f0;
$candy-bubble: #ffb9cf;
$candy-peach: #ffd2b8;
$candy-lemon: #ffe9a3;
$candy-lavender: #cdbcf2;
$candy-berry: #55395e;
// 무대 — 버블검 물색
@include stage(mix($candy-bubble, $stage-paper, 24%));
.quotecandy {
box-sizing: border-box;
width: clamp(280px, 90vw, 420px);
margin: 0;
display: flex;
align-items: flex-start;
gap: $sp-3;
}
// 사탕 무늬 아바타
.quotecandy__avatar {
flex: 0 0 auto;
width: clamp(44px, 12vw, 56px);
aspect-ratio: 1;
border-radius: 50%;
background: repeating-conic-gradient($candy-peach 0deg 60deg, $candy-lemon 60deg 120deg);
box-shadow: inset 0 -4px 8px rgba($candy-berry, .16), 0 6px 14px rgba($candy-bubble, .6);
animation: avatarBob $duration $easing infinite;
animation-delay: calc($duration / -2);
}
.quotecandy__bubble {
position: relative;
flex: 1 1 auto;
min-width: 0;
box-sizing: border-box;
padding: $sp-4;
border-radius: $r-card;
background: $stage-paper;
box-shadow: 0 8px 20px rgba($candy-bubble, .55);
animation: bubbleSquish $duration $easing infinite;
}
// 말풍선 꼬리 — 정사각형 하나를 45도 돌려 절반만 보이게
.quotecandy__bubble::before {
content: "";
position: absolute;
top: $sp-3;
left: calc($sp-2 * -1);
width: $sp-4;
aspect-ratio: 1;
border-radius: $r-xs;
background: $stage-paper;
transform: rotate(45deg);
}
.quotecandy__text {
margin: 0;
}
.quotecandy__line {
margin: 0;
color: $candy-berry;
font-weight: 700; font-size: clamp(13px, 3.4vw, 16px); line-height: 1.4;
}
.quotecandy__who {
margin: $sp-2 0 0;
color: rgba($candy-berry, .78);
font-weight: 500; font-size: clamp(10px, 2.6vw, 12px); line-height: 1;
}
// 데모: 말풍선은 젤리처럼 세로로 살짝 눌렸다 펴지고, 아바타는 반대 위상으로 떠오른다
@keyframes bubbleSquish {
0%, 100% { transform: scaleY(1); }
50% { transform: scaleY(.94); }
}
@keyframes avatarBob {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
.quotecandy__bubble, .quotecandy__avatar { 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: rgb(100%, 93.4117647059%, 95.4823529412%);
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.quotecandy {
box-sizing: border-box;
width: clamp(280px, 90vw, 420px);
margin: 0;
display: flex;
align-items: flex-start;
gap: 12px;
}
.quotecandy__avatar {
flex: 0 0 auto;
width: clamp(44px, 12vw, 56px);
aspect-ratio: 1;
border-radius: 50%;
background: repeating-conic-gradient(#ffd2b8 0deg 60deg, #ffe9a3 60deg 120deg);
box-shadow: inset 0 -4px 8px rgba(85, 57, 94, 0.16), 0 6px 14px rgba(255, 185, 207, 0.6);
animation: avatarBob 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
animation-delay: -1s;
}
.quotecandy__bubble {
position: relative;
flex: 1 1 auto;
min-width: 0;
box-sizing: border-box;
padding: 16px;
border-radius: 16px;
background: #ffffff;
box-shadow: 0 8px 20px rgba(255, 185, 207, 0.55);
animation: bubbleSquish 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.quotecandy__bubble::before {
content: "";
position: absolute;
top: 12px;
left: -8px;
width: 16px;
aspect-ratio: 1;
border-radius: 4px;
background: #ffffff;
transform: rotate(45deg);
}
.quotecandy__text {
margin: 0;
}
.quotecandy__line {
margin: 0;
color: #55395e;
font-weight: 700;
font-size: clamp(13px, 3.4vw, 16px);
line-height: 1.4;
}
.quotecandy__who {
margin: 8px 0 0;
color: rgba(85, 57, 94, 0.78);
font-weight: 500;
font-size: clamp(10px, 2.6vw, 12px);
line-height: 1;
}
@keyframes bubbleSquish {
0%, 100% {
transform: scaleY(1);
}
50% {
transform: scaleY(0.94);
}
}
@keyframes avatarBob {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
@media (prefers-reduced-motion: reduce) {
.quotecandy__bubble, .quotecandy__avatar {
animation: none !important;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./TestimonialCandy.module.scss";
export type TestimonialCandyProps = {
quote?: string;
who?: string;
/** 한 주기(기본 2000ms) */
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function TestimonialCandy({
quote = "이 사이트 진짜 귀여워요",
who = "김모찌 · 카페 운영",
duration = 2000,
easing = "cubic-bezier(.2,.8,.2,1)",
color = "#ffb9cf",
}: TestimonialCandyProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<figure className={styles.quotecandy} style={vars}>
<span className={styles.avatar} aria-hidden="true" />
<div className={styles.bubble}>
<blockquote className={styles.text}>
<p className={styles.line}>{quote}</p>
</blockquote>
<figcaption className={styles.who}>{who}</figcaption>
</div>
</figure>
);
}06 吹き出しのレビュー — 計測 累積面積 3.167% · 動いたフレーム 14/23GODRICH オリジナル · SCSS と React は zip に同梱 · パステル デザイン LPキット、キャンディカラーのセクション9選
このデモが属する記事
パステル デザイン LPキット、キャンディカラーのセクション9選パステル デザインは、クリーム色の地にバブルガムピンク・ピーチ・レモン・ミント・ラベンダーの淡い色を重ね、影までグレーではなく同系色のパステルで描いて、飴のようにやわらかく、さわやかに見せるスタイルです。名前がなくて検索できなかった、あのデ この記事のデモをすべて見る


