성능
주의프레임 속도: 평균 59.7 fps, p5 59.9 · 긴 작업: 0개, 총 0 ms, 최장 0 ms · 소스 gzip 11 KB · 런타임 221 KB
Split RevealMIT로더Animata
Animata가 만든 로더 React 컴포넌트입니다. MIT 라이선스에 따라 Animata에서 수정 없이 수집했으며 여기서 실시간으로 보여 줍니다.
품질 보고
등급과 점수는 빌드 또는 테스트 때 실행한 자동 검사에서 나옵니다. 실행하지 않은 항목은 '미검사'로 표시하며, 숫자를 지어내지 않습니다.
프레임 속도: 평균 59.7 fps, p5 59.9 · 긴 작업: 0개, 총 0 ms, 최장 0 ms · 소스 gzip 11 KB · 런타임 221 KB
문제 0 · 스크린 리더: 통과
지속 움직임 없음
넘침 없음
프레임 속도와 긴 작업 수치는 헤드리스 Chromium에서 소프트웨어 WebGL로 측정했습니다. 이 사이트의 컴포넌트끼리만 비교해야 하며, 실제 기기의 성능이 아닙니다.
해당 없음: 정지 상태에서 보이는 애니메이션이 없습니다. 호버로 시작되는 애니메이션은 검사하지 않았습니다.
axe-core 위반이 없습니다.

검사일 2026년 11월 15일 · 수치는 자동 스크립트에서 오며, 손으로 쓴 예시가 아닙니다.
실제 크기로 보여 줍니다.
복사한 내용은 라이선스 고지로 시작합니다. 코드를 쓸 때 남겨 두세요.
<div id="root" class="full"></div>:root{--bg:#f6f4f0;--ink:#17181a;--background:40 20% 96%;--foreground:24 10% 8%;--card:0 0% 100%}html,body{min-height:100%;margin:0;background:var(--bg);color:var(--ink)}html,body{height:100%;overflow:hidden}body{display:grid;place-items:center}#root{display:grid;place-items:center;max-width:100%;max-height:100%;box-sizing:border-box;padding:16px;color:hsl(var(--foreground))}#root.full{width:100%;height:100%;padding:0}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-play-state:paused!important;transition-duration:0s!important}}
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-leading:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:"Paper Mono", ui-monospace, monospace;--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-500:oklch(79.5% .184 86.047);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--spacing:.25rem;--container-md:28rem;--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--tracking-tight:-.025em;--leading-loose:2;--ease-out:cubic-bezier(.22, 1, .36, 1);--default-transition-duration:.2s;--default-transition-timing-function:var(--ease-out);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-border:hsl(var(--border));--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-muted:hsl(var(--muted));--ease-apple:cubic-bezier(.4, 0, .6, 1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}:root{--background:0 0% 100%;--foreground:0 0% 11%;--card:0 0% 100%;--card-foreground:0 0% 11%;--popover:0 0% 100%;--popover-foreground:0 0% 11%;--primary:0 0% 11%;--primary-foreground:0 0% 100%;--secondary:0 0% 96%;--secondary-foreground:0 0% 11%;--muted:0 0% 96%;--muted-foreground:0 0% 43%;--accent:262 83% 58%;--accent-foreground:0 0% 100%;--destructive:0 84% 60%;--destructive-foreground:0 0% 98%;--border:0 0% 90%;--input:0 0% 90%;--ring:262 83% 58%;--radius:.75rem;--surface-alt:0 0% 96%;--surface-card:0 0% 100%;--surface-dark:0 0% 7%;--text-secondary:0 0% 43%;--ink:#76756f;--ink-faint:#e3e3e3;--link:210 100% 40%;--link-hover:210 100% 32%;--shadow-sm:0 1px 2px #0000000d;--shadow-md:0 2px 8px #0000000f, 0 4px 16px #0000000a;--shadow-lg:0 4px 12px #0000000f, 0 12px 32px #00000014;--footer-surface:#f5f5f7;--footer-ink:#0f1d42;--footer-ink-muted:#1a2d5c;--footer-accent:#1a4fff;--footer-gold:#fc0;--footer-category-title:#1d1d1f;--footer-category-link:#515154;--footer-stamp:#9f9f9f}.dark{--background:0 0% 0%;--foreground:0 0% 96%;--card:0 0% 4%;--card-foreground:0 0% 96%;--popover:0 0% 4%;--popover-foreground:0 0% 96%;--primary:0 0% 96%;--primary-foreground:0 0% 0%;--secondary:0 0% 10%;--secondary-foreground:0 0% 96%;--muted:0 0% 10%;--muted-foreground:0 0% 45%;--accent:262 83% 65%;--accent-foreground:0 0% 100%;--destructive:0 62% 30%;--destructive-foreground:0 0% 98%;--border:0 0% 12%;--input:0 0% 12%;--ring:262 83% 65%;--surface-alt:0 0% 4%;--surface-card:0 0% 6%;--surface-dark:0 0% 2%;--text-secondary:0 0% 55%;--ink:#e3e3e3;--ink-faint:#76756f;--link:262 80% 70%;--link-hover:262 80% 80%;--shadow-sm:none;--shadow-md:none;--shadow-lg:none;--footer-surface:#1d1d1f;--footer-ink:#f5f5f7;--footer-ink-muted:#86868b;--footer-accent:#fc0;--footer-gold:#fc0;--footer-category-title:#f5f5f7;--footer-category-link:#86868b;--footer-stamp:#48484a}}@layer components{.text-animator-demo .text-animation-stage,[data-text-animator-demo] .text-animation-stage{perspective:900px;padding:clamp(1rem,5cqi,1.5rem);font-size:clamp(1rem,10cqi,2rem);font-weight:500;line-height:1.1}.text-animator-demo .text-animation-title,.text-animator-demo .text-animation-kinetic-word,[data-text-animator-demo] .text-animation-title,[data-text-animator-demo] .text-animation-kinetic-word{text-align:center;letter-spacing:-.025em}.text-animator-demo .text-animation-title,[data-text-animator-demo] .text-animation-title{text-wrap:balance;font-variant-numeric:tabular-nums}@keyframes split-reveal-shutter-top{0%{transform:translate(0)}to{transform:translateY(-100%)}}@keyframes split-reveal-shutter-bottom{0%{transform:translate(0)}to{transform:translateY(100%)}}[data-split-reveal-overlay] [data-split-reveal-progress]{opacity:1;transition:opacity var(--split-reveal-progress-fade) ease-out}[data-split-reveal-overlay][data-phase=fade-ui] [data-split-reveal-progress],[data-split-reveal-overlay][data-phase=reveal] [data-split-reveal-progress]{opacity:0}[data-split-reveal-overlay][data-phase=reveal] [data-split-reveal-shutter=top]{animation:split-reveal-shutter-top var(--split-reveal-duration) cubic-bezier(.76, 0, .24, 1) forwards}[data-split-reveal-overlay][data-phase=reveal] [data-split-reveal-shutter=bottom]{animation:split-reveal-shutter-bottom var(--split-reveal-duration) cubic-bezier(.76, 0, .24, 1) forwards}@media (prefers-reduced-motion:reduce){[data-split-reveal-overlay][data-phase=reveal] [data-split-reveal-shutter]{opacity:0;animation:none}[data-split-reveal-overlay] [data-split-reveal-progress]{transition:none}}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.step{counter-increment:step}.step:before{height:calc(var(--spacing) * 9);width:calc(var(--spacing) * 9);border-style:var(--tw-border-style);border-width:4px;border-color:var(--color-background);background-color:var(--color-muted);text-align:center;text-indent:-1px;font-family:var(--font-mono);font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);content:counter(step);border-radius:2147483647px;justify-content:center;align-items:center;margin-top:-4px;margin-left:-50px;display:inline-flex;position:absolute}.absolute{position:absolute}.fixed{position:fixed}.inset-0{inset:0}.inset-x-0{inset-inline:0}.top-0{top:0}.bottom-0{bottom:0}.z-10{z-index:10}.mt-3{margin-top:calc(var(--spacing) * 3)}.flex{display:flex}.hidden{display:none}.h-1\/2{height:50%}.h-px{height:1px}.w-\[min\(18rem\,70vw\)\]{width:min(18rem,70vw)}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.touch-none{touch-action:none}.items-center{align-items:center}.justify-center{justify-content:center}.overscroll-none{overscroll-behavior:none}.bg-zinc-100{background-color:var(--color-zinc-100)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-\[11px\]{font-size:11px}.leading-loose{--tw-leading:var(--leading-loose);line-height:var(--leading-loose)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-\[0\.12em\]{--tw-tracking:.12em;letter-spacing:.12em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-balance{text-wrap:balance}.text-zinc-900{color:var(--color-zinc-900)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}@keyframes orbit-move{0%{transform:translate(-50%,-50%)rotateY(-40deg)rotateX(70deg)rotate(0)translate(100px)}to{transform:translate(-50%,-50%)rotateY(-40deg)rotateX(70deg)rotate(360deg)translate(100px)}}@keyframes counter-rotate{0%{opacity:1;transform:rotate(0)rotateX(-70deg)rotateY(40deg)scale(1)}25%{opacity:1;transform:rotate(-90deg)rotateX(-70deg)rotateY(40deg)scale(1.2)}50%{opacity:.3;transform:rotate(-180deg)rotateX(-70deg)rotateY(40deg)scale(.8)}75%{opacity:.3;transform:rotate(-270deg)rotateX(-70deg)rotateY(40deg)scale(.8)}to{opacity:1;transform:rotate(-360deg)rotateX(-70deg)rotateY(40deg)scale(1)}}@keyframes orbit-indexes{0%,25%,to{z-index:11}50%,99%{z-index:9}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.preview{margin-bottom:calc(var(--spacing) * 4)}.preview-light{background-color:#fefefe;background-image:radial-gradient(#efefef 1px,#0000 1px),radial-gradient(#efefef 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}.preview-dark{background-image:radial-gradient(#6a6a6a 1px,#0000 1px),radial-gradient(#6a6a6a 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}.component-list-item{border-color:var(--color-zinc-200);background-color:#fefefe;background-image:radial-gradient(#efefef 1px,#0000 1px),radial-gradient(#efefef 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}.dark .component-list-item{border-color:var(--color-zinc-700);background-color:var(--color-zinc-950);background-image:radial-gradient(#6a6a6a 1px,#0000 1px),radial-gradient(#6a6a6a 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}[style*="opacity: 1"]>.scroll-baby{color:var(--color-yellow-300)}[style*="opacity: 1"]>.scroll-baby:where(.dark,.dark *){color:var(--color-yellow-500)}[style*="opacity: 1"]>.scroll-file{color:var(--color-blue-300)}[style*="opacity: 1"]>.scroll-file:where(.dark,.dark *){color:var(--color-blue-500)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-leading{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}// animata source (MIT). npm i clsx react tailwind-merge · Tailwind CSS v4
// ── animata/preloader/split-reveal.css (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal.css)
@layer components {
@keyframes split-reveal-shutter-top {
from {
transform: translate3d(0, 0, 0);
}
to {
transform: translate3d(0, -100%, 0);
}
}
@keyframes split-reveal-shutter-bottom {
from {
transform: translate3d(0, 0, 0);
}
to {
transform: translate3d(0, 100%, 0);
}
}
[data-split-reveal-overlay] [data-split-reveal-progress] {
opacity: 1;
transition: opacity var(--split-reveal-progress-fade) ease-out;
}
[data-split-reveal-overlay][data-phase="fade-ui"] [data-split-reveal-progress],
[data-split-reveal-overlay][data-phase="reveal"] [data-split-reveal-progress] {
opacity: 0;
}
[data-split-reveal-overlay][data-phase="reveal"] [data-split-reveal-shutter="top"] {
animation: split-reveal-shutter-top var(--split-reveal-duration) cubic-bezier(0.76, 0, 0.24, 1)
forwards;
}
[data-split-reveal-overlay][data-phase="reveal"] [data-split-reveal-shutter="bottom"] {
animation: split-reveal-shutter-bottom var(--split-reveal-duration)
cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
[data-split-reveal-overlay][data-phase="reveal"] [data-split-reveal-shutter] {
animation: none;
opacity: 0;
}
[data-split-reveal-overlay] [data-split-reveal-progress] {
transition: none;
}
}
}
// ── animata/preloader/split-reveal.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal.tsx)
export * from "./split-reveal/index";
export { default } from "./split-reveal/index";
// ── animata/preloader/split-reveal/context.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/context.tsx)
"use client";
import { createContext, use } from "react";
import type { SplitRevealContextValue, SplitRevealInternalContextValue } from "./types";
export const SplitRevealContext = createContext<SplitRevealContextValue | null>(null);
export const SplitRevealInternalContext = createContext<SplitRevealInternalContextValue | null>(
null,
);
export function useSplitReveal() {
const context = use(SplitRevealContext);
if (!context) {
throw new Error("SplitReveal primitives must be used within <SplitReveal>.");
}
return context;
}
export function useSplitRevealInternal() {
const context = use(SplitRevealInternalContext);
if (!context) {
throw new Error("SplitReveal.Task and SplitReveal.Images must be used within <SplitReveal>.");
}
return context;
}
// ── animata/preloader/split-reveal/execute-task.ts (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/execute-task.ts)
import type { SplitRevealProgressReporter, SplitRevealTaskDefinition } from "./types";
export async function executeTask(
task: SplitRevealTaskDefinition,
report: SplitRevealProgressReporter,
signal: AbortSignal,
) {
const ctx = { report, signal };
if (task.run) {
await task.run(ctx);
return;
}
if (task.generator) {
if (signal.aborted) {
return;
}
const iterator = task.generator(ctx);
let result = await iterator.next();
while (!result.done) {
if (signal.aborted) {
await iterator.return?.();
return;
}
if (result.value) {
report(result.value);
}
result = await iterator.next();
}
}
}
// ── animata/preloader/split-reveal/images.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/images.tsx)
"use client";
import { useCallback, useMemo } from "react";
import { preloadImages } from "./preload-images";
import { SplitRevealTask } from "./task";
import type { SplitRevealTaskContext } from "./types";
export type SplitRevealImagesProps = {
urls: string[];
};
export function SplitRevealImages({ urls }: SplitRevealImagesProps) {
const uniqueUrls = useMemo(() => [...new Set(urls.filter(Boolean))], [urls]);
const run = useCallback(
({ report, signal }: SplitRevealTaskContext) => {
if (signal.aborted) {
return Promise.resolve();
}
return preloadImages(uniqueUrls, (next) => {
if (!signal.aborted) {
report(next);
}
});
},
[uniqueUrls],
);
return <SplitRevealTask run={run} />;
}
// ── animata/preloader/split-reveal/index.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/index.tsx)
"use client";
import "../split-reveal.css";
import { SplitRevealImages } from "./images";
import { SplitRevealOverlay } from "./overlay";
import { SplitRevealProgress } from "./progress";
import { SplitRevealProgressCount } from "./progress-count";
import { SplitRevealProgressSlot } from "./progress-slot";
import { SplitRevealProgressTrack } from "./progress-track";
import { SplitRevealRoot } from "./root";
import { SplitRevealShutter } from "./shutter";
import { SplitRevealTask } from "./task";
const SplitReveal = Object.assign(SplitRevealRoot, {
Overlay: SplitRevealOverlay,
Shutter: SplitRevealShutter,
Progress: SplitRevealProgress,
ProgressTrack: SplitRevealProgressTrack,
ProgressCount: SplitRevealProgressCount,
ProgressSlot: SplitRevealProgressSlot,
Task: SplitRevealTask,
Images: SplitRevealImages,
});
export default SplitReveal;
export { usePrefersReducedMotion } from "@/hooks/use-prefers-reduced-motion";
export { useSplitReveal, useSplitRevealInternal } from "./context";
export { executeTask } from "./execute-task";
export { SplitRevealImages } from "./images";
export { SplitRevealOverlay, SplitRevealOverlay as SplitRevealOverlayFrame } from "./overlay";
export { preloadImages } from "./preload-images";
export { SplitRevealProgress } from "./progress";
export { SplitRevealProgressCount } from "./progress-count";
export { SplitRevealProgressSlot } from "./progress-slot";
export { SplitRevealProgressTrack } from "./progress-track";
export { SplitRevealRoot } from "./root";
export { SplitRevealShutter } from "./shutter";
export { SplitRevealTask } from "./task";
export type {
PreloaderPhase,
SplitRevealContextValue,
SplitRevealInternalContextValue,
SplitRevealProgressReporter,
SplitRevealProgressState,
SplitRevealRootProps,
SplitRevealTaskContext,
SplitRevealTaskDefinition,
SplitRevealTaskGenerator,
SplitRevealTaskRun,
} from "./types";
// ── animata/preloader/split-reveal/overlay.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/overlay.tsx)
"use client";
import type { ComponentProps, CSSProperties } from "react";
import { cn } from "@/lib/utils";
import { useSplitReveal } from "./context";
export function SplitRevealOverlay({
className,
children,
style,
...props
}: ComponentProps<"div">) {
const { phase, zIndex, revealDuration, progressFadeMs, isActive } = useSplitReveal();
if (!isActive) {
return null;
}
return (
<div
className={cn(
"fixed inset-0 overscroll-none touch-none",
phase === "loading" ? "pointer-events-auto" : "pointer-events-none",
className,
)}
style={
{
...style,
zIndex,
"--split-reveal-duration": `${revealDuration}s`,
"--split-reveal-progress-fade": `${progressFadeMs}ms`,
} as CSSProperties
}
data-phase={phase}
aria-busy={phase === "loading"}
aria-live="polite"
data-split-reveal-overlay=""
{...props}
>
{children}
</div>
);
}
// ── animata/preloader/split-reveal/preload-images.ts (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/preload-images.ts)
import type { SplitRevealProgressReporter } from "./types";
export function preloadImages(urls: string[], onProgress: SplitRevealProgressReporter) {
const total = urls.length;
if (total === 0) {
onProgress({ loaded: 0, total: 0 });
return Promise.resolve();
}
let loaded = 0;
const preloadOne = (url: string) =>
new Promise<void>((resolve) => {
const img = new Image();
let settled = false;
const settle = () => {
if (settled) {
return;
}
settled = true;
loaded += 1;
onProgress({ loaded, total });
resolve();
};
const ready = () => {
if (typeof img.decode === "function") {
img.decode().then(settle).catch(settle);
return;
}
settle();
};
img.onload = ready;
img.onerror = settle;
img.decoding = "async";
img.src = url;
if (img.complete && img.naturalWidth > 0) {
ready();
}
});
return Promise.all(urls.map((url) => preloadOne(url))).then(() => undefined);
}
// ── animata/preloader/split-reveal/progress-count.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/progress-count.tsx)
import { cn } from "@/lib/utils";
export function SplitRevealProgressCount({
loaded,
total,
foregroundColor,
className,
}: {
loaded: number;
total: number;
foregroundColor: string;
className?: string;
}) {
return (
<p
className={cn(
"mt-3 text-center text-[11px] font-medium tabular-nums tracking-[0.12em]",
className,
)}
style={{ color: `color-mix(in srgb, ${foregroundColor} 45%, transparent)` }}
>
{String(loaded).padStart(2, "0")}
<span style={{ color: `color-mix(in srgb, ${foregroundColor} 20%, transparent)` }}> / </span>
{String(total).padStart(2, "0")}
</p>
);
}
// ── animata/preloader/split-reveal/progress-slot.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/progress-slot.tsx)
import type { ComponentProps } from "react";
import { cn } from "@/lib/utils";
export function SplitRevealProgressSlot({ className, children, ...props }: ComponentProps<"div">) {
return (
<div
className={cn(
"pointer-events-none absolute inset-0 z-10 flex items-center justify-center",
className,
)}
data-split-reveal-progress=""
{...props}
>
<div className="w-[min(18rem,70vw)]">{children}</div>
</div>
);
}
// ── animata/preloader/split-reveal/progress-track.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/progress-track.tsx)
import { cn } from "@/lib/utils";
export function SplitRevealProgressTrack({
progress,
foregroundColor,
className,
}: {
progress: number;
foregroundColor: string;
className?: string;
}) {
return (
<div
className={cn("h-px w-full", className)}
style={{ backgroundColor: `color-mix(in srgb, ${foregroundColor} 8%, transparent)` }}
>
<div
className="h-px transition-[width] duration-300 ease-out"
style={{ width: `${progress}%`, backgroundColor: foregroundColor }}
/>
</div>
);
}
// ── animata/preloader/split-reveal/progress.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/progress.tsx)
"use client";
import type { ComponentProps, ReactNode } from "react";
import { useSplitReveal } from "./context";
import { SplitRevealProgressCount } from "./progress-count";
import { SplitRevealProgressSlot } from "./progress-slot";
import { SplitRevealProgressTrack } from "./progress-track";
import type { SplitRevealProgressState } from "./types";
export function SplitRevealProgress({
className,
children,
...props
}: Omit<ComponentProps<"div">, "children"> & {
children?: ReactNode | ((state: SplitRevealProgressState) => ReactNode);
}) {
const { phase, progress, loaded, total, foregroundColor } = useSplitReveal();
const content =
typeof children === "function"
? children({ progress, loaded, total, phase })
: (children ?? (
<>
<SplitRevealProgressTrack progress={progress} foregroundColor={foregroundColor} />
<SplitRevealProgressCount
loaded={loaded}
total={total}
foregroundColor={foregroundColor}
/>
</>
));
return (
<SplitRevealProgressSlot className={className} {...props}>
{content}
</SplitRevealProgressSlot>
);
}
// ── animata/preloader/split-reveal/root.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/root.tsx)
"use client";
import { useCallback, useEffect, useMemo, useReducer, useRef, useState } from "react";
import { useLockBody } from "@/hooks/use-lock-body";
import { usePrefersReducedMotion } from "@/hooks/use-prefers-reduced-motion";
import { SplitRevealContext, SplitRevealInternalContext } from "./context";
import { executeTask } from "./execute-task";
import type {
PreloaderPhase,
SplitRevealInternalContextValue,
SplitRevealProgressReporter,
SplitRevealRootProps,
SplitRevealTaskDefinition,
} from "./types";
export function SplitRevealRoot({
children,
progress: controlledProgress,
ready: controlledReady,
backgroundColor = "hsl(var(--background))",
foregroundColor = "hsl(var(--foreground))",
revealDuration = 0.85,
progressFadeMs = 280,
holdMs = 240,
zIndex = 100,
lockScroll = true,
onComplete,
}: SplitRevealRootProps) {
const reduceMotion = usePrefersReducedMotion();
const onCompleteRef = useRef(onComplete);
const phaseRef = useRef<PreloaderPhase>("loading");
const tasksRef = useRef<Map<string, SplitRevealTaskDefinition>>(new Map());
const bootstrappedRef = useRef(false);
const controlledProgressRef = useRef(controlledProgress);
const controlledReadyRef = useRef(controlledReady);
controlledProgressRef.current = controlledProgress;
controlledReadyRef.current = controlledReady;
const maybeRevealRef = useRef<(() => void) | null>(null);
const [bootstrapEpoch, setBootstrapEpoch] = useState(0);
const requestBootstrap = useCallback(() => {
if (phaseRef.current === "done") {
return;
}
setBootstrapEpoch((epoch) => epoch + 1);
}, []);
type PreloadSnapshot = { phase: PreloaderPhase; loaded: number; total: number };
const preloadReducer = (
state: PreloadSnapshot,
action:
| { type: "reset"; total: number }
| { type: "progress"; loaded: number; total: number }
| { type: "phase"; phase: PreloaderPhase },
): PreloadSnapshot => {
switch (action.type) {
case "reset":
if (state.phase === "done") {
return state;
}
return { phase: "loading", loaded: 0, total: action.total };
case "progress":
if (state.phase === "done") {
return state;
}
return { ...state, loaded: action.loaded, total: action.total };
case "phase":
return { ...state, phase: action.phase };
default:
return state;
}
};
const [preload, dispatchPreload] = useReducer(preloadReducer, {
phase: "loading",
loaded: 0,
total: 0,
});
const { phase, loaded, total } = preload;
phaseRef.current = phase;
const progressPercent = total === 0 ? 100 : Math.round((loaded / total) * 100);
const isActive = phase !== "done";
const readyControlled = controlledReady !== undefined;
useEffect(() => {
onCompleteRef.current = onComplete;
}, [onComplete]);
useEffect(() => {
if (controlledProgress === undefined) {
return;
}
if (phaseRef.current === "done") {
return;
}
dispatchPreload({
type: "progress",
loaded: controlledProgress.loaded,
total: controlledProgress.total,
});
}, [controlledProgress]);
const registerTask = useCallback(
(id: string, task: SplitRevealTaskDefinition) => {
const isNew = !tasksRef.current.has(id);
tasksRef.current.set(id, task);
if (isNew && phaseRef.current === "loading" && bootstrappedRef.current) {
requestBootstrap();
}
return () => {
tasksRef.current.delete(id);
};
},
[requestBootstrap],
);
const bootstrapRef = useRef<(() => void) | null>(null);
useEffect(() => {
if (phaseRef.current === "done") {
return;
}
let runId = 0;
let fadeTimer: number | undefined;
let revealTimer: number | undefined;
let doneTimer: number | undefined;
let abortController: AbortController | undefined;
let tasksDone = false;
const clearTimers = () => {
if (fadeTimer !== undefined) {
window.clearTimeout(fadeTimer);
fadeTimer = undefined;
}
if (revealTimer !== undefined) {
window.clearTimeout(revealTimer);
revealTimer = undefined;
}
if (doneTimer !== undefined) {
window.clearTimeout(doneTimer);
doneTimer = undefined;
}
};
const finish = (currentRun: number) => {
if (currentRun !== runId) {
return;
}
onCompleteRef.current?.();
dispatchPreload({ type: "phase", phase: "done" });
};
const startReveal = (currentRun: number) => {
if (phaseRef.current !== "loading") {
return;
}
if (reduceMotion) {
finish(currentRun);
return;
}
dispatchPreload({ type: "phase", phase: "fade-ui" });
revealTimer = window.setTimeout(() => {
if (currentRun !== runId) {
return;
}
dispatchPreload({ type: "phase", phase: "reveal" });
doneTimer = window.setTimeout(() => finish(currentRun), revealDuration * 1000);
}, progressFadeMs);
};
const scheduleReveal = (currentRun: number) => {
if (fadeTimer !== undefined) {
return;
}
fadeTimer = window.setTimeout(() => startReveal(currentRun), holdMs);
};
const maybeReveal = (currentRun: number) => {
const hasTasks = tasksRef.current.size > 0;
const tasksReady = !hasTasks || tasksDone;
const readyOk = !readyControlled || controlledReadyRef.current === true;
if (!tasksReady || !readyOk) {
return;
}
if (!hasTasks && !readyControlled) {
return;
}
scheduleReveal(currentRun);
};
const bootstrap = () => {
runId += 1;
const currentRun = runId;
maybeRevealRef.current = () => maybeReveal(currentRun);
clearTimers();
abortController?.abort();
abortController = new AbortController();
const signal = abortController.signal;
tasksDone = false;
const tasks = [...tasksRef.current.values()];
const hasTasks = tasks.length > 0;
if (!hasTasks) {
const progress = controlledProgressRef.current;
const nextTotal = progress?.total ?? 0;
const nextLoaded = progress?.loaded ?? 0;
dispatchPreload({ type: "reset", total: nextTotal });
if (progress !== undefined) {
dispatchPreload({
type: "progress",
loaded: nextLoaded,
total: nextTotal,
});
}
maybeReveal(currentRun);
return;
}
dispatchPreload({ type: "reset", total: 0 });
const report: SplitRevealProgressReporter = (next) => {
if (currentRun !== runId || abortController?.signal.aborted) {
return;
}
dispatchPreload({ type: "progress", loaded: next.loaded, total: next.total });
};
Promise.allSettled(tasks.map((task) => executeTask(task, report, signal))).then(() => {
if (currentRun !== runId || signal.aborted) {
return;
}
tasksDone = true;
maybeReveal(currentRun);
});
};
bootstrapRef.current = bootstrap;
bootstrappedRef.current = true;
bootstrap();
return () => {
runId += 1;
bootstrappedRef.current = false;
maybeRevealRef.current = null;
clearTimers();
abortController?.abort();
bootstrapRef.current = null;
};
}, [holdMs, progressFadeMs, readyControlled, reduceMotion, revealDuration]);
useEffect(() => {
if (!readyControlled || controlledReady !== true) {
return;
}
maybeRevealRef.current?.();
}, [controlledReady, readyControlled]);
useEffect(() => {
if (bootstrapEpoch === 0) {
return;
}
bootstrapRef.current?.();
}, [bootstrapEpoch]);
useEffect(() => {
const restartFromCache = () => {
if (phaseRef.current === "done") {
return;
}
dispatchPreload({ type: "reset", total: 0 });
requestBootstrap();
};
const onPageShow = (event: PageTransitionEvent) => {
if (event.persisted) {
restartFromCache();
}
};
const onResume = () => {
restartFromCache();
};
window.addEventListener("pageshow", onPageShow);
document.addEventListener("resume", onResume);
return () => {
window.removeEventListener("pageshow", onPageShow);
document.removeEventListener("resume", onResume);
};
}, [requestBootstrap]);
useLockBody(lockScroll && isActive);
const contextValue = useMemo(
() => ({
phase,
progress: progressPercent,
loaded,
total,
backgroundColor,
foregroundColor,
revealDuration,
progressFadeMs,
zIndex,
isActive,
}),
[
backgroundColor,
foregroundColor,
isActive,
loaded,
phase,
progressPercent,
progressFadeMs,
revealDuration,
total,
zIndex,
],
);
const internalValue = useMemo<SplitRevealInternalContextValue>(
() => ({ registerTask }),
[registerTask],
);
if (!isActive) {
return null;
}
return (
<SplitRevealContext value={contextValue}>
<SplitRevealInternalContext value={internalValue}>{children}</SplitRevealInternalContext>
</SplitRevealContext>
);
}
// ── animata/preloader/split-reveal/shutter.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/shutter.tsx)
"use client";
import type { ComponentProps } from "react";
import { cn } from "@/lib/utils";
import { useSplitReveal } from "./context";
export function SplitRevealShutter({
side,
className,
style,
...props
}: ComponentProps<"div"> & { side: "top" | "bottom" }) {
const { backgroundColor } = useSplitReveal();
return (
<div
className={cn(
"absolute inset-x-0 h-1/2 will-change-transform",
side === "top" ? "top-0" : "bottom-0",
className,
)}
style={{ backgroundColor, ...style }}
data-split-reveal-shutter={side}
{...props}
/>
);
}
// ── animata/preloader/split-reveal/task.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal/task.tsx)
"use client";
import { useEffect, useId } from "react";
import { useSplitRevealInternal } from "./context";
import type {
SplitRevealTaskDefinition,
SplitRevealTaskGenerator,
SplitRevealTaskRun,
} from "./types";
export type SplitRevealTaskProps = {
run?: SplitRevealTaskRun;
generator?: SplitRevealTaskGenerator;
};
export function SplitRevealTask({ run, generator }: SplitRevealTaskProps) {
const id = useId();
const { registerTask } = useSplitRevealInternal();
useEffect(() => {
const task: SplitRevealTaskDefinition = {
run,
generator,
};
if (!task.run && !task.generator) {
return;
}
return registerTask(id, task);
}, [id, registerTask, run, generator]);
return null;
}
// ── hooks/use-lock-body.ts (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/hooks/use-lock-body.ts)
"use client";
import { useEffect } from "react";
export function useLockBody(active = true) {
useEffect(() => {
if (!active) {
return;
}
const html = document.documentElement;
const body = document.body;
const scrollY = window.scrollY;
const previous = {
htmlOverflow: html.style.overflow,
bodyOverflow: body.style.overflow,
bodyPosition: body.style.position,
bodyTop: body.style.top,
bodyLeft: body.style.left,
bodyRight: body.style.right,
bodyWidth: body.style.width,
bodyTouchAction: body.style.touchAction,
};
html.style.overflow = "hidden";
body.style.overflow = "hidden";
body.style.position = "fixed";
body.style.top = `-${scrollY}px`;
body.style.left = "0";
body.style.right = "0";
body.style.width = "100%";
body.style.touchAction = "none";
return () => {
html.style.overflow = previous.htmlOverflow;
body.style.overflow = previous.bodyOverflow;
body.style.position = previous.bodyPosition;
body.style.top = previous.bodyTop;
body.style.left = previous.bodyLeft;
body.style.right = previous.bodyRight;
body.style.width = previous.bodyWidth;
body.style.touchAction = previous.bodyTouchAction;
window.scrollTo(0, scrollY);
};
}, [active]);
}
// ── hooks/use-prefers-reduced-motion.ts (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/hooks/use-prefers-reduced-motion.ts)
"use client";
import { useSyncExternalStore } from "react";
function subscribeReducedMotion(callback: () => void) {
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
if (typeof mq.addEventListener === "function") {
mq.addEventListener("change", callback);
return () => mq.removeEventListener("change", callback);
}
const legacyMq = mq as MediaQueryList & {
addListener: (listener: () => void) => void;
removeListener: (listener: () => void) => void;
};
legacyMq.addListener(callback);
return () => legacyMq.removeListener(callback);
}
function getReducedMotionSnapshot() {
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
}
export function usePrefersReducedMotion() {
return useSyncExternalStore(subscribeReducedMotion, getReducedMotionSnapshot, () => false);
}
// ── lib/utils.ts (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/lib/utils.ts)
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function absoluteUrl(path: string) {
return `${process.env.NEXT_PUBLIC_APP_URL}${path}`;
}
// Linear interpolation
export function lerp(a: number, b: number, n: number) {
return (1 - n) * a + n * b;
}
// Get distance between two points
export function getDistance(x1: number, y1: number, x2: number, y2: number) {
return Math.hypot(x2 - x1, y2 - y1);
}컨트롤 · HTML · CSS · JS
코드를 고치고 컨트롤로 다듬어 보세요. 입력하는 대로 미리보기가 바뀝니다.

이 컴포넌트는 번들된 빌드로 실행되므로 여기서는 스크립트를 읽기만 할 수 있습니다. HTML과 CSS는 수정할 수 있고 전체 소스는 코드 탭에 있습니다.
모든 컴포넌트를 바로 편집하고, 컨트롤로 다듬고, 전체 소스를 내려받고, 고급 프롬프트를 복사하세요.
1회 결제 $49임시 가격
테스트 모드: 실제 결제는 이루어지지 않습니다.
무료: 미리보기, 복사 버튼, 레슨 설명.
리듬이 고른 작은 루프는 잡음이 아니라 진행 중으로 읽힙니다.
2초 이내의 대기, 버튼 안, 빈 패널.
크기, 색, 한 바퀴의 시간을 바꿉니다.
Animata (github.com/codse/animata)(MIT)의 "Split Reveal (로더)" 컴포넌트를 내 React + Tailwind CSS 앱에 추가해 줘. 소스 파일: https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/preloader/split-reveal.tsx. 리듬이 고른 작은 루프는 잡음이 아니라 진행 중으로 읽힙니다. 사용처: 2초 이내의 대기, 버튼 안, 빈 패널. 조정할 설정: 크기, 색, 한 바퀴의 시간을 바꿉니다. 라이트와 다크 테마를 지원하고 prefers-reduced-motion을 존중해 줘. MIT 라이선스 고지는 유지해 줘.
조정, 접근성, 연동 단계까지 담은 긴 프롬프트입니다.