06顔認識風レビュー
アバターの上を顔認識ボックスが一度だけ走査し、引用カードはVERIFIEDタグとブラケット枠をまといます。
使いどころ顧客の声・パートナーの引用
원샷 스캔VERIFIED 태그브래킷 프레임

<main class="stage">
<div class="testimonial is-demo">
<div class="testimonial__avatar" aria-hidden="true">
<span class="testimonial__scanbox"></span>
</div>
<figure class="testimonial__card">
<span class="testimonial__corner testimonial__corner--tl" aria-hidden="true"></span>
<span class="testimonial__corner testimonial__corner--tr" aria-hidden="true"></span>
<span class="testimonial__corner testimonial__corner--bl" aria-hidden="true"></span>
<span class="testimonial__corner testimonial__corner--br" aria-hidden="true"></span>
<span class="testimonial__verified">VERIFIED</span>
<blockquote class="testimonial__quote">見逃しがないので安心です。</blockquote>
<figcaption class="testimonial__author">イ・ドユン · セキュリティチームマネージャー</figcaption>
</figure>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 얼굴 인식 상자가 한 번 훑고 멈추는 한 주기
$easing: $ease-spring; // 스캔 상자가 내려가는 곡선
$color: $stage-yellow; // 호박색 터미널 강조색
@include stage($stage-yellow);
.testimonial {
display: flex;
align-items: center;
gap: $sp-4;
width: clamp(260px, 84vw, 420px);
}
.testimonial__avatar {
position: relative;
flex: none;
width: 64px;
height: 64px;
border-radius: $r-control;
background: $subject-ink;
box-shadow: 0 0 0 1px rgba($color, .4);
overflow: hidden;
}
.testimonial__scanbox {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 3px;
background: rgba($color, .85);
box-shadow: 0 0 8px 1px rgba($color, .6);
animation: faceScan $duration $easing infinite;
}
@keyframes faceScan {
0% { transform: translateY(0); opacity: 1; }
20% { transform: translateY(61px); opacity: 1; }
28% { transform: translateY(61px); opacity: 0; }
100% { transform: translateY(61px); opacity: 0; }
}
.testimonial__card {
position: relative;
box-sizing: border-box;
min-width: 0;
// flex-wrap:wrap + flex-basis 220px 는 320px 폰 체크(84vw=268.8px)에서 아바타(64px)+gap+220px 가
// 안 들어가 줄바꿈 위험이 있다 (131-06 실측: scrollHeight 203px vs innerHeight 200px). 129 형제처럼
// wrap 없이 flex:1 로 균등 분배해 항상 한 줄에 나란히 놓는다.
flex: 1 1 0;
margin: 0;
padding: $sp-4;
border-radius: $r-card;
background: $subject-ink;
box-shadow: 0 0 0 1px rgba($color, .4), 0 0 24px rgba($color, .16);
}
.testimonial__corner {
position: absolute;
width: 14px;
height: 14px;
pointer-events: none;
border-color: $color;
border-style: solid;
border-width: 0;
animation: cornerPulse $duration $easing infinite;
}
.testimonial__corner--tl { top: $sp-2; left: $sp-2; border-top-width: 2px; border-left-width: 2px; transform-origin: top left; } // 규칙8: 괄호 꼭짓점 모서리 고정
.testimonial__corner--tr { top: $sp-2; right: $sp-2; border-top-width: 2px; border-right-width: 2px; transform-origin: top right; animation-delay: -.15s; } // 규칙8: 괄호 꼭짓점 모서리 고정
.testimonial__corner--bl { bottom: $sp-2; left: $sp-2; border-bottom-width: 2px; border-left-width: 2px; transform-origin: bottom left; animation-delay: -.3s; } // 규칙8: 괄호 꼭짓점 모서리 고정
.testimonial__corner--br { bottom: $sp-2; right: $sp-2; border-bottom-width: 2px; border-right-width: 2px; transform-origin: bottom right; animation-delay: -.45s; } // 규칙8: 괄호 꼭짓점 모서리 고정
@keyframes cornerPulse {
0%, 100% { transform: scale(.7); opacity: .5; }
50% { transform: scale(1); opacity: 1; }
}
.testimonial__verified {
position: relative;
display: inline-block;
margin: 0 0 $sp-2;
color: $color;
font-family: "Courier New", monospace;
font-weight: 700;
font-size: clamp(9px, 2.2vw, 10px);
line-height: 1;
letter-spacing: .08em;
}
.testimonial__quote {
position: relative;
margin: 0 0 $sp-2;
color: $subject-cream;
font-weight: 600;
font-size: clamp(12px, 2.8vw, 13px);
line-height: 1.4;
font-family: inherit;
}
.testimonial__author {
position: relative;
margin: 0;
color: rgba($subject-cream, .6);
font-weight: 500;
font-size: clamp(10px, 2.4vw, 11px);
line-height: 1.3;
font-family: inherit;
}
@media (prefers-reduced-motion: reduce) {
.testimonial__scanbox, .testimonial__corner {
animation: none !important;
}
.testimonial__scanbox { opacity: 0; }
.testimonial__corner { transform: scale(1); opacity: 1; }
}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);
}
.testimonial {
display: flex;
align-items: center;
gap: 16px;
width: clamp(260px, 84vw, 420px);
}
.testimonial__avatar {
position: relative;
flex: none;
width: 64px;
height: 64px;
border-radius: 12px;
background: #17141a;
box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.4);
overflow: hidden;
}
.testimonial__scanbox {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 3px;
background: rgba(255, 210, 63, 0.85);
box-shadow: 0 0 8px 1px rgba(255, 210, 63, 0.6);
animation: faceScan 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
@keyframes faceScan {
0% {
transform: translateY(0);
opacity: 1;
}
20% {
transform: translateY(61px);
opacity: 1;
}
28% {
transform: translateY(61px);
opacity: 0;
}
100% {
transform: translateY(61px);
opacity: 0;
}
}
.testimonial__card {
position: relative;
box-sizing: border-box;
min-width: 0;
flex: 1 1 0;
margin: 0;
padding: 16px;
border-radius: 16px;
background: #17141a;
box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.4), 0 0 24px rgba(255, 210, 63, 0.16);
}
.testimonial__corner {
position: absolute;
width: 14px;
height: 14px;
pointer-events: none;
border-color: #ffd23f;
border-style: solid;
border-width: 0;
animation: cornerPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.testimonial__corner--tl {
top: 8px;
left: 8px;
border-top-width: 2px;
border-left-width: 2px;
transform-origin: top left;
}
.testimonial__corner--tr {
top: 8px;
right: 8px;
border-top-width: 2px;
border-right-width: 2px;
transform-origin: top right;
animation-delay: -0.15s;
}
.testimonial__corner--bl {
bottom: 8px;
left: 8px;
border-bottom-width: 2px;
border-left-width: 2px;
transform-origin: bottom left;
animation-delay: -0.3s;
}
.testimonial__corner--br {
bottom: 8px;
right: 8px;
border-bottom-width: 2px;
border-right-width: 2px;
transform-origin: bottom right;
animation-delay: -0.45s;
}
@keyframes cornerPulse {
0%, 100% {
transform: scale(0.7);
opacity: 0.5;
}
50% {
transform: scale(1);
opacity: 1;
}
}
.testimonial__verified {
position: relative;
display: inline-block;
margin: 0 0 8px;
color: #ffd23f;
font-family: "Courier New", monospace;
font-weight: 700;
font-size: clamp(9px, 2.2vw, 10px);
line-height: 1;
letter-spacing: 0.08em;
}
.testimonial__quote {
position: relative;
margin: 0 0 8px;
color: #fff7e6;
font-weight: 600;
font-size: clamp(12px, 2.8vw, 13px);
line-height: 1.4;
font-family: inherit;
}
.testimonial__author {
position: relative;
margin: 0;
color: rgba(255, 247, 230, 0.6);
font-weight: 500;
font-size: clamp(10px, 2.4vw, 11px);
line-height: 1.3;
font-family: inherit;
}
@media (prefers-reduced-motion: reduce) {
.testimonial__scanbox, .testimonial__corner {
animation: none !important;
}
.testimonial__scanbox {
opacity: 0;
}
.testimonial__corner {
transform: scale(1);
opacity: 1;
}
}import type { CSSProperties } from "react";
import styles from "./TestimonialHud.module.scss";
export type TestimonialHudProps = {
verified?: string;
quote?: string;
author?: string;
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function TestimonialHud({
verified = "VERIFIED",
quote = "놓치는 게 없어서 마음이 편해요",
author = "이도윤 · 보안팀 매니저",
duration = 2000,
easing = "cubic-bezier(.2,.8,.2,1)",
color = "#ffd23f",
}: TestimonialHudProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<div className={styles.testimonial} style={vars}>
<div className={styles.avatar} aria-hidden="true">
<span className={styles.scanbox} />
</div>
<figure className={styles.card}>
<span className={`${styles.corner} ${styles.cornerTl}`} aria-hidden="true" />
<span className={`${styles.corner} ${styles.cornerTr}`} aria-hidden="true" />
<span className={`${styles.corner} ${styles.cornerBl}`} aria-hidden="true" />
<span className={`${styles.corner} ${styles.cornerBr}`} aria-hidden="true" />
<span className={styles.verified}>{verified}</span>
<blockquote className={styles.quote}>{quote}</blockquote>
<figcaption className={styles.author}>{author}</figcaption>
</figure>
</div>
);
}06 顔認識風レビュー — 計測 累積面積 1.751% · 動いたフレーム 23/23GODRICH オリジナル · SCSS と React は zip に同梱 · HUD デザインとは?画面に見つめ返される9パーツ
このデモが属する記事
HUD デザインとは?画面に見つめ返される9パーツHUD デザインとは、ゲームやSF映画の照準器やレーダーのように、座標や状態の数値を画面に重ねて表示し、まるで自分が見つめ返されているような印象を与えるインターフェース手法です。この記事では、その監視カメラのような雰囲気をそのまま動くランデ この記事のデモをすべて見る


