Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: more new items
dev_wandrybb3c472c2145
diff --git a/CLAUDE.md b/CLAUDE.mdindex 72360375..a6f938ee 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -73,6 +73,56 @@ Remotion implementation:Слои (Layers): Обязательное использование position: absolute в общем контейнере, чтобы тексты не "толкали" друг друга в DOM при смене opacity.Transitioning: Идеально подходит компонент <Sequence> с отрицательным сдвигом, чтобы анимации затухания старого текста и появления нового пересекались по времени.+Название: <StaggeredFadeUp /> (Слова ступеньками)+Короткое описание: Классическое, мягкое появление текста по одному слову снизу вверх.+Подробное описание эффекта: Каждое слово в предложении плавно всплывает (сдвигается по оси Y вверх) из полной прозрачности. Движение начинается с небольшой задержкой для каждого следующего слова, создавая эффект волны.+Remotion implementation: Текст разбивается на массив слов через .split(' '). Каждое слово оборачивается в <span> с inline-block. Используется interpolate для opacity (0 -> 1) и transform: translateY (например, 20px -> 0px). Задержка высчитывается как frame - index * staggerDelay.++Название: <MaskedSlideReveal /> (Выезд из-за маски)+Короткое описание: Текст буквально «вырастает» из невидимой линии.+Подробное описание эффекта: Буквы или слова появляются, выезжая снизу вверх, но они не просто становятся непрозрачными, а обрезаются по четкой невидимой горизонтальной линии (маске), пока не выедут полностью. Очень строгий и архитектурный эффект.+Remotion implementation: Каждая строка или слово оборачивается в родительский <div> с жестким overflow: hidden и фиксированной высотой (равной line-height). Сам текст внутри анимируется через spring transform: translateY(100%) -> 0%.++Название: <TrackingIn /> (Стягивание интервалов)+Короткое описание: Текст собирается из широкого разброса в нормальное состояние.+Подробное описание эффекта: Слово появляется с огромным расстоянием между буквами (letter-spacing) и сильным размытием, а затем буквы резко «схлопываются» к центру в нормальное слово с легким упругим отскоком.+Remotion implementation: Интерполяция свойства letter-spacing (например, от 0.5em до normal или 0) в комбинации с filter: blur(). Для красивого отскока letter-spacing привязывается к вызову spring().++Название: <ShimmerSweep /> (Блик / Проблеск)+Короткое описание: Световой блик, пробегающий по тексту.+Подробное описание эффекта: Текст написан тусклым цветом (например, темно-серым). В нужный момент по нему слева направо пробегает яркий, светящийся градиент, зажигая буквы и оставляя их яркими. Часто используется для фокуса на AI-фичах (генерация).+Remotion implementation: Использование CSS background-clip: text, color: transparent и background-image: linear-gradient(...). Анимация достигается смещением свойства background-position от -100% до 200% с помощью interpolate по текущему кадру.++Название: <MarkerHighlight /> (Маркерное выделение)+Короткое описание: Имитация выделения текста желтым маркером или цветным блоком.+Подробное описание эффекта: За целевым словом или фразой плавно, слева направо, отрисовывается цветной прямоугольник. Текст при этом может менять цвет на контрастный (например, с черного на белый).+Remotion implementation: Псевдоэлемент ::after или абсолютно спозиционированный <div> позади текста с z-index: -1. Анимируется его width от 0% до 100% через spring с небольшим damping для реалистичности.++Название: <SlotMachineRoll /> (Вращение барабана)+Короткое описание: Буквы или цифры крутятся по вертикали, как в казино.+Подробное описание эффекта: При смене данных (например, цены с $99 на $199 или статуса с "Pending" на "Success") символы быстро прокручиваются сверху вниз, пока не зафиксируются на новом значении.+Remotion implementation: Контейнер с overflow: hidden высотой в одну строку. Внутри — длинная колонка (или <div>) со всеми возможными символами/цифрами (или просто начальным и конечным). Колонка анимируется по оси Y (translateY) так, чтобы нужный символ остановился точно по центру.++Название: <MatrixDecode /> (Расшифровка / Scramble)+Короткое описание: Беспорядочные символы превращаются в осмысленное слово.+Подробное описание эффекта: Слово появляется как набор случайных букв, цифр и спецсимволов (#@%*!). Затем, символ за символом (слева направо), этот «мусор» фиксируется и превращается в правильный текст. Идеально для DevTools и кибербезопасности.+Remotion implementation: Хук, который на каждом кадре генерирует строку нужной длины. Для символов, которые еще "не расшифрованы", берется случайный символ из заранее заданного словаря (используя псевдослучайный генератор @remotion/random на основе frame, чтобы избежать мерцания при рендере). Для "расшифрованных" — берется оригинальный символ.++Название: <RGBGlitchText />+Короткое описание: Текст дергается и расслаивается на красные, зеленые и синие каналы.+Подробное описание эффекта: В момент резкого перехода или звукового акцента текст на долю секунды смещается, оставляя за собой RGB-шлейфы (хроматическая аберрация) и искажаясь по горизонтали.+Remotion implementation: Создается 3 копии одного и того же текста, наложенных друг на друга (position: absolute). У одной копии цвет текста (или text-shadow) красный, у другой синий, у третьей зеленый. С помощью interpolate и random копии смещаются на 2-5 пикселей в разные стороны на очень короткий промежуток времени (3-5 кадров), а затем возвращаются в центр.++Название: <VideoMaskText /> (Текст как окно)+Короткое описание: Гигантский текст, внутри которого проигрывается видео продукта.+Подробное описание эффекта: На экране огромное жирное слово (например, "CREATE"). Буквы прозрачные, а фон вокруг них черный. Сквозь буквы видно, как работает интерфейс. Затем камера резко "влетает" в букву, и видео интерфейса открывается на весь экран.+Remotion implementation: Использование CSS-свойства mask-image (или <clipPath> в SVG). Текст выступает маской для видео-компонента или скринкаста. Пролет камеры реализуется через колоссальное увеличение масштаба (transform: scale(100)) с точным transform-origin по центру нужной буквы.++Название: <InfiniteMarquee /> (Бегущая строка)+Короткое описание: Непрерывно ползущая строка из слов или интеграций.+Подробное описание эффекта: Лента текста, которая бесконечно и плавно движется по горизонтали. Часто используется крупным, контурным шрифтом (stroke) на фоне.+Remotion implementation: Контейнер с текстом дублируется 2-3 раза в ряд. Анимируется transform: translateX всего родителя от 0% до -100% (ширина одного оригинального блока) линейно через interpolate. При достижении -100% анимация зацикливается, визуально создавая бесконечный поток.+Категория 2: Фоны и Атмосфера (Backgrounds)Название: <MeshGradientBg />@@ -202,4 +252,99 @@ Remotion implementation:Подробное описание эффекта: Взрыв конфетти или партиклов из определенной точки (например, после нажатия кнопки "Merge" или "Publish").Remotion implementation:В документации Remotion есть отличные примеры работы с canvas для частиц.-Обязательное условие: использование random(seed) из @remotion/random для генерации векторов полета частиц. Обычный Math.random() сломает консистентность при рендере видео. Партиклы рендерятся в <canvas> внутри компонента Remotion, где координаты пересчитываются на каждый кадр.\ No newline at end of file+Обязательное условие: использование random(seed) из @remotion/random для генерации векторов полета частиц. Обычный Math.random() сломает консистентность при рендере видео. Партиклы рендерятся в <canvas> внутри компонента Remotion, где координаты пересчитываются на каждый кадр.++++Название: <CursorFlow />+Короткое описание: Реалистичная симуляция движения и кликов мыши.+Подробное описание эффекта: Курсор не просто скользит по прямым линиям. Он имитирует биомеханику человеческой руки: плавно ускоряется в начале, двигается по легкой дуге, замедляется перед целью (easing), делает микро-паузу "прицеливания", а при самом клике визуально "вдавливается" в экран.+Remotion implementation (Продвинутая):+Вместо линейной interpolate между двумя точками (x1, y1) -> (x2, y2), необходимо использовать кубические кривые Безье (Bezier curves) для расчета координат x и y на каждом кадре. Можно использовать функции из d3-shape для генерации сплайнов по массиву waypoints (ключевых точек).+Сам курсор — это SVG-компонент, позиционированный абсолютно (z-index: 9999).+Анимация клика реализуется через независимый spring() на свойство scale, который триггерится в кадры, указанные в конфиге компонента.+Taste detail: Никаких прямых углов и роботизированного движения! Траектория всегда должна иметь "животик" (дугу). При клике курсор должен резко уменьшаться (scale: 0.85) буквально на 2-3 кадра с жестким damping, создавая ощущение физического удара по стеклу, а элемент, по которому кликнули, должен синхронно "прожаться" на scale: 0.98.++Название: <GlassCodeBlock /> (или CodeWindow)+Короткое описание: Премиальное окно редактора кода с эффектом матового стекла.+Подробное описание эффекта: Окно терминала или редактора, которое не выглядит как глухой черный квадрат. Оно имеет объем, отражает свет по краям (Linear-style glow) и слегка просвечивает анимированный фон (MeshGradientBg), находящийся за ним. Текст кода внутри появляется с идеальным подсветкой синтаксиса.+Remotion implementation (Продвинутая):+Фон: Контейнер использует background: rgba(10, 10, 10, 0.6) в связке с backdrop-filter: blur(16px) и WebkitBackdropFilter.+Микробордер: Не используйте обычный CSS border. Вместо этого оберните окно в родительский div с padding: 1px (или используйте ::before псевдоэлемент) и задайте ему background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.0) 100%). Это создаст эффект света, падающего точно на верхнюю грань окна.+Taste detail: Три точки управления окном (macOS traffic lights) в левом верхнем углу не должны "кричать" яркими цветами. Сделайте их слегка приглушенными (opacity: 0.6) и добавьте внутреннюю микро-тень всему окну (box-shadow: inset 0 1px 0 rgba(255,255,255,0.05)), чтобы оно казалось слегка вдавленным в холст, как дорогой кусок пластика.++Название: <DynamicSplitScreen /> (ChatToPreviewLayout)+Короткое описание: Кинематографичное разделение экрана на две рабочие зоны.+Подробное описание эффекта: Сцена начинается с одного широкого блока по центру (например, чат-интерфейс). По мере развития сюжета, этот блок плавно уезжает влево, сжимаясь, а справа, как бы вытягиваясь из-под маски, появляется новая рабочая панель (результат генерации или предпросмотр).+Remotion implementation (Продвинутая):+Родитель — Flexbox-контейнер (display: flex).+Левый блок: интерполяция свойства width (или flex-basis) от 100% до 35%.+Правый блок: интерполяция от 0% до 65%.+Критично: Чтобы верстка внутри колонок не ломалась во время сжатия (текст не прыгал по строкам), оба дочерних контейнера должны иметь фиксированную внутреннюю ширину (например, min-width: 800px) и строгое правило overflow: hidden.+Taste detail: Используйте нелинейное, драматичное замедление (например, Easing.bezier(0.16, 1, 0.3, 1) — Apple's custom ease). Во время сдвига правый (новый) блок должен слегка "выцветать" (opacity: 0 -> 1) и сдвигаться по оси X навстречу своему росту (translateX: 40px -> 0px). Это создаст иллюзию, что левый блок физически "тащит" правый за собой.++Название: <TerminalSimulator />+Короткое описание: Симуляция сборки проекта в консоли (CLI).+Подробное описание эффекта: Строки логов (Downloading, Building, Resolving) появляются не плавно, а отрывисто, блоками — имитируя реальную задержку сети или процессора. Когда строк становится больше, чем высота окна, старые строки "уезжают" вверх жестким, ступенчатым рывком.+Remotion implementation (Продвинутая):+Компонент принимает массив объектов { text, type (success/warn/error), durationInFrames }.+Используется Math.floor() в комбинации с interpolate, чтобы выводить текст не посимвольно (как в <Typewriter>), а целыми кусками или строками.+Скролл: рассчитывается высота одной строки (line-height). Если количество отрендеренных строк превышает лимит, родительский контейнер сдвигается через transform: translateY на величину -N * lineHeight.+Taste detail: Аутентичность — в несовершенстве. Включите микро-задержки (freeze frames) на строках типа Resolving dependencies..., чтобы создать напряжение перед быстрым выплеском строк лога об успешной сборке. Не используйте spring для скролла консоли! Терминал скроллится жестко, мгновенными прыжками (step function).++Название: <MorphingModal />+Короткое описание: Трансформация кнопки или карточки в полноэкранное окно.+Подробное описание эффекта: Пользователь кликает на маленькую карточку в сетке (Bento Grid). Карточка не исчезает; она "отрывается" от сетки, взмывает над остальным интерфейсом (появляется мощная тень) и плавно растягивается, пока не заполнит весь экран, обнажая детальный контент внутри себя.+Remotion implementation (Продвинутая):+Требуется абсолютное позиционирование. Компонент должен "знать" свои начальные координаты (Top/Left/Width/Height карточки) и конечные координаты (0/0/100%/100% экрана).+Используется сложный, тяжеловесный spring для одновременной интерполяции 5 свойств: top, left, width, height и border-radius (например, от 24px до 0px).+Фон за модалкой должен синхронно затемняться (background: rgba(0,0,0,0) -> rgba(0,0,0,0.8)).+Taste detail: Это самая "дорогая" анимация в арсенале. Чтобы она не казалась дешевым слайд-шоу, контент внутри карточки-источника должен плавно исчезать (opacity -> 0) в первой трети анимации, а контент полноэкранного окна должен появляться (opacity -> 1, translateY: 20px -> 0) только в последней трети, когда окно почти достигло своих финальных размеров. Ощущение массы: spring должен иметь высокий mass и низкий stiffness, чтобы окно "раскрывалось" величественно, а не дергалось.+++Название: <SpotlightCard /> (Эффект фонарика / Magnetic Glow)+Короткое описание: Имитация света, который следует за курсором, подсвечивая края и фон карточки.+Подробное описание эффекта: Карточка (bento-блок) лежит в темноте. Когда виртуальный курсор <SimulatedCursor> пролетает над ней или рядом, за ним тянется мягкий, радиальный источник света, который "выхватывает" из темноты тончайший микробордер карточки и слегка подсвечивает ее внутренности.+Remotion implementation (Продвинутая):+Карточка должна "слушать" координаты виртуального курсора (передаются через React Context или пропсы).+Свечение на фоне: background: radial-gradient(800px circle at ${mouseX}px ${mouseY}px, rgba(255,255,255,0.06), transparent 40%).+Свечение на рамке: Псевдоэлемент ::before с padding: 1px (как рамка) и аналогичным radial-gradient, но более ярким rgba(255,255,255,0.3). Накладывается через mask-image, чтобы светилась только граница.+Taste detail: Свет никогда не должен быть цветным, если только это не бренд-цвет с opacity: 0.05. Это должен быть "лунный", холодный свет. Свечение должно иметь небольшую инерцию (пружинить за курсором с микро-задержкой в 1 кадр), чтобы казаться органичным.++Название: <VolumetricRays /> (Объемные лучи / God Rays)+Короткое описание: Кинематографичные лучи света, пробивающиеся сквозь текст или логотип.+Подробное описание эффекта: Эффект "маяка". За крупным заголовком или логотипом находится источник света. Свет пробивается сквозь контуры букв, создавая длинные, медленно вращающиеся или пульсирующие лучи в пыльной/туманной среде.+Remotion implementation (Продвинутая):+В вебе это крайне тяжело сделать чисто на CSS без потери FPS. В Remotion это реализуется через многослойность.+Дублируем текст. Задний слой размываем (огромный filter: blur()) и применяем transform: scaleY(1.5) scaleX(1.2) с transform-origin: center bottom.+Добавляем <WebGL> шейдер поверх размытого текста, который накладывает радиальный шум (@remotion/noise), маскируя "лучи" так, чтобы они казались неоднородными, словно проходят сквозь дым.+Taste detail: Лучи не должны быть статичными. Используй очень медленный interpolate для вращения (rotate) или смещения центра источника света. Текст спереди должен оставаться абсолютно черным или темным (силуэт), чтобы контраст создавал глубину.++Название: <DataFlowPipes /> (Импульсы данных / Cyber Routing)+Короткое описание: Визуализация передачи пакетов данных по трубкам/проводам системы.+Подробное описание эффекта: Часто используется для показа API, вебхуков или баз данных. На экране сложная схема из тонких линий. По этим линиям стремительно проносятся светящиеся "импульсы" (капли света), оставляя за собой затухающий хвост.+Remotion implementation (Продвинутая):+Строим сеть через SVG <path>.+Импульс создается путем клонирования <path> поверх оригинального, назначения ему яркого цвета и добавления stroke-dasharray="50 1000" (где 50 — длина импульса, 1000 — пустота).+Анимируем stroke-dashoffset от длины пути до 0, чтобы импульс пробежал от начала до конца.+Для хвоста импульса: используем SVG <filter> с <feGaussianBlur> и <feColorMatrix>, либо создаем несколько импульсов с падающей opacity, летящих друг за другом с задержкой в 1-2 кадра.+Taste detail: Скорость импульсов должна быть неравномерной. Они должны быстро "выстреливать" (ease-in), лететь по прямым участкам и слегка притормаживать на изгибах 90 градусов (используя кастомный cubic-bezier).++Название: <CodeAccordion /> (Интеллектуальное сворачивание)+Короткое описание: Длинный блок кода сжимается, скрывая нерелевантные строки.+Подробное описание эффекта: У нас есть блок кода на 50 строк. Камера фокусируется, и строки с 10 по 45 внезапно "схлопываются" по вертикали, заменяясь на элегантную плашку // ... 35 lines collapsed ..., оставляя видимыми только начало функции и ее конец.+Remotion implementation (Продвинутая):+Код должен быть отрендерен не как единый текст, а как массив строк (<div> на каждую строку).+Строки, которые нужно скрыть, оборачиваются в контейнер с overflow: hidden.+Используем spring() для интерполяции height этого контейнера от 100% до 0px, синхронно уводя opacity содержимого в 0. Плашка // ... появляется через встречный fade-in.+Taste detail: Когда код "схлопывается", он должен иметь легкий физический вес. Родительский контейнер (само окно редактора) должно синхронно уменьшить свою высоту с упругим spring, чтобы нижняя рамка "ударилась" о верхнюю часть кода с микро-отскоком (damping: 10).++Название: <PerspectiveMarquee /> (3D Бегущая строка)+Короткое описание: Лента логотипов, уходящая вдаль в перспективу.+Подробное описание эффекта: Бегущая строка (например, "Trusted by..."), которая крутится не плоско по экрану, а повернута под углом в 3D пространстве. Логотипы, которые находятся ближе к зрителю — резкие и крупные, а те, что уезжают вдаль — размываются и растворяются во тьме.+Remotion implementation (Продвинутая):+Контейнер-бесконечная лента анимируется через transform: translateX().+Родительский контейнер имеет transform: rotateY(-30deg) rotateX(10deg) и perspective: 1000px.+Секрет глубины (Depth of Field): накладываем абсолютно позиционированный <div /> поверх всего этого блока. Его фон: linear-gradient(90deg, transparent 0%, transparent 60%, rgba(0,0,0,1) 100%).+В идеале: логотипы должны динамически менять filter: blur() в зависимости от их X координаты на экране (чем дальше X от центра перспективы, тем больше blur).+Taste detail: Скорость ленты должна быть гипнотически медленной. Размытие логотипов на заднем плане не должно быть "дешевым". Используйте многоступенчатый градиент в маске, чтобы они растворялись в черном фоне абсолютно бесшовно, словно в тумане.\ No newline at end of filediff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsxindex 03669bc1..1c3e0418 100644--- a/components/docs/component-preview.tsx+++ b/components/docs/component-preview.tsx@@ -24,23 +24,39 @@ import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";import { BlurReveal } from "@/registry/remocn/blur-reveal";import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";+import { CodeAccordion } from "@/registry/remocn/code-accordion";+import { CursorFlow } from "@/registry/remocn/cursor-flow";+import { DataFlowPipes } from "@/registry/remocn/data-flow-pipes";import { CodeDiffWipe } from "@/registry/remocn/code-diff-wipe";import { DeviceMockupZoom } from "@/registry/remocn/device-mockup-zoom";import { DirectionalWipe } from "@/registry/remocn/directional-wipe";import { DragAndDropFlow } from "@/registry/remocn/drag-and-drop-flow";import { DynamicGrid } from "@/registry/remocn/dynamic-grid";+import { GlassCodeBlock } from "@/registry/remocn/glass-code-block";+import { InfiniteMarquee } from "@/registry/remocn/infinite-marquee";import { InlineHighlight } from "@/registry/remocn/inline-highlight";+import { MarkerHighlight } from "@/registry/remocn/marker-highlight";+import { MaskedSlideReveal } from "@/registry/remocn/masked-slide-reveal";+import { MatrixDecode } from "@/registry/remocn/matrix-decode";import { MeshGradientBg } from "@/registry/remocn/mesh-gradient-bg";+import { MorphingModal } from "@/registry/remocn/morphing-modal";+import { PerspectiveMarquee } from "@/registry/remocn/perspective-marquee";import { ProgressSteps } from "@/registry/remocn/progress-steps";import { PulsingIndicator } from "@/registry/remocn/pulsing-indicator";+import { RGBGlitchText } from "@/registry/remocn/rgb-glitch-text";+import { ShimmerSweep } from "@/registry/remocn/shimmer-sweep";import { SimulatedCursor } from "@/registry/remocn/simulated-cursor";+import { SpotlightCard } from "@/registry/remocn/spotlight-card";+import { SlotMachineRoll } from "@/registry/remocn/slot-machine-roll";import { SpringPopIn } from "@/registry/remocn/spring-pop-in";import { StaggeredBentoGrid } from "@/registry/remocn/staggered-bento-grid";+import { StaggeredFadeUp } from "@/registry/remocn/staggered-fade-up";import { StrikethroughReplace } from "@/registry/remocn/strikethrough-replace";import { SuccessConfetti } from "@/registry/remocn/success-confetti";import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";import { ToastNotification } from "@/registry/remocn/toast-notification";+import { TrackingIn } from "@/registry/remocn/tracking-in";import { Typewriter } from "@/registry/remocn/typewriter";import { ZoomThroughTransition } from "@/registry/remocn/zoom-through-transition";import { ComponentCustomizer } from "./component-customizer";@@ -51,6 +67,22 @@ const registry: Record<string, React.ComponentType<any>> = {"inline-highlight": InlineHighlight,"text-fade-replace": TextFadeReplace,"strikethrough-replace": StrikethroughReplace,+ "staggered-fade-up": StaggeredFadeUp,+ "masked-slide-reveal": MaskedSlideReveal,+ "tracking-in": TrackingIn,+ "shimmer-sweep": ShimmerSweep,+ "marker-highlight": MarkerHighlight,+ "slot-machine-roll": SlotMachineRoll,+ "matrix-decode": MatrixDecode,+ "rgb-glitch-text": RGBGlitchText,+ "infinite-marquee": InfiniteMarquee,+ "perspective-marquee": PerspectiveMarquee,+ "spotlight-card": SpotlightCard,+ "glass-code-block": GlassCodeBlock,+ "code-accordion": CodeAccordion,+ "cursor-flow": CursorFlow,+ "data-flow-pipes": DataFlowPipes,+ "morphing-modal": MorphingModal,"mesh-gradient-bg": MeshGradientBg,"dynamic-grid": DynamicGrid,"spring-pop-in": SpringPopIn,diff --git a/content/docs/primitives/code-accordion.mdx b/content/docs/primitives/code-accordion.mdxnew file mode 100644index 00000000..9f41149b--- /dev/null+++ b/content/docs/primitives/code-accordion.mdx@@ -0,0 +1,107 @@+---+title: Code Accordion+description: A code window that springs a range of lines closed and replaces them with a "N lines collapsed" placeholder.+---++A code primitive for fixing camera attention. The window starts fully open, then a single spring drives the height of a wrapped range from `lineCount * lineHeight` down to one line, fading the original code out and the placeholder in. Because both inner content and the bar share the same spring, the bottom of the window snaps up with the same micro-bounce — the accordion feels like it has weight.++<ComponentPreview name="code-accordion" />++## Installation++<InstallBlock name="code-accordion" />++## Usage++```tsx+import { CodeAccordion } from "@/components/remocn/code-accordion";++<CodeAccordion+ lines={fileContents.split("\n")}+ collapseRange={[3, 14]}+ collapseAt={30}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "lines",+ type: "string[]",+ description: "Lines of code to render. Pre-split into an array.",+ },+ {+ name: "collapseRange",+ type: "[number, number]",+ default: "[3, 14]",+ description: "Inclusive 0-based start and end line indices that will collapse.",+ },+ {+ name: "collapseAt",+ type: "number",+ default: "30",+ description: "Frame at which the collapse spring fires.",+ },+ {+ name: "title",+ type: "string",+ default: "\"process-orders.ts\"",+ description: "Filename shown in the chrome bar.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "16",+ description: "Code font size in pixels.",+ },+ {+ name: "width",+ type: "number",+ default: "720",+ description: "Window width in pixels.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#050505\"",+ description: "Page background color.",+ },+ {+ name: "cardColor",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Editor surface color.",+ },+ {+ name: "textColor",+ type: "string",+ default: "\"#e4e4e7\"",+ description: "Code color.",+ },+ {+ name: "mutedColor",+ type: "string",+ default: "\"#52525b\"",+ description: "Line numbers and placeholder bar color.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ ]}+/>++## Notes++<Note title="One spring, many properties">+ A single `spring()` with `damping: 10` drives the inner height, original-code opacity, placeholder opacity, and the window's effective height all from one value. Animating from a single source is what makes the bounce feel coherent.+</Note>diff --git a/content/docs/primitives/cursor-flow.mdx b/content/docs/primitives/cursor-flow.mdxnew file mode 100644index 00000000..8bc96a3c--- /dev/null+++ b/content/docs/primitives/cursor-flow.mdx@@ -0,0 +1,90 @@+---+title: Cursor Flow+description: A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.+---++A more sophisticated cousin of `SimulatedCursor`. Instead of moving on straight lines between waypoints, the cursor follows per-segment cubic Bezier curves whose control points are offset perpendicular to the chord, so the trajectory always has a "belly". An ease-in-out function shapes velocity inside each segment so the cursor accelerates, glides, and decelerates before arrival. At click moments, an independent spring drives a hard 4-frame `1 → 0.85 → 1` press while the click target dips to `0.98` in sync — that's the moment that sells the impact.++<ComponentPreview name="cursor-flow" />++## Installation++<InstallBlock name="cursor-flow" />++## Usage++```tsx+import { CursorFlow } from "@/components/remocn/cursor-flow";++<CursorFlow+ waypoints={[+ { x: 200, y: 180 },+ { x: 540, y: 240, click: true, label: "Generate" },+ { x: 880, y: 360, hold: 8 },+ { x: 1040, y: 520, click: true, label: "Publish" },+ ]}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "waypoints",+ type: "CursorWaypoint[]",+ description: "Ordered list of points the cursor visits. Each waypoint has `x`, `y`, and optional `hold`, `click`, and `label`.",+ },+ {+ name: "cursorColor",+ type: "string",+ default: "\"#fafafa\"",+ description: "Cursor SVG fill color.",+ },+ {+ name: "cursorSize",+ type: "number",+ default: "28",+ description: "Cursor SVG side length in pixels.",+ },+ {+ name: "segmentDuration",+ type: "number",+ default: "36",+ description: "Frames spent traversing one segment between two waypoints.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Page background color.",+ },+ {+ name: "showTargets",+ type: "boolean",+ default: "true",+ description: "Render the click target chips at clickable waypoints.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ ]}+/>++## Notes++<Note title="The arc is the point">+ Per-segment perpendicular control points alternate sign every other segment so the path snakes naturally. If you flatten the offset to 0 you get robotic straight lines — keep it.+</Note>++<Warning title="No d3-shape">+ Curves are computed inline with a small `cubicBezier` evaluator to avoid pulling in `d3-shape` (~30KB) just for path math.+</Warning>diff --git a/content/docs/primitives/data-flow-pipes.mdx b/content/docs/primitives/data-flow-pipes.mdxnew file mode 100644index 00000000..5940bed3--- /dev/null+++ b/content/docs/primitives/data-flow-pipes.mdx@@ -0,0 +1,106 @@+---+title: Data Flow Pipes+description: Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.+---++A diagramming primitive for showing data moving through a system. Nodes are positioned absolutely; edges become SVG cubic-bezier paths with horizontally-pulled handles so the routes look like API/DB diagrams instead of straight wires. Each pulse is rendered as a bright dash that animates along the path via `strokeDashoffset`, with three faded ghost copies offset behind it to fake motion blur. Path arc length is sampled numerically (no DOM `getTotalLength`), so the math is fully render-deterministic.++<ComponentPreview name="data-flow-pipes" />++## Installation++<InstallBlock name="data-flow-pipes" />++## Usage++```tsx+import { DataFlowPipes } from "@/components/remocn/data-flow-pipes";++<DataFlowPipes+ nodes={[+ { id: "client", x: 140, y: 360, label: "Client" },+ { id: "api", x: 460, y: 200, label: "API" },+ { id: "db", x: 820, y: 360, label: "Database" },+ ]}+ edges={[+ { from: "client", to: "api", startFrame: 0 },+ { from: "api", to: "db", startFrame: 18 },+ ]}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "nodes",+ type: "DataFlowNode[]",+ description: "Array of `{ id, x, y, label }`. Coordinates are in the 1280×720 viewBox.",+ },+ {+ name: "edges",+ type: "DataFlowEdge[]",+ description: "Array of `{ from, to, startFrame }`. Each edge becomes a static pipe plus an animated pulse.",+ },+ {+ name: "pipeColor",+ type: "string",+ default: "\"#1f1f23\"",+ description: "Color of the static pipe stroke.",+ },+ {+ name: "pulseColor",+ type: "string",+ default: "\"#22d3ee\"",+ description: "Color of the moving pulse and its glow.",+ },+ {+ name: "pulseLength",+ type: "number",+ default: "60",+ description: "Length of the bright dash in pixels.",+ },+ {+ name: "pulseDuration",+ type: "number",+ default: "36",+ description: "Frames a single pulse takes to traverse its edge.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#050505\"",+ description: "Page background color.",+ },+ {+ name: "nodeColor",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Node card background color.",+ },+ {+ name: "textColor",+ type: "string",+ default: "\"#fafafa\"",+ description: "Node label color.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ ]}+/>++## Notes++<Note title="Stagger by `startFrame`">+ Each edge has its own `startFrame`. Stagger them in increments of 8–12 frames to create a chain reaction across the diagram.+</Note>diff --git a/content/docs/primitives/glass-code-block.mdx b/content/docs/primitives/glass-code-block.mdxnew file mode 100644index 00000000..af8f08a7--- /dev/null+++ b/content/docs/primitives/glass-code-block.mdx@@ -0,0 +1,104 @@+---+title: Glass Code Block+description: A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.+---++A code window primitive that ditches the flat black rectangle look. The card uses `backdrop-filter: blur()` over a slow animated aura for real refraction; a 1px linear-gradient ring fakes a top-edge highlight; macOS-style traffic lights are dimmed to 60% so they don't shout. Lines fade in one after another with a tiny upward slide via `Sequence`. Syntax highlighting is a small built-in regex tokenizer — no `highlight.js` dependency.++<ComponentPreview name="glass-code-block" />++## Installation++<InstallBlock name="glass-code-block" />++## Usage++```tsx+import { GlassCodeBlock } from "@/components/remocn/glass-code-block";++<GlassCodeBlock+ title="hero.tsx"+ code={`export function Hero() {\n return <h1>Hello</h1>;\n}`}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "code",+ type: "string",+ description: "Source code to render. Newlines split into lines.",+ },+ {+ name: "title",+ type: "string",+ default: "\"hero.tsx\"",+ description: "Filename shown in the chrome bar.",+ },+ {+ name: "width",+ type: "number",+ default: "760",+ description: "Window width in pixels.",+ },+ {+ name: "height",+ type: "number",+ default: "460",+ description: "Window height in pixels.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "16",+ description: "Code font size in pixels.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Background color around the window.",+ },+ {+ name: "glassColor",+ type: "string",+ default: "\"rgba(10, 10, 10, 0.6)\"",+ description: "Card surface color. Keep alpha < 1 for glass refraction.",+ },+ {+ name: "staggerFrames",+ type: "number",+ default: "4",+ description: "Frames between each line's reveal.",+ },+ {+ name: "showTrafficLights",+ type: "boolean",+ default: "true",+ description: "Show the dimmed macOS-style window controls.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ ]}+/>++## Notes++<Note title="Tokenizer scope">+ The built-in tokenizer covers JS/TS keywords, strings, numbers, and `//` comments. It is intentionally not a full parser — for richer highlighting, replace `tokenizeLine` with your own and keep the same `Token` shape.+</Note>++<Warning title="Backdrop filter requires content behind">+ The frosted glass effect only shows refraction if there is something behind it. The component renders a slow built-in aura. If you wrap it inside another scene, make sure that scene has visual content.+</Warning>diff --git a/content/docs/primitives/infinite-marquee.mdx b/content/docs/primitives/infinite-marquee.mdxnew file mode 100644index 00000000..cf4915ff--- /dev/null+++ b/content/docs/primitives/infinite-marquee.mdx@@ -0,0 +1,96 @@+---+title: Infinite Marquee+description: A continuously scrolling horizontal text strip that loops seamlessly.+---++A typography primitive that translates a row of duplicated text spans on the X axis at a fixed pixel-per-frame rate. The offset is taken `mod` the approximate width of one repetition so the loop is seamless and fully deterministic.++<ComponentPreview name="infinite-marquee" />++## Installation++<InstallBlock name="infinite-marquee" />++## Usage++```tsx+import { InfiniteMarquee } from "@/components/remocn/infinite-marquee";++<InfiniteMarquee text="ship · build · animate · " pixelsPerFrame={4} stroke />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ default: "\"ship · build · animate · \"",+ description: "Text repeated across the marquee. Include trailing whitespace or punctuation for spacing.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "120",+ description: "Font size in pixels.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color when `stroke` is false.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "900",+ description: "CSS font-weight.",+ },+ {+ name: "pixelsPerFrame",+ type: "number",+ default: "4",+ description: "Horizontal scroll speed in pixels per frame.",+ },+ {+ name: "stroke",+ type: "boolean",+ default: "false",+ description: "Render outlined text via `-webkit-text-stroke` instead of filled.",+ },+ {+ name: "strokeColor",+ type: "string",+ default: "\"#171717\"",+ description: "Stroke color used when `stroke` is true.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#fafafa\"",+ description: "Background color of the root container.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the translating row.",+ },+ ]}+/>++## Notes++<Note title="Seamless looping">+ Width is approximated as `text.length * fontSize * 0.55`. For very wide or very narrow fonts you may see a small jump on loop — tweak the multiplier to match your typeface, or pass a longer `text` to make any seam imperceptible.+</Note>++<Warning title="No layout reads">+ This component intentionally avoids `useRef` / measurement so it stays render-deterministic. If you need pixel-perfect looping for a specific font, hard-code the repetition width via `text` length and `fontSize`.+</Warning>diff --git a/content/docs/primitives/marker-highlight.mdx b/content/docs/primitives/marker-highlight.mdxnew file mode 100644index 00000000..4399b5f4--- /dev/null+++ b/content/docs/primitives/marker-highlight.mdx@@ -0,0 +1,97 @@+---+title: Marker Highlight+description: A colored marker block draws behind a phrase while the text color shifts.+---++A typography primitive that mimics a physical highlighter sweeping behind a word. The colored block grows from left to right via a spring, and the target text color interpolates to a contrast color.++<ComponentPreview name="marker-highlight" />++## Installation++<InstallBlock name="marker-highlight" />++## Usage++```tsx+import { MarkerHighlight } from "@/components/remocn/marker-highlight";++<MarkerHighlight+ before="Ship it "+ highlight="fast"+ after="."+ markerColor="#facc15"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "before",+ type: "string",+ default: "\"\"",+ description: "Text that appears before the highlighted phrase.",+ },+ {+ name: "highlight",+ type: "string",+ required: true,+ description: "The phrase the marker draws behind.",+ },+ {+ name: "after",+ type: "string",+ default: "\"\"",+ description: "Text that appears after the highlighted phrase.",+ },+ {+ name: "markerColor",+ type: "string",+ default: "\"#facc15\"",+ description: "Color of the marker block.",+ },+ {+ name: "baseColor",+ type: "string",+ default: "\"#171717\"",+ description: "Color of the surrounding text.",+ },+ {+ name: "highlightedTextColor",+ type: "string",+ default: "\"#171717\"",+ description: "Final color of the highlighted phrase once the marker is drawn.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "72",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier for animation speed.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer text span.",+ },+ ]}+/>++## Notes++<Note title="Pick a contrast color">+ For the classic marker effect, keep `markerColor` bright and leave `highlightedTextColor` dark. Or invert both for a neon look on dark backgrounds.+</Note>diff --git a/content/docs/primitives/masked-slide-reveal.mdx b/content/docs/primitives/masked-slide-reveal.mdxnew file mode 100644index 00000000..e92319a4--- /dev/null+++ b/content/docs/primitives/masked-slide-reveal.mdx@@ -0,0 +1,74 @@+---+title: Masked Slide Reveal+description: Words rise out of an invisible horizontal mask with a springy motion.+---++A strict, architectural typography primitive: each word is wrapped in a fixed-height container with `overflow: hidden`, and the inner span springs upward from `translateY(100%)` to `0`. The result is text that grows out of an invisible baseline.++<ComponentPreview name="masked-slide-reveal" />++## Installation++<InstallBlock name="masked-slide-reveal" />++## Usage++```tsx+import { MaskedSlideReveal } from "@/components/remocn/masked-slide-reveal";++<MaskedSlideReveal text="Built for Remotion" />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The text to animate. Split on spaces into words.",+ },+ {+ name: "staggerDelay",+ type: "number",+ default: "3",+ description: "Frames between the start of each word's spring animation.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "72",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "700",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color (any valid CSS color).",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier (1 = normal, 2 = twice as fast).",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying span.",+ },+ ]}+/>++## Notes++<Note title="Mind descenders">+ The mask uses `lineHeight: 1`, which clips letter descenders (g, y, p) by design. If you need extra room, wrap the component in your own container with padding.+</Note>diff --git a/content/docs/primitives/matrix-decode.mdx b/content/docs/primitives/matrix-decode.mdxnew file mode 100644index 00000000..c163b3bb--- /dev/null+++ b/content/docs/primitives/matrix-decode.mdx@@ -0,0 +1,80 @@+---+title: Matrix Decode+description: Random scramble resolves left-to-right into target text.+---++A typography primitive that starts as a stream of random symbols and decodes character by character into the target text. Perfect for DevTools, cybersecurity, and AI reveal moments.++<ComponentPreview name="matrix-decode" />++## Installation++<InstallBlock name="matrix-decode" />++## Usage++```tsx+import { MatrixDecode } from "@/components/remocn/matrix-decode";++<MatrixDecode text="ACCESS GRANTED" revealDuration={60} />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The final text the scramble resolves into.",+ },+ {+ name: "charset",+ type: "string",+ default: "\"!@#$%^&*()_+-=<>?/\\\\|\"",+ description: "Pool of characters used while scrambling.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "72",+ description: "Font size in pixels.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#22c55e\"",+ description: "Text color.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "revealDuration",+ type: "number",+ default: "60",+ description: "How many frames it takes for the full text to decode.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier for animation speed.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the text span.",+ },+ ]}+/>++## Notes++<Note title="Deterministic randomness">+ Uses Remotion's `random(seed)` keyed on character index and frame, so scrambled glyphs are stable across renders — no flicker between frames.+</Note>diff --git a/content/docs/primitives/meta.json b/content/docs/primitives/meta.jsonindex c0eb02bb..3b74bc68 100644--- a/content/docs/primitives/meta.json+++ b/content/docs/primitives/meta.json@@ -6,6 +6,23 @@"typewriter","inline-highlight","text-fade-replace",- "strikethrough-replace"+ "strikethrough-replace",+ "staggered-fade-up",+ "masked-slide-reveal",+ "tracking-in",+ "shimmer-sweep",+ "marker-highlight",+ "slot-machine-roll",+ "matrix-decode",+ "rgb-glitch-text",+ "video-mask-text",+ "infinite-marquee",+ "perspective-marquee",+ "spotlight-card",+ "glass-code-block",+ "code-accordion",+ "cursor-flow",+ "data-flow-pipes",+ "morphing-modal",]}diff --git a/content/docs/primitives/morphing-modal.mdx b/content/docs/primitives/morphing-modal.mdxnew file mode 100644index 00000000..d10e856b--- /dev/null+++ b/content/docs/primitives/morphing-modal.mdx@@ -0,0 +1,137 @@+---+title: Morphing Modal+description: A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.+---++The most expensive transition in the kit. Five properties — `top`, `left`, `width`, `height`, and `borderRadius` — are all driven by **one** spring with high mass and low stiffness so the modal "blooms" instead of jumping. The source card's content fades out in the first third of the morph, the modal's content fades in (with a 20px translateY) only in the last third — that asymmetric handoff is what stops it from feeling like a cheap slideshow. Backdrop dims in lockstep with the spring.++<ComponentPreview name="morphing-modal" />++## Installation++<InstallBlock name="morphing-modal" />++## Usage++```tsx+import { MorphingModal } from "@/components/remocn/morphing-modal";++<MorphingModal+ from={{ left: 460, top: 260, width: 360, height: 200 }}+ to={{ left: 80, top: 60, width: 1120, height: 600 }}+ morphAt={30}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "{ top, left, width, height }",+ description: "Source rect of the card before it blooms.",+ },+ {+ name: "to",+ type: "{ top, left, width, height }",+ description: "Target rect of the modal. Defaults to a near-fullscreen sheet.",+ },+ {+ name: "borderRadiusFrom",+ type: "number",+ default: "24",+ description: "Border radius of the source card in pixels.",+ },+ {+ name: "borderRadiusTo",+ type: "number",+ default: "0",+ description: "Border radius of the modal in pixels.",+ },+ {+ name: "morphAt",+ type: "number",+ default: "30",+ description: "Frame at which the morph spring fires.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#050505\"",+ description: "Page background color.",+ },+ {+ name: "cardColor",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Card / modal surface color.",+ },+ {+ name: "textColor",+ type: "string",+ default: "\"#fafafa\"",+ description: "Heading color in source and modal.",+ },+ {+ name: "mutedColor",+ type: "string",+ default: "\"#71717a\"",+ description: "Body copy color.",+ },+ {+ name: "sourceTitle",+ type: "string",+ default: "\"Compose video\"",+ description: "Heading shown on the source card.",+ },+ {+ name: "sourceBody",+ type: "string",+ default: "\"Click to start a new project\"",+ description: "Body copy shown on the source card.",+ },+ {+ name: "modalTitle",+ type: "string",+ default: "\"New project\"",+ description: "Heading shown after the morph completes.",+ },+ {+ name: "modalBody",+ type: "string",+ description: "Body copy shown after the morph completes.",+ },+ {+ name: "source",+ type: "ReactNode",+ description: "Override the default source card content.",+ },+ {+ name: "modal",+ type: "ReactNode",+ description: "Override the default modal content.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ ]}+/>++## Notes++<Note title="One spring, five properties">+ Animating each rect property from a single spring value is the trick — independent springs would drift out of phase and the morph would feel jelly-like in the worst way.+</Note>++<Warning title="Asymmetric content fade">+ Source content fades over `[0, 0.33]`, modal content arrives over `[0.66, 1]`. Don't overlap them — the empty middle third is what makes the bloom feel intentional.+</Warning>diff --git a/content/docs/primitives/perspective-marquee.mdx b/content/docs/primitives/perspective-marquee.mdxnew file mode 100644index 00000000..b9bf72c7--- /dev/null+++ b/content/docs/primitives/perspective-marquee.mdx@@ -0,0 +1,112 @@+---+title: Perspective Marquee+description: A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.+---++A typography primitive that takes the seamless modulo-based loop from `InfiniteMarquee` and tilts it in 3D space using CSS `perspective` and `rotateX/Y`. Items further from the viewport center receive progressively heavier `filter: blur()` and lower opacity, mimicking depth of field. Edge vignettes fade the marquee into the background so the loop is invisible.++<ComponentPreview name="perspective-marquee" />++## Installation++<InstallBlock name="perspective-marquee" />++## Usage++```tsx+import { PerspectiveMarquee } from "@/components/remocn/perspective-marquee";++<PerspectiveMarquee+ items={["Vercel", "Linear", "Stripe", "Figma"]}+ rotateY={-28}+ pixelsPerFrame={2}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "items",+ type: "string[]",+ default: "[\"Vercel\", \"Linear\", \"Stripe\", \"Figma\", \"Notion\", \"Raycast\", \"Arc\", \"Cursor\"]",+ description: "Items rendered in the marquee. Repeated three times under the hood for a seamless loop.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "84",+ description: "Font size in pixels.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#fafafa\"",+ description: "Text color of each item.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "700",+ description: "CSS font-weight.",+ },+ {+ name: "pixelsPerFrame",+ type: "number",+ default: "2",+ description: "Horizontal scroll speed in pixels per frame.",+ },+ {+ name: "rotateY",+ type: "number",+ default: "-28",+ description: "Y-axis rotation in degrees applied to the marquee row.",+ },+ {+ name: "rotateX",+ type: "number",+ default: "8",+ description: "X-axis rotation in degrees applied to the marquee row.",+ },+ {+ name: "perspective",+ type: "number",+ default: "1200",+ description: "CSS perspective in pixels on the parent.",+ },+ {+ name: "fadeColor",+ type: "string",+ default: "\"#050505\"",+ description: "Color used in the edge vignette gradients.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#050505\"",+ description: "Root container background color.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ ]}+/>++## Notes++<Note title="Slow is hypnotic">+ Keep `pixelsPerFrame` between 1 and 3. The 3D tilt amplifies perceived speed — anything faster reads as motion sickness.+</Note>++<Warning title="Match `fadeColor` to `background`">+ The vignette assumes `fadeColor === background`. If they differ you will see hard edges where the marquee ends and the background begins.+</Warning>diff --git a/content/docs/primitives/rgb-glitch-text.mdx b/content/docs/primitives/rgb-glitch-text.mdxnew file mode 100644index 00000000..0e32adb2--- /dev/null+++ b/content/docs/primitives/rgb-glitch-text.mdx@@ -0,0 +1,96 @@+---+title: RGB Glitch Text+description: Three RGB-offset text copies jitter for a few frames to create a chromatic aberration glitch.+---++A typography primitive that stacks red, green, and blue copies of the same text and offsets them on each frame during a short glitch window. Uses `random(seed)` from Remotion so the jitter is fully deterministic across renders.++<ComponentPreview name="rgb-glitch-text" />++## Installation++<InstallBlock name="rgb-glitch-text" />++## Usage++```tsx+import { RGBGlitchText } from "@/components/remocn/rgb-glitch-text";++<RGBGlitchText text="SYSTEM" glitchAt={20} glitchDuration={8} intensity={6} />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The text to display and glitch.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "96",+ description: "Font size in pixels.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Base text color (visible at all times).",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "700",+ description: "CSS font-weight.",+ },+ {+ name: "glitchAt",+ type: "number",+ default: "20",+ description: "Frame at which the glitch starts.",+ },+ {+ name: "glitchDuration",+ type: "number",+ default: "8",+ description: "Duration of the glitch window in frames.",+ },+ {+ name: "intensity",+ type: "number",+ default: "6",+ description: "Maximum offset (in pixels) for the RGB copies.",+ },+ {+ name: "seed",+ type: "string",+ default: "\"glitch\"",+ description: "Seed used by `random()` so the jitter stays deterministic.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier (1 = normal, 2 = twice as fast).",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the inline-block wrapper.",+ },+ ]}+/>++## Notes++<Note title="Determinism">+ The RGB offsets use `random(seed)` from `remotion`, never `Math.random()`. The same `seed` and `frame` always produce the same offset, so the glitch renders identically on every frame.+</Note>++<Warning title="Light backgrounds only">+ The RGB copies use `mixBlendMode: "multiply"` so they read correctly on a light background. On a dark background you'll want to switch to `screen` or stack opaque copies instead.+</Warning>diff --git a/content/docs/primitives/shimmer-sweep.mdx b/content/docs/primitives/shimmer-sweep.mdxnew file mode 100644index 00000000..b800cc5e--- /dev/null+++ b/content/docs/primitives/shimmer-sweep.mdx@@ -0,0 +1,74 @@+---+title: Shimmer Sweep+description: A bright shine travels across muted text to draw attention.+---++A typography primitive that layers a gradient shine on top of muted base text using `background-clip: text`. The gradient sweeps horizontally across the text, lighting up letters as it passes. Great for AI and generation moments.++<ComponentPreview name="shimmer-sweep" />++## Installation++<InstallBlock name="shimmer-sweep" />++## Usage++```tsx+import { ShimmerSweep } from "@/components/remocn/shimmer-sweep";++<ShimmerSweep text="Generating..." fontSize={96} />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The text to animate the shine across.",+ },+ {+ name: "baseColor",+ type: "string",+ default: "\"#3f3f46\"",+ description: "Dim color of the text underneath the shine.",+ },+ {+ name: "shineColor",+ type: "string",+ default: "\"#fafafa\"",+ description: "Color of the moving highlight gradient.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "96",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "700",+ description: "CSS font-weight.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier for animation speed.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the shine span.",+ },+ ]}+/>++## Notes++<Note title="Background-clip support">+ This effect relies on `background-clip: text`. It works in all modern browsers and Remotion's Chromium renderer.+</Note>diff --git a/content/docs/primitives/slot-machine-roll.mdx b/content/docs/primitives/slot-machine-roll.mdxnew file mode 100644index 00000000..d42338c5--- /dev/null+++ b/content/docs/primitives/slot-machine-roll.mdx@@ -0,0 +1,78 @@+---+title: Slot Machine Roll+description: Vertical reel scrolls each character from an old value to a new value.+---++A typography primitive that animates changing values (prices, counters, statuses) as a vertical reel. Each character column rolls independently with a staggered spring, giving a slot-machine feel.++<ComponentPreview name="slot-machine-roll" />++## Installation++<InstallBlock name="slot-machine-roll" />++## Usage++```tsx+import { SlotMachineRoll } from "@/components/remocn/slot-machine-roll";++<SlotMachineRoll from="$99" to="$199" fontSize={120} />+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "string",+ default: "\"$99\"",+ description: "Starting value shown before the reel rolls.",+ },+ {+ name: "to",+ type: "string",+ default: "\"$199\"",+ description: "Target value the reel settles on.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "120",+ description: "Font size in pixels. Used to compute reel travel distance.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "700",+ description: "CSS font-weight.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier for animation speed.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer text span.",+ },+ ]}+/>++## Notes++<Note title="Right-aligned by design">+ `from` and `to` are left-padded with spaces to the same length so digits align on the right. This matches how prices and counters read.+</Note>++<Warning title="Monospaced digits recommended">+ Each column is a fixed width (`0.7em`). If you use a proportional font, wide characters like `W` may get clipped. Use a mono font or characters of similar width.+</Warning>diff --git a/content/docs/primitives/spotlight-card.mdx b/content/docs/primitives/spotlight-card.mdxnew file mode 100644index 00000000..44deebac--- /dev/null+++ b/content/docs/primitives/spotlight-card.mdx@@ -0,0 +1,109 @@+---+title: Spotlight Card+description: A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.+---++A bento-style card primitive in the dark. A virtual cursor traces a slow Lissajous figure-8 across the card surface; under it, a wide radial gradient softly lights the inside while a brighter, narrower gradient bleeds through a 1px wrapper to pick out the microborder. The cursor lags by exactly one frame so the highlight feels organic instead of robotic.++<ComponentPreview name="spotlight-card" />++## Installation++<InstallBlock name="spotlight-card" />++## Usage++```tsx+import { SpotlightCard } from "@/components/remocn/spotlight-card";++<SpotlightCard title="Your feature" body="Two-line description goes here." />+```++## Props++<PropsTable+ rows={[+ {+ name: "title",+ type: "string",+ default: "\"Spotlight Card\"",+ description: "Heading shown when no children are provided.",+ },+ {+ name: "body",+ type: "string",+ default: "\"Soft radial light follows the cursor, picking out the microborder.\"",+ description: "Body copy shown when no children are provided.",+ },+ {+ name: "cardWidth",+ type: "number",+ default: "520",+ description: "Card width in pixels.",+ },+ {+ name: "cardHeight",+ type: "number",+ default: "320",+ description: "Card height in pixels.",+ },+ {+ name: "glowSize",+ type: "number",+ default: "600",+ description: "Diameter (px) of the radial spotlight.",+ },+ {+ name: "glowOpacity",+ type: "number",+ default: "0.08",+ description: "Maximum alpha of the surface glow. Keep this low to stay lunar.",+ },+ {+ name: "background",+ type: "string",+ default: "\"#050505\"",+ description: "Page background color around the card.",+ },+ {+ name: "cardColor",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Card surface color.",+ },+ {+ name: "textColor",+ type: "string",+ default: "\"#fafafa\"",+ description: "Heading color.",+ },+ {+ name: "mutedColor",+ type: "string",+ default: "\"#71717a\"",+ description: "Body copy color.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the root container.",+ },+ {+ name: "children",+ type: "ReactNode",+ description: "Override the default title/body slot with custom content.",+ },+ ]}+/>++## Notes++<Note title="Keep the light cold">+ Use white or near-white glow at very low opacity (0.05–0.1). Brand-colored glow tends to read as cheap when amplified by the radial gradient.+</Note>diff --git a/content/docs/primitives/staggered-fade-up.mdx b/content/docs/primitives/staggered-fade-up.mdxnew file mode 100644index 00000000..4064f505--- /dev/null+++ b/content/docs/primitives/staggered-fade-up.mdx@@ -0,0 +1,80 @@+---+title: Staggered Fade Up+description: Words slide up and fade in sequentially with a wave-like cascade.+---++A typography primitive that splits text into words and animates each one with a small delay, sliding up from a configurable distance while fading in. Great for hero titles and intro shots.++<ComponentPreview name="staggered-fade-up" />++## Installation++<InstallBlock name="staggered-fade-up" />++## Usage++```tsx+import { StaggeredFadeUp } from "@/components/remocn/staggered-fade-up";++<StaggeredFadeUp text="Ship videos faster" staggerDelay={4} />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The text to animate. Split on spaces into words.",+ },+ {+ name: "staggerDelay",+ type: "number",+ default: "4",+ description: "Frames between the start of each word's animation.",+ },+ {+ name: "distance",+ type: "number",+ default: "20",+ description: "Vertical distance in pixels each word travels upward.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "72",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color (any valid CSS color).",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier (1 = normal, 2 = twice as fast).",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying span.",+ },+ ]}+/>++## Notes++<Note title="Tune the stagger">+ A smaller `staggerDelay` (2-3 frames) feels punchy, larger values (6-8) feel cinematic. Pair with `speed` to fit your composition's pacing.+</Note>diff --git a/content/docs/primitives/tracking-in.mdx b/content/docs/primitives/tracking-in.mdxnew file mode 100644index 00000000..e6f3b752--- /dev/null+++ b/content/docs/primitives/tracking-in.mdx@@ -0,0 +1,84 @@+---+title: Tracking In+description: Letter-spacing collapses and blur clears with a springy entrance.+---++A typography primitive that starts text with a wide `letter-spacing` and a heavy blur, then springs both back to normal. The result is a tight, premium-feeling title reveal.++<ComponentPreview name="tracking-in" />++## Installation++<InstallBlock name="tracking-in" />++## Usage++```tsx+import { TrackingIn } from "@/components/remocn/tracking-in";++<TrackingIn text="REMOCN" startTracking={0.6} startBlur={14} />+```++## Props++<PropsTable+ rows={[+ {+ name: "text",+ type: "string",+ required: true,+ description: "The text to animate.",+ },+ {+ name: "startTracking",+ type: "number",+ default: "0.5",+ description: "Initial letter-spacing in em. Animates down to -0.03em.",+ },+ {+ name: "startBlur",+ type: "number",+ default: "12",+ description: "Initial blur radius in pixels. Animates down to 0.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "96",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "700",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color (any valid CSS color).",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Playback speed multiplier (1 = normal, 2 = twice as fast).",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying span.",+ },+ ]}+/>++## Notes++<Note title="Load fonts before render">+ Make sure your font is loaded before the first frame renders. Use [`@remotion/google-fonts`](https://www.remotion.dev/docs/google-fonts) so the blur and tracking effects don't apply to a fallback system font.+</Note>++<Warning title="Overflow">+ Wide initial tracking can push text outside the container. Either reduce `startTracking`, lower `fontSize`, or wrap the component in a parent with `overflow: hidden`.+</Warning>diff --git a/lib/customizer-config.ts b/lib/customizer-config.tsindex 51a3ebed..a49e504a 100644--- a/lib/customizer-config.ts+++ b/lib/customizer-config.ts@@ -1,13 +1,13 @@export type ControlType =| { type: "text"; default: string; label: string }| {- type: "number";- default: number;- min: number;- max: number;- step: number;- label: string;- }+ type: "number";+ default: number;+ min: number;+ max: number;+ step: number;+ label: string;+ }| { type: "color"; default: string; label: string }| { type: "select"; default: string; options: string[]; label: string }| { type: "boolean"; default: boolean; label: string };@@ -36,6 +36,21 @@ const W = 1280;const H = 720;const FONT_WEIGHT_OPTIONS = ["400", "500", "600", "700"];+/**+ * Controls present on every animation. Spread first so that local controls+ * for a specific component can override a shared default if needed.+ */+const SHARED_CONTROLS: ControlConfig = {+ speed: {+ type: "number",+ default: 1,+ min: 0.25,+ max: 4,+ step: 0.25,+ label: "Speed",+ },+};+export const componentConfigs: Record<string, ComponentConfig> = {"blur-reveal": {componentName: "BlurReveal",@@ -58,7 +73,7 @@ export const componentConfigs: Record<string, ComponentConfig> = {controls: {text: { type: "text", default: "console.log('hello, world')", label: "Text" },cursor: { type: "boolean", default: true, label: "Show cursor" },- speed: { type: "number", default: 20, min: 4, max: 60, step: 1, label: "Speed (cps)" },+ charsPerSecond: { type: "number", default: 20, min: 4, max: 60, step: 1, label: "Chars / sec" },fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },color: { type: "color", default: "#171717", label: "Color" },cursorColor: { type: "color", default: "#171717", label: "Cursor color" },@@ -117,6 +132,301 @@ export const componentConfigs: Record<string, ComponentConfig> = {compositionWidth: W,compositionHeight: H,},+ "staggered-fade-up": {+ componentName: "StaggeredFadeUp",+ importPath: "@/components/remocn/staggered-fade-up",+ controls: {+ text: { type: "text", default: "Ship faster with remocn", label: "Text" },+ staggerDelay: { type: "number", default: 4, min: 0, max: 30, step: 1, label: "Stagger delay" },+ distance: { type: "number", default: 20, min: 0, max: 120, step: 1, label: "Distance" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "masked-slide-reveal": {+ componentName: "MaskedSlideReveal",+ importPath: "@/components/remocn/masked-slide-reveal",+ controls: {+ text: { type: "text", default: "Reveal from the mask", label: "Text" },+ staggerDelay: { type: "number", default: 3, min: 0, max: 30, step: 1, label: "Stagger delay" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "tracking-in": {+ componentName: "TrackingIn",+ importPath: "@/components/remocn/tracking-in",+ controls: {+ text: { type: "text", default: "tracking in", label: "Text" },+ startTracking: { type: "number", default: 0.5, min: 0, max: 2, step: 0.05, label: "Start tracking (em)" },+ startBlur: { type: "number", default: 12, min: 0, max: 40, step: 1, label: "Start blur" },+ fontSize: { type: "number", default: 96, min: 12, max: 200, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "shimmer-sweep": {+ componentName: "ShimmerSweep",+ importPath: "@/components/remocn/shimmer-sweep",+ controls: {+ text: { type: "text", default: "Generating", label: "Text" },+ baseColor: { type: "color", default: "#3f3f46", label: "Base color" },+ shineColor: { type: "color", default: "#fafafa", label: "Shine color" },+ fontSize: { type: "number", default: 96, min: 12, max: 200, step: 1, label: "Font size" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 120,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "marker-highlight": {+ componentName: "MarkerHighlight",+ importPath: "@/components/remocn/marker-highlight",+ controls: {+ before: { type: "text", default: "Made for ", label: "Before" },+ highlight: { type: "text", default: "builders", label: "Highlight" },+ after: { type: "text", default: ".", label: "After" },+ markerColor: { type: "color", default: "#facc15", label: "Marker color" },+ baseColor: { type: "color", default: "#171717", label: "Base color" },+ highlightedTextColor: { type: "color", default: "#171717", label: "Highlighted text color" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "slot-machine-roll": {+ componentName: "SlotMachineRoll",+ importPath: "@/components/remocn/slot-machine-roll",+ controls: {+ from: { type: "text", default: "$99", label: "From" },+ to: { type: "text", default: "$199", label: "To" },+ fontSize: { type: "number", default: 120, min: 12, max: 240, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "matrix-decode": {+ componentName: "MatrixDecode",+ importPath: "@/components/remocn/matrix-decode",+ controls: {+ text: { type: "text", default: "DECRYPTED", label: "Text" },+ charset: { type: "text", default: "!@#$%^&*()_+-=<>?/\\|", label: "Charset" },+ fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },+ color: { type: "color", default: "#22c55e", label: "Color" },+ fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ revealDuration: { type: "number", default: 60, min: 10, max: 240, step: 1, label: "Reveal duration" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "rgb-glitch-text": {+ componentName: "RGBGlitchText",+ importPath: "@/components/remocn/rgb-glitch-text",+ controls: {+ text: { type: "text", default: "GLITCH", label: "Text" },+ fontSize: { type: "number", default: 96, min: 12, max: 200, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ glitchAt: { type: "number", default: 20, min: 0, max: 120, step: 1, label: "Glitch at (frame)" },+ glitchDuration: { type: "number", default: 8, min: 1, max: 60, step: 1, label: "Glitch duration" },+ intensity: { type: "number", default: 6, min: 0, max: 30, step: 1, label: "Intensity (px)" },+ seed: { type: "text", default: "glitch", label: "Seed" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "video-mask-text": {+ componentName: "VideoMaskText",+ importPath: "@/components/remocn/video-mask-text",+ controls: {+ text: { type: "text", default: "CREATE", label: "Text" },+ posterColor: { type: "color", default: "#0ea5e9", label: "Poster color" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ fontSize: { type: "number", default: 320, min: 80, max: 600, step: 10, label: "Font size" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ zoomAt: { type: "number", default: 60, min: 0, max: 240, step: 1, label: "Zoom at (frame)" },+ zoomTo: { type: "number", default: 40, min: 1, max: 100, step: 1, label: "Zoom to (scale)" },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "infinite-marquee": {+ componentName: "InfiniteMarquee",+ importPath: "@/components/remocn/infinite-marquee",+ controls: {+ text: { type: "text", default: "ship · build · animate · ", label: "Text" },+ fontSize: { type: "number", default: 120, min: 12, max: 240, step: 1, label: "Font size" },+ color: { type: "color", default: "#171717", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ pixelsPerFrame: { type: "number", default: 4, min: 1, max: 30, step: 1, label: "Pixels / frame" },+ stroke: { type: "boolean", default: false, label: "Stroke" },+ strokeColor: { type: "color", default: "#171717", label: "Stroke color" },+ background: { type: "color", default: "#fafafa", label: "Background" },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "morphing-modal": {+ componentName: "MorphingModal",+ importPath: "@/components/remocn/morphing-modal",+ controls: {+ morphAt: { type: "number", default: 30, min: 0, max: 240, step: 1, label: "Morph at (frame)" },+ borderRadiusFrom: { type: "number", default: 24, min: 0, max: 80, step: 1, label: "Radius from" },+ borderRadiusTo: { type: "number", default: 0, min: 0, max: 80, step: 1, label: "Radius to" },+ sourceTitle: { type: "text", default: "Compose video", label: "Source title" },+ sourceBody: { type: "text", default: "Click to start a new project", label: "Source body" },+ modalTitle: { type: "text", default: "New project", label: "Modal title" },+ background: { type: "color", default: "#050505", label: "Background" },+ cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },+ textColor: { type: "color", default: "#fafafa", label: "Text color" },+ mutedColor: { type: "color", default: "#71717a", label: "Muted color" },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "data-flow-pipes": {+ componentName: "DataFlowPipes",+ importPath: "@/components/remocn/data-flow-pipes",+ controls: {+ pipeColor: { type: "color", default: "#1f1f23", label: "Pipe color" },+ pulseColor: { type: "color", default: "#22d3ee", label: "Pulse color" },+ pulseLength: { type: "number", default: 60, min: 10, max: 200, step: 5, label: "Pulse length" },+ pulseDuration: { type: "number", default: 36, min: 8, max: 120, step: 1, label: "Pulse duration" },+ background: { type: "color", default: "#050505", label: "Background" },+ nodeColor: { type: "color", default: "#0a0a0a", label: "Node color" },+ textColor: { type: "color", default: "#fafafa", label: "Text color" },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "cursor-flow": {+ componentName: "CursorFlow",+ importPath: "@/components/remocn/cursor-flow",+ controls: {+ cursorColor: { type: "color", default: "#fafafa", label: "Cursor color" },+ cursorSize: { type: "number", default: 28, min: 12, max: 64, step: 1, label: "Cursor size" },+ segmentDuration: { type: "number", default: 36, min: 8, max: 120, step: 1, label: "Segment duration" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ showTargets: { type: "boolean", default: true, label: "Show targets" },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "code-accordion": {+ componentName: "CodeAccordion",+ importPath: "@/components/remocn/code-accordion",+ controls: {+ title: { type: "text", default: "process-orders.ts", label: "Title" },+ collapseAt: { type: "number", default: 30, min: 0, max: 240, step: 1, label: "Collapse at (frame)" },+ fontSize: { type: "number", default: 16, min: 10, max: 28, step: 1, label: "Font size" },+ width: { type: "number", default: 720, min: 320, max: 1100, step: 10, label: "Width" },+ background: { type: "color", default: "#050505", label: "Background" },+ cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },+ textColor: { type: "color", default: "#e4e4e7", label: "Text color" },+ mutedColor: { type: "color", default: "#52525b", label: "Muted color" },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "glass-code-block": {+ componentName: "GlassCodeBlock",+ importPath: "@/components/remocn/glass-code-block",+ controls: {+ title: { type: "text", default: "hero.tsx", label: "Title" },+ width: { type: "number", default: 760, min: 300, max: 1100, step: 10, label: "Width" },+ height: { type: "number", default: 460, min: 200, max: 700, step: 10, label: "Height" },+ fontSize: { type: "number", default: 16, min: 10, max: 28, step: 1, label: "Font size" },+ background: { type: "color", default: "#0a0a0a", label: "Background" },+ glassColor: { type: "text", default: "rgba(10, 10, 10, 0.6)", label: "Glass color" },+ staggerFrames: { type: "number", default: 4, min: 0, max: 30, step: 1, label: "Stagger frames" },+ showTrafficLights: { type: "boolean", default: true, label: "Traffic lights" },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "spotlight-card": {+ componentName: "SpotlightCard",+ importPath: "@/components/remocn/spotlight-card",+ controls: {+ title: { type: "text", default: "Spotlight Card", label: "Title" },+ body: {+ type: "text",+ default: "Soft radial light follows the cursor, picking out the microborder.",+ label: "Body",+ },+ cardWidth: { type: "number", default: 520, min: 200, max: 900, step: 10, label: "Card width" },+ cardHeight: { type: "number", default: 320, min: 160, max: 700, step: 10, label: "Card height" },+ glowSize: { type: "number", default: 600, min: 100, max: 1400, step: 20, label: "Glow size" },+ glowOpacity: { type: "number", default: 0.08, min: 0, max: 0.4, step: 0.01, label: "Glow opacity" },+ background: { type: "color", default: "#050505", label: "Background" },+ cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },+ textColor: { type: "color", default: "#fafafa", label: "Text color" },+ mutedColor: { type: "color", default: "#71717a", label: "Muted color" },+ },+ durationInFrames: 240,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },+ "perspective-marquee": {+ componentName: "PerspectiveMarquee",+ importPath: "@/components/remocn/perspective-marquee",+ controls: {+ fontSize: { type: "number", default: 84, min: 24, max: 200, step: 2, label: "Font size" },+ color: { type: "color", default: "#fafafa", label: "Color" },+ fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },+ pixelsPerFrame: { type: "number", default: 2, min: 0.25, max: 10, step: 0.25, label: "Pixels / frame" },+ rotateY: { type: "number", default: -28, min: -60, max: 60, step: 1, label: "Rotate Y (deg)" },+ rotateX: { type: "number", default: 8, min: -30, max: 30, step: 1, label: "Rotate X (deg)" },+ perspective: { type: "number", default: 1200, min: 400, max: 3000, step: 50, label: "Perspective" },+ fadeColor: { type: "color", default: "#050505", label: "Fade color" },+ background: { type: "color", default: "#050505", label: "Background" },+ },+ durationInFrames: 240,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+ },"mesh-gradient-bg": {componentName: "MeshGradientBg",importPath: "@/components/remocn/mesh-gradient-bg",@@ -183,7 +493,7 @@ export const componentConfigs: Record<string, ComponentConfig> = {controls: {color: { type: "color", default: "#22c55e", label: "Color" },size: { type: "number", default: 32, min: 8, max: 120, step: 1, label: "Size" },- speed: { type: "number", default: 8, min: 1, max: 30, step: 0.5, label: "Speed" },+ period: { type: "number", default: 8, min: 1, max: 30, step: 0.5, label: "Period (frames)" },background: { type: "color", default: "#ffffff", label: "Background" },},durationInFrames: 120,@@ -342,6 +652,7 @@ export const componentConfigs: Record<string, ComponentConfig> = {chromeColor: { type: "color", default: "#1a1a1a", label: "Chrome color" },fontSize: { type: "number", default: 18, min: 10, max: 32, step: 1, label: "Font size" },charsPerFrame: { type: "number", default: 1, min: 0.25, max: 6, step: 0.25, label: "Chars / frame" },+ chunkSize: { type: "number", default: 4, min: 1, max: 20, step: 1, label: "Chunk size" },},durationInFrames: 240,fps: FPS,@@ -442,6 +753,12 @@ export const componentConfigs: Record<string, ComponentConfig> = {},};+// Append the shared controls (e.g. `speed`) to every component config so+// every animation in the customizer exposes the same baseline knobs.+for (const cfg of Object.values(componentConfigs)) {+ cfg.controls = { ...cfg.controls, ...SHARED_CONTROLS };+}+export function getDefaults(controls: ControlConfig): Record<string, unknown> {const out: Record<string, unknown> = {};for (const [key, ctrl] of Object.entries(controls)) {diff --git a/registry.json b/registry.jsonindex 2f617b7e..5aef4cf3 100644--- a/registry.json+++ b/registry.json@@ -73,6 +73,132 @@}]},+ {+ "name": "staggered-fade-up",+ "type": "registry:component",+ "title": "Staggered Fade Up",+ "description": "Words fade in and slide up one after another with a configurable delay.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/staggered-fade-up.tsx",+ "type": "registry:component",+ "target": "components/remocn/staggered-fade-up.tsx"+ }+ ]+ },+ {+ "name": "masked-slide-reveal",+ "type": "registry:component",+ "title": "Masked Slide Reveal",+ "description": "Words slide up out of an invisible horizontal mask, one after another.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/masked-slide-reveal.tsx",+ "type": "registry:component",+ "target": "components/remocn/masked-slide-reveal.tsx"+ }+ ]+ },+ {+ "name": "tracking-in",+ "type": "registry:component",+ "title": "Tracking In",+ "description": "Letter-spacing collapses and blur clears with a springy motion.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/tracking-in.tsx",+ "type": "registry:component",+ "target": "components/remocn/tracking-in.tsx"+ }+ ]+ },+ {+ "name": "shimmer-sweep",+ "type": "registry:component",+ "title": "Shimmer Sweep",+ "description": "Light shine sweeps across muted text via background-clip:text.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/shimmer-sweep.tsx",+ "type": "registry:component",+ "target": "components/remocn/shimmer-sweep.tsx"+ }+ ]+ },+ {+ "name": "marker-highlight",+ "type": "registry:component",+ "title": "Marker Highlight",+ "description": "Colored marker block draws behind a phrase as the text color shifts.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/marker-highlight.tsx",+ "type": "registry:component",+ "target": "components/remocn/marker-highlight.tsx"+ }+ ]+ },+ {+ "name": "slot-machine-roll",+ "type": "registry:component",+ "title": "Slot Machine Roll",+ "description": "Vertical reel scrolls characters from one value to another.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/slot-machine-roll.tsx",+ "type": "registry:component",+ "target": "components/remocn/slot-machine-roll.tsx"+ }+ ]+ },+ {+ "name": "matrix-decode",+ "type": "registry:component",+ "title": "Matrix Decode",+ "description": "Random scramble resolves left-to-right into the target text.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/matrix-decode.tsx",+ "type": "registry:component",+ "target": "components/remocn/matrix-decode.tsx"+ }+ ]+ },+ {+ "name": "rgb-glitch-text",+ "type": "registry:component",+ "title": "RGB Glitch Text",+ "description": "Three RGB-offset text copies jitter for a brief glitch window.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/rgb-glitch-text.tsx",+ "type": "registry:component",+ "target": "components/remocn/rgb-glitch-text.tsx"+ }+ ]+ },+ {+ "name": "infinite-marquee",+ "type": "registry:component",+ "title": "Infinite Marquee",+ "description": "Seamlessly looping horizontal text strip with optional stroke style.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/infinite-marquee.tsx",+ "type": "registry:component",+ "target": "components/remocn/infinite-marquee.tsx"+ }+ ]+ },{"name": "mesh-gradient-bg","type": "registry:component",@@ -325,6 +451,104 @@}]},+ {+ "name": "morphing-modal",+ "type": "registry:component",+ "title": "Morphing Modal",+ "description": "A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/morphing-modal.tsx",+ "type": "registry:component",+ "target": "components/remocn/morphing-modal.tsx"+ }+ ]+ },+ {+ "name": "data-flow-pipes",+ "type": "registry:component",+ "title": "Data Flow Pipes",+ "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/data-flow-pipes.tsx",+ "type": "registry:component",+ "target": "components/remocn/data-flow-pipes.tsx"+ }+ ]+ },+ {+ "name": "cursor-flow",+ "type": "registry:component",+ "title": "Cursor Flow",+ "description": "A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/cursor-flow.tsx",+ "type": "registry:component",+ "target": "components/remocn/cursor-flow.tsx"+ }+ ]+ },+ {+ "name": "code-accordion",+ "type": "registry:component",+ "title": "Code Accordion",+ "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/code-accordion.tsx",+ "type": "registry:component",+ "target": "components/remocn/code-accordion.tsx"+ }+ ]+ },+ {+ "name": "glass-code-block",+ "type": "registry:component",+ "title": "Glass Code Block",+ "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/glass-code-block.tsx",+ "type": "registry:component",+ "target": "components/remocn/glass-code-block.tsx"+ }+ ]+ },+ {+ "name": "spotlight-card",+ "type": "registry:component",+ "title": "Spotlight Card",+ "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/spotlight-card.tsx",+ "type": "registry:component",+ "target": "components/remocn/spotlight-card.tsx"+ }+ ]+ },+ {+ "name": "perspective-marquee",+ "type": "registry:component",+ "title": "Perspective Marquee",+ "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/perspective-marquee.tsx",+ "type": "registry:component",+ "target": "components/remocn/perspective-marquee.tsx"+ }+ ]+ },{"name": "success-confetti","type": "registry:component",diff --git a/registry/remocn/animated-bar-chart.tsx b/registry/remocn/animated-bar-chart.tsxindex 0c2c7558..898eedea 100644--- a/registry/remocn/animated-bar-chart.tsx+++ b/registry/remocn/animated-bar-chart.tsx@@ -11,6 +11,7 @@ export interface AnimatedBarChartProps {background?: string;gap?: number;staggerFrames?: number;+ speed?: number;className?: string;}@@ -23,9 +24,10 @@ export function AnimatedBarChart({background = "#0a0a0a",gap = 16,staggerFrames = 6,+ speed = 1,className,}: AnimatedBarChartProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();const padding = 60;diff --git a/registry/remocn/animated-line-chart.tsx b/registry/remocn/animated-line-chart.tsxindex be478dde..4036246f 100644--- a/registry/remocn/animated-line-chart.tsx+++ b/registry/remocn/animated-line-chart.tsx@@ -11,6 +11,7 @@ export interface AnimatedLineChartProps {background?: string;gridColor?: string;showDot?: boolean;+ speed?: number;className?: string;}@@ -23,9 +24,10 @@ export function AnimatedLineChart({background = "#0a0a0a",gridColor = "#27272a",showDot = true,+ speed = 1,className,}: AnimatedLineChartProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps, durationInFrames } = useVideoConfig();const padding = 60;diff --git a/registry/remocn/blur-reveal.tsx b/registry/remocn/blur-reveal.tsxindex fc804f3d..51f61d0f 100644--- a/registry/remocn/blur-reveal.tsx+++ b/registry/remocn/blur-reveal.tsx@@ -9,6 +9,7 @@ export interface BlurRevealProps {fontSize?: number;color?: string;fontWeight?: number;+ speed?: number;}export function BlurReveal({@@ -18,8 +19,9 @@ export function BlurReveal({fontSize = 48,color = "#171717",fontWeight = 600,+ speed = 1,}: BlurRevealProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();const opacity = interpolate(frame, [0, durationInFrames * 0.6], [0, 1], {diff --git a/registry/remocn/bounding-box-selector.tsx b/registry/remocn/bounding-box-selector.tsxindex 964a3fa6..527cd38a 100644--- a/registry/remocn/bounding-box-selector.tsx+++ b/registry/remocn/bounding-box-selector.tsx@@ -10,6 +10,7 @@ export interface BoundingBoxSelectorProps {borderWidth?: number;appearAt?: number;background?: string;+ speed?: number;className?: string;}@@ -69,9 +70,10 @@ export function BoundingBoxSelector({borderWidth = 2,appearAt = 15,background = "#fafafa",+ speed = 1,className,}: BoundingBoxSelectorProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();const progress = spring({diff --git a/registry/remocn/chat-to-preview-layout.tsx b/registry/remocn/chat-to-preview-layout.tsxindex 0aea0aa8..8e3ba852 100644--- a/registry/remocn/chat-to-preview-layout.tsx+++ b/registry/remocn/chat-to-preview-layout.tsx@@ -9,6 +9,7 @@ export interface ChatToPreviewLayoutProps {startChatRatio?: number;endChatRatio?: number;background?: string;+ speed?: number;className?: string;}@@ -163,25 +164,64 @@ export function ChatToPreviewLayout({startChatRatio = 0.5,endChatRatio = 0.25,background = "#0a0a0a",+ speed = 1,className,}: ChatToPreviewLayoutProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();+ // Apple's signature ease — slow start, dramatic settle. Replaces the older+ // symmetric bezier so the morph feels deliberate instead of mechanical.+ const APPLE_EASE = Easing.bezier(0.16, 1, 0.3, 1);++ const morphStart = durationInFrames * 0.1;+ const morphEnd = durationInFrames * 0.7;+const ratio = interpolate(frame,- [durationInFrames * 0.1, durationInFrames * 0.7],+ [morphStart, morphEnd],[startChatRatio, endChatRatio],{extrapolateLeft: "clamp",extrapolateRight: "clamp",- easing: Easing.bezier(0.65, 0, 0.35, 1),+ easing: APPLE_EASE,+ },+ );++ // Right (preview) panel reveal: fade in + slide left into its growing slot.+ // Anchored to the same morph window so it feels like the chat is physically+ // dragging the preview into existence.+ const previewOpacity = interpolate(+ frame,+ [morphStart, morphEnd],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: APPLE_EASE,+ },+ );+ const previewTx = interpolate(+ frame,+ [morphStart, morphEnd],+ [40, 0],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: APPLE_EASE,},);const chatBasis = `${ratio * 100}%`;const previewBasis = `${(1 - ratio) * 100}%`;+ // Inner content min-widths. These are the lever that prevents text from+ // re-flowing inside the columns as the parent flex-basis morphs — content+ // is rendered at a fixed virtual width, then clipped by `overflow: hidden`+ // on the outer column. No reflow → no jumping characters.+ const CHAT_INNER_MIN = 520;+ const PREVIEW_INNER_MIN = 720;+return (<divclassName={className}@@ -205,7 +245,15 @@ export function ChatToPreviewLayout({border: "1px solid rgba(255,255,255,0.08)",}}>- {chat ?? <DefaultChat />}+ <div+ style={{+ position: "absolute",+ inset: 0,+ minWidth: CHAT_INNER_MIN,+ }}+ >+ {chat ?? <DefaultChat />}+ </div></div><divstyle={{@@ -216,9 +264,19 @@ export function ChatToPreviewLayout({overflow: "hidden",borderRadius: 16,border: "1px solid rgba(255,255,255,0.08)",+ opacity: previewOpacity,+ transform: `translateX(${previewTx}px)`,}}>- {preview ?? <DefaultPreview />}+ <div+ style={{+ position: "absolute",+ inset: 0,+ minWidth: PREVIEW_INNER_MIN,+ }}+ >+ {preview ?? <DefaultPreview />}+ </div></div></div>);diff --git a/registry/remocn/code-accordion.tsx b/registry/remocn/code-accordion.tsxnew file mode 100644index 00000000..f33f7424--- /dev/null+++ b/registry/remocn/code-accordion.tsx@@ -0,0 +1,267 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface CodeAccordionProps {+ lines?: string[];+ collapseRange?: [number, number];+ collapseAt?: number;+ title?: string;+ fontSize?: number;+ width?: number;+ background?: string;+ cardColor?: string;+ textColor?: string;+ mutedColor?: string;+ speed?: number;+ className?: string;+}++const FONT_MONO =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace";++const DEFAULT_LINES = [+ "export function processOrders(orders) {",+ " const valid = [];",+ " for (const order of orders) {",+ " if (!order.id) continue;",+ " if (!order.customer) continue;",+ " if (!order.items?.length) continue;",+ " if (order.total <= 0) continue;",+ " if (order.status === 'cancelled') continue;",+ " if (order.status === 'refunded') continue;",+ " const enriched = enrich(order);",+ " const validated = validate(enriched);",+ " if (!validated.ok) continue;",+ " const priced = price(validated.value);",+ " const taxed = applyTax(priced);",+ " const shipped = applyShipping(taxed);",+ " valid.push(shipped);",+ " }",+ " return valid;",+ "}",+];++export function CodeAccordion({+ lines = DEFAULT_LINES,+ collapseRange = [3, 14],+ collapseAt = 30,+ title = "process-orders.ts",+ fontSize = 16,+ width = 720,+ background = "#050505",+ cardColor = "#0a0a0a",+ textColor = "#e4e4e7",+ mutedColor = "#52525b",+ speed = 1,+ className,+}: CodeAccordionProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const lineHeight = Math.round(fontSize * 1.55);+ const [start, end] = collapseRange;+ const collapsedCount = Math.max(0, end - start + 1);++ // Spring drives BOTH the inner collapse height AND a tiny y-bounce on the+ // window so the accordion feels like it has weight.+ const collapseProgress = spring({+ frame: frame - collapseAt,+ fps,+ config: { damping: 10, stiffness: 110, mass: 1 },+ });++ const collapsedHeight = interpolate(+ collapseProgress,+ [0, 1],+ [collapsedCount * lineHeight, lineHeight], // collapses down to the placeholder bar's height+ );++ const collapsedOpacity = interpolate(collapseProgress, [0, 0.6], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const placeholderOpacity = interpolate(collapseProgress, [0.4, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const before = lines.slice(0, start);+ const collapsed = lines.slice(start, end + 1);+ const after = lines.slice(end + 1);++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily: FONT_MONO,+ }}+ >+ <div+ style={{+ width,+ background: cardColor,+ borderRadius: 14,+ overflow: "hidden",+ boxShadow:+ "0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05)",+ border: "1px solid rgba(255,255,255,0.06)",+ }}+ >+ {/* Chrome */}+ <div+ style={{+ height: 38,+ display: "flex",+ alignItems: "center",+ gap: 8,+ padding: "0 14px",+ borderBottom: "1px solid rgba(255,255,255,0.05)",+ }}+ >+ <Light color="#ff5f57" />+ <Light color="#febc2e" />+ <Light color="#28c840" />+ <div+ style={{+ flex: 1,+ textAlign: "center",+ color: mutedColor,+ fontSize: 12,+ }}+ >+ {title}+ </div>+ </div>++ {/* Code body */}+ <div style={{ padding: "16px 0", fontSize, lineHeight: 1.55 }}>+ {before.map((line, i) => (+ <Line+ key={`b-${i}`}+ line={line}+ index={i}+ lineHeight={lineHeight}+ textColor={textColor}+ mutedColor={mutedColor}+ />+ ))}++ {/* Collapsing region */}+ <div+ style={{+ position: "relative",+ height: collapsedHeight,+ overflow: "hidden",+ transition: "none",+ }}+ >+ <div style={{ opacity: collapsedOpacity }}>+ {collapsed.map((line, i) => (+ <Line+ key={`c-${i}`}+ line={line}+ index={start + i}+ lineHeight={lineHeight}+ textColor={textColor}+ mutedColor={mutedColor}+ />+ ))}+ </div>++ {/* Placeholder bar — sits at the bottom so it sits on the same+ baseline as the collapsed-into row. */}+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ bottom: 0,+ height: lineHeight,+ display: "flex",+ alignItems: "center",+ paddingLeft: 56,+ color: mutedColor,+ fontStyle: "italic",+ opacity: placeholderOpacity,+ }}+ >+ ⋯ {collapsedCount} lines collapsed+ </div>+ </div>++ {after.map((line, i) => (+ <Line+ key={`a-${i}`}+ line={line}+ index={end + 1 + i}+ lineHeight={lineHeight}+ textColor={textColor}+ mutedColor={mutedColor}+ />+ ))}+ </div>+ </div>+ </div>+ );+}++function Light({ color }: { color: string }) {+ return (+ <div+ style={{+ width: 11,+ height: 11,+ borderRadius: "50%",+ background: color,+ opacity: 0.6,+ }}+ />+ );+}++function Line({+ line,+ index,+ lineHeight,+ textColor,+ mutedColor,+}: {+ line: string;+ index: number;+ lineHeight: number;+ textColor: string;+ mutedColor: string;+}) {+ return (+ <div+ style={{+ height: lineHeight,+ display: "flex",+ alignItems: "center",+ whiteSpace: "pre",+ color: textColor,+ }}+ >+ <span+ style={{+ width: 56,+ textAlign: "right",+ paddingRight: 16,+ color: mutedColor,+ userSelect: "none",+ }}+ >+ {index + 1}+ </span>+ <span>{line}</span>+ </div>+ );+}diff --git a/registry/remocn/code-diff-wipe.tsx b/registry/remocn/code-diff-wipe.tsxindex 77b684bc..48757df7 100644--- a/registry/remocn/code-diff-wipe.tsx+++ b/registry/remocn/code-diff-wipe.tsx@@ -11,6 +11,7 @@ export interface CodeDiffWipeProps {transitionStart?: number;transitionDuration?: number;showHandle?: boolean;+ speed?: number;className?: string;}@@ -43,9 +44,10 @@ export function CodeDiffWipe({transitionStart = 20,transitionDuration = 60,showHandle = true,+ speed = 1,className,}: CodeDiffWipeProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const progress = interpolate(frame,diff --git a/registry/remocn/cursor-flow.tsx b/registry/remocn/cursor-flow.tsxnew file mode 100644index 00000000..2a5bde24--- /dev/null+++ b/registry/remocn/cursor-flow.tsx@@ -0,0 +1,303 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface CursorWaypoint {+ x: number;+ y: number;+ /** If set, the cursor will pause here for this many frames before moving on. */+ hold?: number;+ /** If true, a click animation will fire when the cursor reaches this point. */+ click?: boolean;+ /** Optional label rendered next to the click target. */+ label?: string;+}++export interface CursorFlowProps {+ waypoints?: CursorWaypoint[];+ cursorColor?: string;+ cursorSize?: number;+ segmentDuration?: number;+ background?: string;+ showTargets?: boolean;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++const DEFAULT_WAYPOINTS: CursorWaypoint[] = [+ { x: 200, y: 180 },+ { x: 540, y: 240, click: true, label: "Generate" },+ { x: 880, y: 360, hold: 8 },+ { x: 1040, y: 520, click: true, label: "Publish" },+];++/**+ * Cubic Bezier evaluator. Two control points are derived per segment so the+ * trajectory always has a "belly" — straight lines between two points are+ * specifically the look we want to avoid.+ */+function cubicBezier(+ t: number,+ p0: { x: number; y: number },+ p1: { x: number; y: number },+ p2: { x: number; y: number },+ p3: { x: number; y: number },+) {+ const u = 1 - t;+ const tt = t * t;+ const uu = u * u;+ const uuu = uu * u;+ const ttt = tt * t;+ return {+ x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,+ y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,+ };+}++/** Apple-flavoured ease for in-segment motion: slow start, slow end. */+function easeInOut(t: number) {+ return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;+}++/** Per-segment control points: midpoint perpendicular offset gives a natural arc. */+function controlsFor(+ a: { x: number; y: number },+ b: { x: number; y: number },+ index: number,+) {+ const dx = b.x - a.x;+ const dy = b.y - a.y;+ const len = Math.hypot(dx, dy) || 1;+ // Perpendicular unit vector. Alternate sign per segment so the path snakes+ // instead of always bulging the same way.+ const sign = index % 2 === 0 ? 1 : -1;+ const px = (-dy / len) * (len * 0.18) * sign;+ const py = (dx / len) * (len * 0.18) * sign;+ // Place control points at 1/3 and 2/3 along the chord, offset perpendicular.+ return [+ { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },+ { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },+ ];+}++export function CursorFlow({+ waypoints = DEFAULT_WAYPOINTS,+ cursorColor = "#fafafa",+ cursorSize = 28,+ segmentDuration = 36,+ background = "#0a0a0a",+ showTargets = true,+ speed = 1,+ className,+}: CursorFlowProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ // Build the timeline: each segment is segmentDuration frames, with optional+ // hold time at each waypoint.+ type SegmentTiming = { startFrame: number; endFrame: number; holdEnd: number };+ const timings: SegmentTiming[] = [];+ let cursorFrame = 0;+ for (let i = 0; i < waypoints.length - 1; i++) {+ const start = cursorFrame;+ const end = start + segmentDuration;+ const holdEnd = end + (waypoints[i + 1].hold ?? 0);+ timings.push({ startFrame: start, endFrame: end, holdEnd });+ cursorFrame = holdEnd;+ }++ // Find the active segment.+ let pos = { x: waypoints[0].x, y: waypoints[0].y };+ let activeWaypointIndex = 0;+ for (let i = 0; i < timings.length; i++) {+ const { startFrame, endFrame, holdEnd } = timings[i];+ if (frame >= startFrame && frame < endFrame) {+ const t = easeInOut((frame - startFrame) / segmentDuration);+ const a = waypoints[i];+ const b = waypoints[i + 1];+ const [c1, c2] = controlsFor(a, b, i);+ pos = cubicBezier(t, a, c1, c2, b);+ activeWaypointIndex = i;+ break;+ } else if (frame >= endFrame && frame < holdEnd) {+ pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };+ activeWaypointIndex = i + 1;+ break;+ } else if (frame >= holdEnd) {+ pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };+ activeWaypointIndex = i + 1;+ }+ }++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ fontFamily: FONT_FAMILY,+ }}+ >+ {/* Click targets */}+ {showTargets &&+ waypoints.map((wp, i) => {+ if (!wp.click) return null;+ // Find when the cursor reaches this waypoint and trigger the press scale.+ const timing = timings[i - 1];+ const arrivalFrame = timing ? timing.endFrame : 0;+ return (+ <ClickTarget+ key={i}+ x={wp.x}+ y={wp.y}+ label={wp.label}+ arrivalFrame={arrivalFrame}+ currentFrame={frame}+ fps={fps}+ />+ );+ })}++ {/* Cursor */}+ <Cursor+ x={pos.x}+ y={pos.y}+ size={cursorSize}+ color={cursorColor}+ currentFrame={frame}+ fps={fps}+ clickFrames={timings+ .map((t, i) => (waypoints[i + 1].click ? t.endFrame : -1))+ .filter((f) => f >= 0)}+ />++ {/* Cursor active marker just for context — small dot at active waypoint */}+ <div+ style={{+ position: "absolute",+ width: 6,+ height: 6,+ left: waypoints[activeWaypointIndex].x - 3,+ top: waypoints[activeWaypointIndex].y - 3,+ borderRadius: "50%",+ background: "rgba(255,255,255,0.04)",+ pointerEvents: "none",+ }}+ />+ </div>+ );+}++function Cursor({+ x,+ y,+ size,+ color,+ currentFrame,+ fps,+ clickFrames,+}: {+ x: number;+ y: number;+ size: number;+ color: string;+ currentFrame: number;+ fps: number;+ clickFrames: number[];+}) {+ // Find nearest click moment within ±4 frames; press scale if so.+ let scale = 1;+ for (const cf of clickFrames) {+ const delta = currentFrame - cf;+ if (delta >= 0 && delta <= 4) {+ // 4-frame hard press: 1 → 0.85 → 1+ const press = spring({+ frame: delta,+ fps,+ config: { damping: 22, stiffness: 320, mass: 0.5 },+ });+ scale = interpolate(press, [0, 1], [0.85, 1]);+ break;+ }+ }++ return (+ <svg+ width={size}+ height={size}+ viewBox="0 0 24 24"+ style={{+ position: "absolute",+ left: x,+ top: y,+ transform: `scale(${scale})`,+ transformOrigin: "0 0",+ zIndex: 9999,+ filter: "drop-shadow(0 4px 12px rgba(0,0,0,0.6))",+ pointerEvents: "none",+ }}+ >+ <path+ d="M3 2 L3 18 L7 14 L10 21 L13 20 L10 13 L17 13 Z"+ fill={color}+ stroke="#0a0a0a"+ strokeWidth="1.2"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function ClickTarget({+ x,+ y,+ label,+ arrivalFrame,+ currentFrame,+ fps,+}: {+ x: number;+ y: number;+ label?: string;+ arrivalFrame: number;+ currentFrame: number;+ fps: number;+}) {+ // Synced press: when the cursor scales to 0.85, the target dips to 0.98.+ const delta = currentFrame - arrivalFrame;+ let pressScale = 1;+ if (delta >= 0 && delta <= 6) {+ const t = spring({+ frame: delta,+ fps,+ config: { damping: 18, stiffness: 280 },+ });+ pressScale = interpolate(t, [0, 1], [0.98, 1]);+ }++ return (+ <div+ style={{+ position: "absolute",+ left: x - 70,+ top: y - 22,+ transform: `scale(${pressScale})`,+ transformOrigin: "center",+ padding: "10px 18px",+ borderRadius: 10,+ background: "#fafafa",+ color: "#0a0a0a",+ fontSize: 14,+ fontWeight: 600,+ boxShadow: "0 12px 30px rgba(0,0,0,0.4)",+ pointerEvents: "none",+ }}+ >+ {label ?? "Click"}+ </div>+ );+}diff --git a/registry/remocn/data-flow-pipes.tsx b/registry/remocn/data-flow-pipes.tsxnew file mode 100644index 00000000..840da180--- /dev/null+++ b/registry/remocn/data-flow-pipes.tsx@@ -0,0 +1,238 @@+"use client";++import { interpolate, useCurrentFrame } from "remotion";++export interface DataFlowNode {+ id: string;+ x: number;+ y: number;+ label?: string;+}++export interface DataFlowEdge {+ from: string;+ to: string;+ /** Frame when the pulse on this edge starts. */+ startFrame?: number;+}++export interface DataFlowPipesProps {+ nodes?: DataFlowNode[];+ edges?: DataFlowEdge[];+ pipeColor?: string;+ pulseColor?: string;+ pulseLength?: number;+ pulseDuration?: number;+ background?: string;+ nodeColor?: string;+ textColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++const DEFAULT_NODES: DataFlowNode[] = [+ { id: "client", x: 140, y: 360, label: "Client" },+ { id: "api", x: 460, y: 200, label: "API" },+ { id: "queue", x: 460, y: 520, label: "Queue" },+ { id: "db", x: 820, y: 360, label: "Database" },+ { id: "cdn", x: 1140, y: 200, label: "CDN" },+ { id: "log", x: 1140, y: 520, label: "Logs" },+];++const DEFAULT_EDGES: DataFlowEdge[] = [+ { from: "client", to: "api", startFrame: 0 },+ { from: "client", to: "queue", startFrame: 12 },+ { from: "api", to: "db", startFrame: 24 },+ { from: "queue", to: "db", startFrame: 36 },+ { from: "db", to: "cdn", startFrame: 48 },+ { from: "db", to: "log", startFrame: 56 },+];++/**+ * Build a smooth cubic bezier path string between two points. The control+ * points are pulled toward the midpoint and offset perpendicular for natural+ * routing — straight lines look like circuit traces, curves look like data.+ */+function bezierPath(+ a: { x: number; y: number },+ b: { x: number; y: number },+) {+ const dx = b.x - a.x;+ const dy = b.y - a.y;+ // Stronger horizontal handles → routes look like API/DB diagrams.+ const handle = Math.max(60, Math.abs(dx) * 0.5);+ const c1x = a.x + handle;+ const c1y = a.y;+ const c2x = b.x - handle;+ const c2y = b.y;+ return `M ${a.x} ${a.y} C ${c1x} ${c1y}, ${c2x} ${c2y}, ${b.x} ${b.y}`;+}++/**+ * Approximate arc length of a cubic bezier by sampling. Gives a stable number+ * to drive `strokeDashoffset` against — purely numeric, no DOM `getTotalLength`.+ */+function bezierLength(+ a: { x: number; y: number },+ b: { x: number; y: number },+) {+ const handle = Math.max(60, Math.abs(b.x - a.x) * 0.5);+ const c1 = { x: a.x + handle, y: a.y };+ const c2 = { x: b.x - handle, y: b.y };+ let len = 0;+ let prev = a;+ const steps = 32;+ for (let i = 1; i <= steps; i++) {+ const t = i / steps;+ const u = 1 - t;+ const p = {+ x: u * u * u * a.x + 3 * u * u * t * c1.x + 3 * u * t * t * c2.x + t * t * t * b.x,+ y: u * u * u * a.y + 3 * u * u * t * c1.y + 3 * u * t * t * c2.y + t * t * t * b.y,+ };+ len += Math.hypot(p.x - prev.x, p.y - prev.y);+ prev = p;+ }+ return len;+}++export function DataFlowPipes({+ nodes = DEFAULT_NODES,+ edges = DEFAULT_EDGES,+ pipeColor = "#1f1f23",+ pulseColor = "#22d3ee",+ pulseLength = 60,+ pulseDuration = 36,+ background = "#050505",+ nodeColor = "#0a0a0a",+ textColor = "#fafafa",+ speed = 1,+ className,+}: DataFlowPipesProps) {+ const frame = useCurrentFrame() * speed;+ const nodeMap = new Map(nodes.map((n) => [n.id, n]));++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ fontFamily: FONT_FAMILY,+ }}+ >+ <svg+ width="100%"+ height="100%"+ viewBox="0 0 1280 720"+ style={{ position: "absolute", inset: 0 }}+ >+ {/* Static pipes */}+ {edges.map((edge, i) => {+ const a = nodeMap.get(edge.from);+ const b = nodeMap.get(edge.to);+ if (!a || !b) return null;+ const path = bezierPath(a, b);+ return (+ <path+ key={`pipe-${i}`}+ d={path}+ fill="none"+ stroke={pipeColor}+ strokeWidth={3}+ strokeLinecap="round"+ />+ );+ })}++ {/* Pulses with trailing ghosts */}+ {edges.map((edge, i) => {+ const a = nodeMap.get(edge.from);+ const b = nodeMap.get(edge.to);+ if (!a || !b) return null;+ const path = bezierPath(a, b);+ const len = bezierLength(a, b);+ const startFrame = edge.startFrame ?? 0;+ const localFrame = frame - startFrame;++ // Pulse offset: starts above the path (out of view), travels down+ // until the dash sits past the end. We use a wide gap (9999) so the+ // dash pattern shows exactly one bright segment.+ const offset = interpolate(+ localFrame,+ [0, pulseDuration],+ [len + pulseLength, -pulseLength],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ // Hide pulse before its start window.+ if (localFrame < 0 || localFrame > pulseDuration + 6) {+ return null;+ }++ return (+ <g key={`pulse-${i}`}>+ {/* Trail copies — fading and offset back along the path. */}+ {[0.15, 0.3, 0.55].map((alpha, idx) => (+ <path+ key={`trail-${idx}`}+ d={path}+ fill="none"+ stroke={pulseColor}+ strokeWidth={3}+ strokeLinecap="round"+ strokeDasharray={`${pulseLength} 9999`}+ strokeDashoffset={offset + (idx + 1) * 8}+ opacity={alpha}+ />+ ))}+ {/* Bright head */}+ <path+ d={path}+ fill="none"+ stroke={pulseColor}+ strokeWidth={3.5}+ strokeLinecap="round"+ strokeDasharray={`${pulseLength} 9999`}+ strokeDashoffset={offset}+ style={{+ filter: `drop-shadow(0 0 8px ${pulseColor})`,+ }}+ />+ </g>+ );+ })}+ </svg>++ {/* Nodes */}+ {nodes.map((node) => (+ <div+ key={node.id}+ style={{+ position: "absolute",+ left: node.x - 60,+ top: node.y - 24,+ width: 120,+ height: 48,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: nodeColor,+ color: textColor,+ border: "1px solid rgba(255,255,255,0.08)",+ borderRadius: 10,+ fontSize: 14,+ fontWeight: 600,+ letterSpacing: "-0.01em",+ boxShadow: "0 12px 30px rgba(0,0,0,0.4)",+ }}+ >+ {node.label ?? node.id}+ </div>+ ))}+ </div>+ );+}diff --git a/registry/remocn/device-mockup-zoom.tsx b/registry/remocn/device-mockup-zoom.tsxindex c462280f..3e4275af 100644--- a/registry/remocn/device-mockup-zoom.tsx+++ b/registry/remocn/device-mockup-zoom.tsx@@ -9,6 +9,7 @@ export interface DeviceMockupZoomProps {frameColor?: string;screenColor?: string;background?: string;+ speed?: number;className?: string;}@@ -43,9 +44,10 @@ export function DeviceMockupZoom({frameColor = "#1f1f1f",screenColor = "#0a0a0a",background = "#fafafa",+ speed = 1,className,}: DeviceMockupZoomProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();const scale = interpolate(frame, [0, durationInFrames], [2, 1], {diff --git a/registry/remocn/directional-wipe.tsx b/registry/remocn/directional-wipe.tsxindex 4666bfeb..39d4847f 100644--- a/registry/remocn/directional-wipe.tsx+++ b/registry/remocn/directional-wipe.tsx@@ -9,6 +9,7 @@ export interface DirectionalWipeProps {direction?: "left" | "right" | "up" | "down";transitionStart?: number;transitionDuration?: number;+ speed?: number;className?: string;}@@ -43,9 +44,10 @@ export function DirectionalWipe({direction = "left",transitionStart,transitionDuration = 20,+ speed = 1,className,}: DirectionalWipeProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();const start =diff --git a/registry/remocn/drag-and-drop-flow.tsx b/registry/remocn/drag-and-drop-flow.tsxindex 6ab0631d..d943f0c4 100644--- a/registry/remocn/drag-and-drop-flow.tsx+++ b/registry/remocn/drag-and-drop-flow.tsx@@ -13,6 +13,7 @@ export interface DragAndDropFlowProps {dropzoneLabel?: string;fileName?: string;background?: string;+ speed?: number;className?: string;}@@ -38,9 +39,10 @@ export function DragAndDropFlow({dropzoneLabel = "Drop file to upload",fileName = "design.fig",background = "#fafafa",+ speed = 1,className,}: DragAndDropFlowProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();// Phase splitdiff --git a/registry/remocn/glass-code-block.tsx b/registry/remocn/glass-code-block.tsxnew file mode 100644index 00000000..177acc29--- /dev/null+++ b/registry/remocn/glass-code-block.tsx@@ -0,0 +1,291 @@+"use client";++import { Sequence, interpolate, useCurrentFrame } from "remotion";++export interface GlassCodeBlockProps {+ code?: string;+ title?: string;+ width?: number;+ height?: number;+ fontSize?: number;+ background?: string;+ glassColor?: string;+ staggerFrames?: number;+ showTrafficLights?: boolean;+ speed?: number;+ className?: string;+}++const FONT_MONO =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace";++const DEFAULT_CODE = `import { motion } from "remotion";++// Generate a hero scene+export function Hero() {+ const frame = useCurrentFrame();+ const opacity = frame / 30;+ return <h1 style={{ opacity }}>Hello</h1>;+}`;++// Minimal regex tokenizer. NOT a real syntax highlighter — just enough to+// give the eye color anchors. Order matters: comments → strings → keywords.+const KEYWORDS = new Set([+ "import",+ "from",+ "export",+ "function",+ "const",+ "let",+ "var",+ "return",+ "if",+ "else",+ "for",+ "while",+ "new",+ "class",+ "extends",+ "default",+ "true",+ "false",+ "null",+ "undefined",+]);++type Token = { text: string; kind: "code" | "comment" | "string" | "keyword" | "number" };++function tokenizeLine(line: string): Token[] {+ // Whole-line comment.+ const trimmed = line.trimStart();+ if (trimmed.startsWith("//")) {+ return [{ text: line, kind: "comment" }];+ }++ const tokens: Token[] = [];+ // Split keeping delimiters: words, strings, numbers, everything else.+ const re = /("[^"]*"|'[^']*'|`[^`]*`|\b\d+\b|\b[A-Za-z_$][\w$]*\b|[^\w"']+)/g;+ let match: RegExpExecArray | null;+ while ((match = re.exec(line)) !== null) {+ const t = match[0];+ const first = t[0];+ if (first === '"' || first === "'" || first === "`") {+ tokens.push({ text: t, kind: "string" });+ } else if (/^\d+$/.test(t)) {+ tokens.push({ text: t, kind: "number" });+ } else if (/^[A-Za-z_$][\w$]*$/.test(t) && KEYWORDS.has(t)) {+ tokens.push({ text: t, kind: "keyword" });+ } else {+ tokens.push({ text: t, kind: "code" });+ }+ }+ return tokens;+}++const TOKEN_COLORS: Record<Token["kind"], string> = {+ code: "#e4e4e7",+ comment: "#52525b",+ string: "#86efac",+ keyword: "#c4b5fd",+ number: "#fcd34d",+};++export function GlassCodeBlock({+ code = DEFAULT_CODE,+ title = "hero.tsx",+ width = 760,+ height = 460,+ fontSize = 16,+ background = "#0a0a0a",+ glassColor = "rgba(10, 10, 10, 0.6)",+ staggerFrames = 4,+ showTrafficLights = true,+ speed = 1,+ className,+}: GlassCodeBlockProps) {+ const lines = code.split("\n");++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ {/* Animated background hint behind the glass so the blur has something+ to chew on. Pure CSS — no extra deps. */}+ <BackdropAura />++ {/* 1px gradient ring acting as a microborder */}+ <div+ style={{+ position: "relative",+ padding: 1,+ borderRadius: 16,+ background:+ "linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%)",+ width,+ height,+ boxShadow: "0 50px 120px rgba(0,0,0,0.55)",+ }}+ >+ <div+ style={{+ width: "100%",+ height: "100%",+ borderRadius: 15,+ background: glassColor,+ backdropFilter: "blur(16px)",+ WebkitBackdropFilter: "blur(16px)",+ boxShadow: "inset 0 1px 0 rgba(255,255,255,0.06)",+ display: "flex",+ flexDirection: "column",+ overflow: "hidden",+ fontFamily: FONT_MONO,+ }}+ >+ {/* Chrome */}+ <div+ style={{+ height: 40,+ display: "flex",+ alignItems: "center",+ gap: 8,+ padding: "0 16px",+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ }}+ >+ {showTrafficLights && (+ <>+ <Light color="#ff5f57" />+ <Light color="#febc2e" />+ <Light color="#28c840" />+ </>+ )}+ <div+ style={{+ flex: 1,+ textAlign: "center",+ color: "#a1a1aa",+ fontSize: 12,+ letterSpacing: "0.02em",+ }}+ >+ {title}+ </div>+ </div>++ {/* Code body */}+ <div+ style={{+ flex: 1,+ padding: "20px 24px",+ display: "flex",+ flexDirection: "column",+ gap: 4,+ fontSize,+ lineHeight: 1.55,+ }}+ >+ {lines.map((line, i) => (+ <Sequence+ key={i}+ from={Math.round((i * staggerFrames) / speed)}+ layout="none"+ >+ <CodeLine line={line} index={i} fontSize={fontSize} />+ </Sequence>+ ))}+ </div>+ </div>+ </div>+ </div>+ );+}++function Light({ color }: { color: string }) {+ return (+ <div+ style={{+ width: 12,+ height: 12,+ borderRadius: "50%",+ background: color,+ opacity: 0.6,+ }}+ />+ );+}++function CodeLine({+ line,+ index,+ fontSize,+}: {+ line: string;+ index: number;+ fontSize: number;+}) {+ const frame = useCurrentFrame();+ const opacity = interpolate(frame, [0, 8], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const ty = interpolate(frame, [0, 8], [4, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const tokens = tokenizeLine(line);+ // Render an empty line as a half-height spacer so blank lines still take+ // visual space without collapsing the gap.+ if (tokens.length === 0) {+ return <div style={{ height: fontSize * 0.8, opacity }} />;+ }+ return (+ <div+ style={{+ opacity,+ transform: `translateY(${ty}px)`,+ whiteSpace: "pre",+ display: "flex",+ gap: 0,+ }}+ >+ <span style={{ width: 28, color: "#3f3f46", userSelect: "none" }}>+ {String(index + 1).padStart(2, " ")}+ </span>+ <span>+ {tokens.map((t, i) => (+ <span key={i} style={{ color: TOKEN_COLORS[t.kind] }}>+ {t.text}+ </span>+ ))}+ </span>+ </div>+ );+}++function BackdropAura() {+ // Slow, low-amplitude blob behind the glass so the backdrop blur has+ // perceptible content to refract.+ const frame = useCurrentFrame();+ const t = frame / 60;+ const x = 50 + Math.sin(t) * 20;+ const y = 50 + Math.cos(t * 0.7) * 15;+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ pointerEvents: "none",+ background: `radial-gradient(circle at ${x}% ${y}%, rgba(56,189,248,0.22), transparent 50%), radial-gradient(circle at ${100 - x}% ${100 - y}%, rgba(168,85,247,0.18), transparent 55%)`,+ }}+ />+ );+}diff --git a/registry/remocn/infinite-marquee.tsx b/registry/remocn/infinite-marquee.tsxnew file mode 100644index 00000000..41bc2e1b--- /dev/null+++ b/registry/remocn/infinite-marquee.tsx@@ -0,0 +1,71 @@+"use client";++import { useCurrentFrame } from "remotion";++export interface InfiniteMarqueeProps {+ text?: string;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ pixelsPerFrame?: number;+ stroke?: boolean;+ strokeColor?: string;+ background?: string;+ speed?: number;+ className?: string;+}++export function InfiniteMarquee({+ text = "ship · build · animate · ",+ fontSize = 120,+ color = "#171717",+ fontWeight = 900,+ pixelsPerFrame = 4,+ stroke = false,+ strokeColor = "#171717",+ background = "#fafafa",+ speed = 1,+ className,+}: InfiniteMarqueeProps) {+ const frame = useCurrentFrame() * speed;++ const approxWidth = text.length * fontSize * 0.55;+ const offset = -((frame * pixelsPerFrame) % approxWidth);++ const spanStyle: React.CSSProperties = {+ fontSize,+ fontWeight,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ color: stroke ? "transparent" : color,+ WebkitTextStroke: stroke ? `2px ${strokeColor}` : undefined,+ paddingRight: "0.4em",+ letterSpacing: "-0.03em",+ };++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background,+ }}+ >+ <div+ className={className}+ style={{+ display: "flex",+ whiteSpace: "nowrap",+ transform: `translateX(${offset}px)`,+ }}+ >+ <span style={spanStyle}>{text}</span>+ <span style={spanStyle}>{text}</span>+ <span style={spanStyle}>{text}</span>+ </div>+ </div>+ );+}diff --git a/registry/remocn/inline-highlight.tsx b/registry/remocn/inline-highlight.tsxindex 1d812045..890cf8c0 100644--- a/registry/remocn/inline-highlight.tsx+++ b/registry/remocn/inline-highlight.tsx@@ -15,6 +15,7 @@ export interface InlineHighlightProps {highlightColor?: string;fontSize?: number;fontWeight?: number;+ speed?: number;className?: string;}@@ -26,9 +27,10 @@ export function InlineHighlight({highlightColor = "#ff5e3a",fontSize = 48,fontWeight = 600,+ speed = 1,className,}: InlineHighlightProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();const progress = interpolate(diff --git a/registry/remocn/marker-highlight.tsx b/registry/remocn/marker-highlight.tsxnew file mode 100644index 00000000..2fc688c7--- /dev/null+++ b/registry/remocn/marker-highlight.tsx@@ -0,0 +1,97 @@+"use client";++import {+ interpolate,+ interpolateColors,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface MarkerHighlightProps {+ before?: string;+ highlight: string;+ after?: string;+ markerColor?: string;+ baseColor?: string;+ highlightedTextColor?: string;+ fontSize?: number;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function MarkerHighlight({+ before = "",+ highlight,+ after = "",+ markerColor = "#facc15",+ baseColor = "#171717",+ highlightedTextColor = "#171717",+ fontSize = 72,+ fontWeight = 600,+ speed = 1,+ className,+}: MarkerHighlightProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const markerScale = spring({+ frame: frame - 15,+ fps,+ config: { damping: 14 },+ });++ const textColor = interpolateColors(+ interpolate(markerScale, [0.5, 0.8], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ }),+ [0, 1],+ [baseColor, highlightedTextColor],+ );++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color: baseColor,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {before}+ <span style={{ position: "relative", display: "inline-block" }}>+ <span+ aria-hidden+ style={{+ position: "absolute",+ inset: "0 -0.1em",+ background: markerColor,+ transformOrigin: "left center",+ transform: `scaleX(${markerScale})`,+ zIndex: 0,+ }}+ />+ <span style={{ position: "relative", zIndex: 1, color: textColor }}>+ {highlight}+ </span>+ </span>+ {after}+ </span>+ </div>+ );+}diff --git a/registry/remocn/masked-slide-reveal.tsx b/registry/remocn/masked-slide-reveal.tsxnew file mode 100644index 00000000..fd703fa6--- /dev/null+++ b/registry/remocn/masked-slide-reveal.tsx@@ -0,0 +1,82 @@+"use client";++import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface MaskedSlideRevealProps {+ text: string;+ staggerDelay?: number;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function MaskedSlideReveal({+ text,+ staggerDelay = 3,+ fontSize = 72,+ color = "#171717",+ fontWeight = 700,+ speed = 1,+ className,+}: MaskedSlideRevealProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const words = text.split(" ");++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {words.map((word, i) => {+ const t = spring({+ frame: frame - i * staggerDelay,+ fps,+ config: { damping: 14 },+ });+ return (+ <span+ key={i}+ style={{+ display: "inline-block",+ overflow: "hidden",+ verticalAlign: "bottom",+ lineHeight: 1,+ marginRight: "0.25em",+ }}+ >+ <span+ style={{+ display: "inline-block",+ transform: `translateY(${(1 - t) * 100}%)`,+ }}+ >+ {word}+ </span>+ </span>+ );+ })}+ </span>+ </div>+ );+}diff --git a/registry/remocn/matrix-decode.tsx b/registry/remocn/matrix-decode.tsxnew file mode 100644index 00000000..1934e0fd--- /dev/null+++ b/registry/remocn/matrix-decode.tsx@@ -0,0 +1,71 @@+"use client";++import { random, useCurrentFrame, useVideoConfig } from "remotion";++export interface MatrixDecodeProps {+ text: string;+ charset?: string;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ revealDuration?: number;+ speed?: number;+ className?: string;+}++export function MatrixDecode({+ text,+ charset = "!@#$%^&*()_+-=<>?/\\|",+ fontSize = 72,+ color = "#22c55e",+ fontWeight = 600,+ revealDuration = 60,+ speed = 1,+ className,+}: MatrixDecodeProps) {+ const frame = useCurrentFrame() * speed;+ // useVideoConfig kept for consistency with sibling primitives+ useVideoConfig();++ let output = "";+ for (let i = 0; i < text.length; i++) {+ const revealFrame = (i / Math.max(text.length, 1)) * revealDuration;+ if (text[i] === " ") {+ output += " ";+ } else if (frame >= revealFrame) {+ output += text[i];+ } else {+ const r = random(`${i}-${Math.floor(frame / 2)}`);+ const ch = charset[Math.floor(r * charset.length)];+ output += ch;+ }+ }++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing: "0.05em",+ whiteSpace: "pre",+ fontFamily:+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace",+ }}+ >+ {output}+ </span>+ </div>+ );+}diff --git a/registry/remocn/morphing-modal.tsx b/registry/remocn/morphing-modal.tsxnew file mode 100644index 00000000..d725c0c5--- /dev/null+++ b/registry/remocn/morphing-modal.tsx@@ -0,0 +1,265 @@+"use client";++import type { ReactNode } from "react";+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface MorphingModalRect {+ top: number;+ left: number;+ width: number;+ height: number;+}++export interface MorphingModalProps {+ from?: MorphingModalRect;+ to?: MorphingModalRect;+ borderRadiusFrom?: number;+ borderRadiusTo?: number;+ morphAt?: number;+ background?: string;+ cardColor?: string;+ textColor?: string;+ mutedColor?: string;+ sourceTitle?: string;+ sourceBody?: string;+ modalTitle?: string;+ modalBody?: string;+ source?: ReactNode;+ modal?: ReactNode;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++const VIEWPORT_W = 1280;+const VIEWPORT_H = 720;++const DEFAULT_FROM: MorphingModalRect = {+ left: 460,+ top: 260,+ width: 360,+ height: 200,+};++const DEFAULT_TO: MorphingModalRect = {+ left: 80,+ top: 60,+ width: VIEWPORT_W - 160,+ height: VIEWPORT_H - 120,+};++export function MorphingModal({+ from = DEFAULT_FROM,+ to = DEFAULT_TO,+ borderRadiusFrom = 24,+ borderRadiusTo = 0,+ morphAt = 30,+ background = "#050505",+ cardColor = "#0a0a0a",+ textColor = "#fafafa",+ mutedColor = "#71717a",+ sourceTitle = "Compose video",+ sourceBody = "Click to start a new project",+ modalTitle = "New project",+ modalBody = "Pick a template, drop your assets, and ship a 30s video in under five minutes. Everything renders deterministically — no flicker, no flaky frames.",+ source,+ modal,+ speed = 1,+ className,+}: MorphingModalProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ // ONE heavy spring drives all 5 morph properties at once. High mass ++ // low stiffness so the modal "blooms" instead of jumping.+ const morph = spring({+ frame: frame - morphAt,+ fps,+ config: { mass: 1.5, damping: 22, stiffness: 110 },+ });++ const left = interpolate(morph, [0, 1], [from.left, to.left]);+ const top = interpolate(morph, [0, 1], [from.top, to.top]);+ const width = interpolate(morph, [0, 1], [from.width, to.width]);+ const height = interpolate(morph, [0, 1], [from.height, to.height]);+ const radius = interpolate(morph, [0, 1], [borderRadiusFrom, borderRadiusTo]);++ // Backdrop fades in alongside the morph spring.+ const backdropAlpha = interpolate(morph, [0, 1], [0, 0.8]);++ // Source content vanishes in the FIRST third of the morph.+ const sourceOpacity = interpolate(morph, [0, 0.33], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ // Modal content arrives in the LAST third with a translateY offset.+ const modalOpacity = interpolate(morph, [0.66, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const modalTy = interpolate(morph, [0.66, 1], [20, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ fontFamily: FONT_FAMILY,+ overflow: "hidden",+ }}+ >+ {/* Backdrop dim layer */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: `rgba(0, 0, 0, ${backdropAlpha})`,+ pointerEvents: "none",+ }}+ />++ {/* Suggestion of a bento grid behind so the morph reads as+ "card lifting off". Very low contrast. */}+ <BackgroundGrid />++ {/* The morphing card */}+ <div+ style={{+ position: "absolute",+ left,+ top,+ width,+ height,+ background: cardColor,+ borderRadius: radius,+ boxShadow:+ "0 60px 140px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06)",+ overflow: "hidden",+ }}+ >+ {/* Source layer (fades out first) */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ padding: 28,+ display: "flex",+ flexDirection: "column",+ justifyContent: "flex-end",+ gap: 6,+ opacity: sourceOpacity,+ }}+ >+ {source ?? (+ <>+ <div+ style={{+ fontSize: 20,+ fontWeight: 700,+ color: textColor,+ letterSpacing: "-0.01em",+ }}+ >+ {sourceTitle}+ </div>+ <div style={{ fontSize: 14, color: mutedColor }}>{sourceBody}</div>+ </>+ )}+ </div>++ {/* Modal layer (arrives last with translateY) */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ padding: 64,+ display: "flex",+ flexDirection: "column",+ gap: 24,+ opacity: modalOpacity,+ transform: `translateY(${modalTy}px)`,+ }}+ >+ {modal ?? (+ <>+ <div+ style={{+ fontSize: 56,+ fontWeight: 700,+ color: textColor,+ letterSpacing: "-0.03em",+ lineHeight: 1.05,+ }}+ >+ {modalTitle}+ </div>+ <div+ style={{+ fontSize: 20,+ lineHeight: 1.55,+ color: mutedColor,+ maxWidth: 720,+ }}+ >+ {modalBody}+ </div>+ <div+ style={{+ marginTop: 12,+ display: "inline-flex",+ alignSelf: "flex-start",+ background: textColor,+ color: cardColor,+ padding: "12px 22px",+ borderRadius: 12,+ fontSize: 16,+ fontWeight: 600,+ }}+ >+ Get started+ </div>+ </>+ )}+ </div>+ </div>+ </div>+ );+}++function BackgroundGrid() {+ // Decorative bento background — 3x2 cards, very low contrast.+ const cells = [+ { x: 80, y: 60, w: 360, h: 200 },+ { x: 460, y: 60, w: 360, h: 200 },+ { x: 840, y: 60, w: 360, h: 200 },+ { x: 80, y: 460, w: 360, h: 200 },+ { x: 840, y: 460, w: 360, h: 200 },+ ];+ return (+ <>+ {cells.map((c, i) => (+ <div+ key={i}+ style={{+ position: "absolute",+ left: c.x,+ top: c.y,+ width: c.w,+ height: c.h,+ background: "#0a0a0a",+ borderRadius: 24,+ border: "1px solid rgba(255,255,255,0.04)",+ }}+ />+ ))}+ </>+ );+}diff --git a/registry/remocn/perspective-marquee.tsx b/registry/remocn/perspective-marquee.tsxnew file mode 100644index 00000000..a3ba57ce--- /dev/null+++ b/registry/remocn/perspective-marquee.tsx@@ -0,0 +1,148 @@+"use client";++import { useCurrentFrame } from "remotion";++export interface PerspectiveMarqueeProps {+ items?: string[];+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ pixelsPerFrame?: number;+ rotateY?: number;+ rotateX?: number;+ perspective?: number;+ fadeColor?: string;+ background?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++const DEFAULT_ITEMS = [+ "Vercel",+ "Linear",+ "Stripe",+ "Figma",+ "Notion",+ "Raycast",+ "Arc",+ "Cursor",+];++export function PerspectiveMarquee({+ items = DEFAULT_ITEMS,+ fontSize = 84,+ color = "#fafafa",+ fontWeight = 700,+ pixelsPerFrame = 2,+ rotateY = -28,+ rotateX = 8,+ perspective = 1200,+ fadeColor = "#050505",+ background = "#050505",+ speed = 1,+ className,+}: PerspectiveMarqueeProps) {+ const frame = useCurrentFrame() * speed;++ // Approximate width of one full item set so the modulo wraps cleanly.+ const itemPadding = fontSize * 0.9;+ const approxItemWidth = items.reduce(+ (acc, item) => acc + item.length * fontSize * 0.6 + itemPadding,+ 0,+ );++ const offset = -((frame * pixelsPerFrame) % approxItemWidth);++ // Render the row 3x so the loop is seamless even when rotated in 3D.+ const rendered = [...items, ...items, ...items];++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ overflow: "hidden",+ perspective: `${perspective}px`,+ }}+ >+ <div+ style={{+ width: "100%",+ display: "flex",+ alignItems: "center",+ justifyContent: "flex-start",+ transform: `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`,+ transformStyle: "preserve-3d",+ }}+ >+ <div+ style={{+ display: "flex",+ whiteSpace: "nowrap",+ transform: `translateX(${offset}px)`,+ }}+ >+ {rendered.map((item, i) => {+ // Approximate this item's center X (relative to the marquee row,+ // including the rolling offset). Used to dial in depth-of-field blur+ // and opacity by horizontal position on screen.+ const itemCenter =+ i * (approxItemWidth / items.length) ++ approxItemWidth / items.length / 2 ++ offset;+ // Normalize roughly to [-1, 1] across a 1280px viewport.+ const norm = (itemCenter - 640) / 640;+ const distance = Math.min(1, Math.abs(norm));+ const blurPx = distance * 6;+ const opacity = 1 - distance * 0.4;++ return (+ <span+ key={i}+ style={{+ display: "inline-block",+ fontFamily: FONT_FAMILY,+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ paddingRight: itemPadding,+ filter: `blur(${blurPx}px)`,+ opacity,+ }}+ >+ {item}+ </span>+ );+ })}+ </div>+ </div>++ {/* Vignette to fade marquee edges into background */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ pointerEvents: "none",+ background: `linear-gradient(90deg, ${fadeColor} 0%, transparent 18%, transparent 82%, ${fadeColor} 100%)`,+ }}+ />+ <div+ style={{+ position: "absolute",+ inset: 0,+ pointerEvents: "none",+ background: `linear-gradient(180deg, ${fadeColor} 0%, transparent 25%, transparent 75%, ${fadeColor} 100%)`,+ }}+ />+ </div>+ );+}diff --git a/registry/remocn/progress-steps.tsx b/registry/remocn/progress-steps.tsxindex be64ce96..0584b0c9 100644--- a/registry/remocn/progress-steps.tsx+++ b/registry/remocn/progress-steps.tsx@@ -16,6 +16,7 @@ export interface ProgressStepsProps {background?: string;textColor?: string;stepDuration?: number;+ speed?: number;className?: string;}@@ -27,9 +28,10 @@ export function ProgressSteps({background = "#0a0a0a",textColor = "white",stepDuration = 30,+ speed = 1,className,}: ProgressStepsProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();const isHorizontal = orientation === "horizontal";diff --git a/registry/remocn/pulsing-indicator.tsx b/registry/remocn/pulsing-indicator.tsxindex 390cc60e..98bc6747 100644--- a/registry/remocn/pulsing-indicator.tsx+++ b/registry/remocn/pulsing-indicator.tsx@@ -5,6 +5,9 @@ import { useCurrentFrame } from "remotion";export interface PulsingIndicatorProps {color?: string;size?: number;+ /** Wavelength of the base pulse, in frames. Higher = longer one cycle. */+ period?: number;+ /** Playback speed multiplier (1 = normal, 2 = twice as fast). */speed?: number;background?: string;className?: string;@@ -13,20 +16,21 @@ export interface PulsingIndicatorProps {export function PulsingIndicator({color = "#22c55e",size = 16,- speed = 8,+ period = 8,+ speed = 1,background = "white",className,}: PulsingIndicatorProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;// Inner dot pulse: 0..1 normalized- const wave = Math.sin(frame / speed) * 0.5 + 0.5;+ const wave = Math.sin(frame / period) * 0.5 + 0.5;const dotScale = 0.9 + wave * 0.2;const dotOpacity = 0.6 + wave * 0.4;// Outer ring "ping": phase from 0..1 looping- const period = speed * Math.PI * 2;- const phase = (frame % period) / period;+ const ringPeriod = period * Math.PI * 2;+ const phase = (frame % ringPeriod) / ringPeriod;const ringScale = 1 + phase * 1.6;const ringOpacity = (1 - phase) * 0.7;diff --git a/registry/remocn/rgb-glitch-text.tsx b/registry/remocn/rgb-glitch-text.tsxnew file mode 100644index 00000000..6b2e6a79--- /dev/null+++ b/registry/remocn/rgb-glitch-text.tsx@@ -0,0 +1,121 @@+"use client";++import { random, useCurrentFrame } from "remotion";++export interface RGBGlitchTextProps {+ text: string;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ glitchAt?: number;+ glitchDuration?: number;+ intensity?: number;+ seed?: string;+ speed?: number;+ className?: string;+}++export function RGBGlitchText({+ text,+ fontSize = 96,+ color = "#171717",+ fontWeight = 700,+ glitchAt = 20,+ glitchDuration = 8,+ intensity = 6,+ seed = "glitch",+ speed = 1,+ className,+}: RGBGlitchTextProps) {+ const frame = useCurrentFrame() * speed;++ const isGlitching = frame >= glitchAt && frame < glitchAt + glitchDuration;++ const offset = (axisSeed: string, scale: number) =>+ (random(`${seed}-${axisSeed}-${frame}`) * 2 - 1) * scale;++ const rX = isGlitching ? offset("r-x", intensity) : 0;+ const rY = isGlitching ? offset("r-y", intensity * 0.4) : 0;+ const gX = isGlitching ? offset("g-x", intensity) : 0;+ const gY = isGlitching ? offset("g-y", intensity * 0.4) : 0;+ const bX = isGlitching ? offset("b-x", intensity) : 0;+ const bY = isGlitching ? offset("b-y", intensity * 0.4) : 0;++ const copyOpacity = isGlitching ? 1 : 0;++ const baseStyle: React.CSSProperties = {+ position: "absolute",+ top: 0,+ left: 0,+ fontSize,+ fontWeight,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ whiteSpace: "pre",+ mixBlendMode: "multiply",+ };++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "#fafafa",+ }}+ >+ <div+ className={className}+ style={{ position: "relative", display: "inline-block" }}+ >+ <span+ style={{+ position: "relative",+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ whiteSpace: "pre",+ }}+ >+ {text}+ </span>+ <span+ style={{+ ...baseStyle,+ color: "#ff0040",+ opacity: copyOpacity,+ transform: `translateX(${rX}px) translateY(${rY}px)`,+ }}+ >+ {text}+ </span>+ <span+ style={{+ ...baseStyle,+ color: "#00ff80",+ opacity: copyOpacity,+ transform: `translateX(${gX}px) translateY(${gY}px)`,+ }}+ >+ {text}+ </span>+ <span+ style={{+ ...baseStyle,+ color: "#0080ff",+ opacity: copyOpacity,+ transform: `translateX(${bX}px) translateY(${bY}px)`,+ }}+ >+ {text}+ </span>+ </div>+ </div>+ );+}diff --git a/registry/remocn/shimmer-sweep.tsx b/registry/remocn/shimmer-sweep.tsxnew file mode 100644index 00000000..1e2d04af--- /dev/null+++ b/registry/remocn/shimmer-sweep.tsx@@ -0,0 +1,76 @@+"use client";++import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface ShimmerSweepProps {+ text: string;+ baseColor?: string;+ shineColor?: string;+ fontSize?: number;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function ShimmerSweep({+ text,+ baseColor = "#3f3f46",+ shineColor = "#fafafa",+ fontSize = 96,+ fontWeight = 700,+ speed = 1,+ className,+}: ShimmerSweepProps) {+ const frame = useCurrentFrame() * speed;+ const { durationInFrames } = useVideoConfig();++ const position = interpolate(+ frame,+ [0, durationInFrames * 0.8],+ [200, -100],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const textStyle: React.CSSProperties = {+ fontSize,+ fontWeight,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ margin: 0,+ lineHeight: 1,+ };++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <div style={{ position: "relative", display: "inline-block" }}>+ <span style={{ ...textStyle, color: baseColor }}>{text}</span>+ <span+ className={className}+ style={{+ ...textStyle,+ position: "absolute",+ inset: 0,+ color: "transparent",+ backgroundClip: "text",+ WebkitBackgroundClip: "text",+ backgroundImage: `linear-gradient(110deg, transparent 30%, ${shineColor} 50%, transparent 70%)`,+ backgroundSize: "200% 100%",+ backgroundPosition: `${position}% 50%`,+ }}+ >+ {text}+ </span>+ </div>+ </div>+ );+}diff --git a/registry/remocn/simulated-cursor.tsx b/registry/remocn/simulated-cursor.tsxindex 9fc60ce8..169e425f 100644--- a/registry/remocn/simulated-cursor.tsx+++ b/registry/remocn/simulated-cursor.tsx@@ -14,6 +14,7 @@ export interface SimulatedCursorProps {color?: string;size?: number;background?: string;+ speed?: number;className?: string;}@@ -28,9 +29,10 @@ export function SimulatedCursor({color = "#ffffff",size = 32,background = "#0a0a0a",+ speed = 1,className,}: SimulatedCursorProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps, durationInFrames } = useVideoConfig();const travelPerLeg = 24;diff --git a/registry/remocn/slot-machine-roll.tsx b/registry/remocn/slot-machine-roll.tsxnew file mode 100644index 00000000..1651c6a2--- /dev/null+++ b/registry/remocn/slot-machine-roll.tsx@@ -0,0 +1,93 @@+"use client";++import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface SlotMachineRollProps {+ from?: string;+ to?: string;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function SlotMachineRoll({+ from = "$99",+ to = "$199",+ fontSize = 120,+ color = "#171717",+ fontWeight = 700,+ speed = 1,+ className,+}: SlotMachineRollProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const len = Math.max(from.length, to.length);+ const paddedFrom = from.padStart(len, " ");+ const paddedTo = to.padStart(len, " ");++ const columns = [];+ for (let i = 0; i < len; i++) {+ const raw = spring({+ frame: frame - i * 4,+ fps,+ config: { damping: 14 },+ });+ const t = Math.max(0, Math.min(1, raw));+ columns.push(+ <span+ key={i}+ style={{+ display: "inline-block",+ overflow: "hidden",+ height: "1.1em",+ lineHeight: "1.1em",+ verticalAlign: "top",+ width: "0.7em",+ textAlign: "center",+ }}+ >+ <span+ style={{+ display: "flex",+ flexDirection: "column",+ transform: `translateY(${-t * fontSize * 1.1}px)`,+ }}+ >+ <span>{paddedFrom[i]}</span>+ <span>{paddedTo[i]}</span>+ </span>+ </span>,+ );+ }++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ lineHeight: 1.1,+ }}+ >+ {columns}+ </span>+ </div>+ );+}diff --git a/registry/remocn/spotlight-card.tsx b/registry/remocn/spotlight-card.tsxnew file mode 100644index 00000000..26e276de--- /dev/null+++ b/registry/remocn/spotlight-card.tsx@@ -0,0 +1,165 @@+"use client";++import type { ReactNode } from "react";+import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface SpotlightCardProps {+ title?: string;+ body?: string;+ cardWidth?: number;+ cardHeight?: number;+ glowSize?: number;+ glowOpacity?: number;+ background?: string;+ cardColor?: string;+ textColor?: string;+ mutedColor?: string;+ speed?: number;+ className?: string;+ children?: ReactNode;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++/**+ * Smooth synthetic cursor path: a slow Lissajous figure-8 that tours the+ * card surface so the spotlight is always moving but never repeats jerkily.+ * Returns coordinates in card-local space (0..cardWidth, 0..cardHeight).+ */+function cursorAt(+ frame: number,+ cardWidth: number,+ cardHeight: number,+ durationInFrames: number,+) {+ const t = (frame / durationInFrames) * Math.PI * 2;+ const x = cardWidth / 2 + Math.sin(t) * (cardWidth * 0.42);+ const y = cardHeight / 2 + Math.sin(t * 2) * (cardHeight * 0.32);+ return { x, y };+}++export function SpotlightCard({+ title = "Spotlight Card",+ body = "Soft radial light follows the cursor, picking out the microborder.",+ cardWidth = 520,+ cardHeight = 320,+ glowSize = 600,+ glowOpacity = 0.08,+ background = "#050505",+ cardColor = "#0a0a0a",+ textColor = "#fafafa",+ mutedColor = "#71717a",+ speed = 1,+ className,+ children,+}: SpotlightCardProps) {+ const frame = useCurrentFrame() * speed;+ const { durationInFrames } = useVideoConfig();++ // 1-frame inertia: spotlight lags the cursor by a frame for organic feel.+ const cursor = cursorAt(+ Math.max(0, frame - 1),+ cardWidth,+ cardHeight,+ durationInFrames,+ );++ // Card fades up briefly at the start so the preview has a clean entrance.+ const cardOpacity = interpolate(frame, [0, 12], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const surfaceGlow = `radial-gradient(${glowSize}px circle at ${cursor.x}px ${cursor.y}px, rgba(255,255,255,${glowOpacity}), transparent 40%)`;+ const borderGlow = `radial-gradient(${glowSize * 0.6}px circle at ${cursor.x}px ${cursor.y}px, rgba(255,255,255,0.35), transparent 40%)`;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily: FONT_FAMILY,+ }}+ >+ {/* Border glow wrapper — 1px padding + masked radial gradient. */}+ <div+ style={{+ position: "relative",+ width: cardWidth,+ height: cardHeight,+ borderRadius: 20,+ padding: 1,+ background: borderGlow,+ opacity: cardOpacity,+ }}+ >+ {/* Card surface */}+ <div+ style={{+ position: "relative",+ width: "100%",+ height: "100%",+ borderRadius: 19,+ background: cardColor,+ overflow: "hidden",+ boxShadow: "0 30px 80px rgba(0,0,0,0.5)",+ }}+ >+ {/* Surface glow underlay */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: surfaceGlow,+ pointerEvents: "none",+ }}+ />++ {/* Card content */}+ <div+ style={{+ position: "relative",+ padding: 36,+ display: "flex",+ flexDirection: "column",+ gap: 12,+ height: "100%",+ justifyContent: "flex-end",+ }}+ >+ {children ?? (+ <>+ <div+ style={{+ fontSize: 28,+ fontWeight: 700,+ letterSpacing: "-0.02em",+ color: textColor,+ }}+ >+ {title}+ </div>+ <div+ style={{+ fontSize: 16,+ lineHeight: 1.5,+ color: mutedColor,+ maxWidth: 360,+ }}+ >+ {body}+ </div>+ </>+ )}+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/registry/remocn/spring-pop-in.tsx b/registry/remocn/spring-pop-in.tsxindex ad7491ff..88753610 100644--- a/registry/remocn/spring-pop-in.tsx+++ b/registry/remocn/spring-pop-in.tsx@@ -9,6 +9,7 @@ export interface SpringPopInProps {mass?: number;stiffness?: number;delayInFrames?: number;+ speed?: number;className?: string;}@@ -45,9 +46,10 @@ export function SpringPopIn({mass = 1,stiffness = 100,delayInFrames = 0,+ speed = 1,className,}: SpringPopInProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();const scale = spring({diff --git a/registry/remocn/staggered-bento-grid.tsx b/registry/remocn/staggered-bento-grid.tsxindex 6a08b71d..59e0e588 100644--- a/registry/remocn/staggered-bento-grid.tsx+++ b/registry/remocn/staggered-bento-grid.tsx@@ -20,6 +20,7 @@ export interface StaggeredBentoGridProps {background?: string;cardColor?: string;textColor?: string;+ speed?: number;className?: string;}@@ -38,12 +39,14 @@ function Card({item,cardColor,textColor,+ speed,}: {item: BentoItem;cardColor: string;textColor: string;+ speed: number;}) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();const progress = spring({@@ -107,6 +110,7 @@ export function StaggeredBentoGrid({background = "#0a0a0a",cardColor = "#1a1a1a",textColor = "white",+ speed = 1,className,}: StaggeredBentoGridProps) {return (@@ -134,10 +138,15 @@ export function StaggeredBentoGrid({{items.map((item, index) => (<Sequencekey={index}- from={index * staggerDelay}+ from={Math.round((index * staggerDelay) / speed)}layout="none">- <Card item={item} cardColor={cardColor} textColor={textColor} />+ <Card+ item={item}+ cardColor={cardColor}+ textColor={textColor}+ speed={speed}+ /></Sequence>))}</div>diff --git a/registry/remocn/staggered-fade-up.tsx b/registry/remocn/staggered-fade-up.tsxnew file mode 100644index 00000000..1a126904--- /dev/null+++ b/registry/remocn/staggered-fade-up.tsx@@ -0,0 +1,79 @@+"use client";++import { interpolate, useCurrentFrame } from "remotion";++export interface StaggeredFadeUpProps {+ text: string;+ staggerDelay?: number;+ distance?: number;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function StaggeredFadeUp({+ text,+ staggerDelay = 4,+ distance = 20,+ fontSize = 72,+ color = "#171717",+ fontWeight = 600,+ speed = 1,+ className,+}: StaggeredFadeUpProps) {+ const frame = useCurrentFrame() * speed;++ const words = text.split(" ");++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.03em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {words.map((word, i) => {+ const local = frame - i * staggerDelay;+ const opacity = interpolate(local, [0, 12], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const y = interpolate(local, [0, 12], [distance, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ return (+ <span+ key={i}+ style={{+ display: "inline-block",+ marginRight: "0.25em",+ opacity,+ transform: `translateY(${y}px)`,+ }}+ >+ {word}+ </span>+ );+ })}+ </span>+ </div>+ );+}diff --git a/registry/remocn/strikethrough-replace.tsx b/registry/remocn/strikethrough-replace.tsxindex 6440492e..d4cc978e 100644--- a/registry/remocn/strikethrough-replace.tsx+++ b/registry/remocn/strikethrough-replace.tsx@@ -9,6 +9,7 @@ export interface StrikethroughReplaceProps {fontSize?: number;color?: string;fontWeight?: number;+ speed?: number;className?: string;}@@ -19,9 +20,10 @@ export function StrikethroughReplace({fontSize = 48,color = "#171717",fontWeight = 600,+ speed = 1,className,}: StrikethroughReplaceProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();// Phases:diff --git a/registry/remocn/success-confetti.tsx b/registry/remocn/success-confetti.tsxindex 67e58d39..010081a2 100644--- a/registry/remocn/success-confetti.tsx+++ b/registry/remocn/success-confetti.tsx@@ -19,6 +19,7 @@ export interface SuccessConfettiProps {textColor?: string;background?: string;seed?: string;+ speed?: number;className?: string;}@@ -33,9 +34,10 @@ export function SuccessConfetti({textColor = "#171717",background = "#fafafa",seed = "remocn",+ speed = 1,className,}: SuccessConfettiProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps, durationInFrames } = useVideoConfig();const width = 1280;diff --git a/registry/remocn/terminal-simulator.tsx b/registry/remocn/terminal-simulator.tsxindex 628c0849..7b249bb0 100644--- a/registry/remocn/terminal-simulator.tsx+++ b/registry/remocn/terminal-simulator.tsx@@ -1,12 +1,6 @@"use client";-import {- Easing,- interpolate,- Sequence,- useCurrentFrame,- useVideoConfig,-} from "remotion";+import { Sequence, interpolate, useCurrentFrame, useVideoConfig } from "remotion";export type TerminalLineType = "command" | "log" | "success" | "error";@@ -14,6 +8,12 @@ export interface TerminalLine {text: string;type: TerminalLineType;delay?: number;+ /**+ * Extra freeze-frame pause AFTER this line finishes typing, in frames.+ * Use this to build dramatic tension before the next batch of logs.+ * If omitted, lines whose text ends in "..." auto-freeze for 18 frames.+ */+ pause?: number;}export interface TerminalSimulatorProps {@@ -23,17 +23,27 @@ export interface TerminalSimulatorProps {background?: string;chromeColor?: string;fontSize?: number;+ /**+ * Reveal speed. Despite the name, the reveal is now CHUNKED — each+ * `1 / charsPerFrame` frames bumps the cursor by `chunkSize` characters,+ * so output appears in bursts instead of dripping char-by-char.+ */charsPerFrame?: number;+ /** Characters revealed per step. */+ chunkSize?: number;+ speed?: number;className?: string;}const DEFAULT_LINES: TerminalLine[] = [{ text: "npm run build", type: "command", delay: 0 },- { text: "> [email protected] build", type: "log", delay: 8 },+ { text: "Resolving dependencies...", type: "log", delay: 6 },+ { text: "> [email protected] build", type: "log", delay: 4 },{ text: "> next build", type: "log", delay: 4 },- { text: "Compiled successfully in 4.2s", type: "success", delay: 18 },- { text: "Generating static pages (24/24)", type: "log", delay: 12 },- { text: "Build completed without errors", type: "success", delay: 14 },+ { text: "Compiling...", type: "log", delay: 12 },+ { text: "Compiled successfully in 4.2s", type: "success", delay: 14 },+ { text: "Generating static pages (24/24)", type: "log", delay: 10 },+ { text: "Build completed without errors", type: "success", delay: 12 },];const TYPE_COLORS: Record<TerminalLineType, string> = {@@ -43,6 +53,13 @@ const TYPE_COLORS: Record<TerminalLineType, string> = {error: "#ef4444",};+/** Auto freeze-frame heuristic: any line ending in "..." holds the camera. */+function autoPause(line: TerminalLine): number {+ if (line.pause !== undefined) return line.pause;+ if (line.text.trimEnd().endsWith("...")) return 18;+ return 0;+}+export function TerminalSimulator({lines = DEFAULT_LINES,prompt = "$",@@ -51,44 +68,39 @@ export function TerminalSimulator({chromeColor = "#1a1a1a",fontSize = 18,charsPerFrame = 1,+ chunkSize = 4,+ speed = 1,className,}: TerminalSimulatorProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();const lineHeight = Math.round(fontSize * 1.6);const visibleLines = 8;const windowWidth = 900;const windowHeight = 480;- const contentHeight = windowHeight - 60;- // Compute cumulative start frames for each line+ // Compute cumulative start frames for each line, including auto/explicit+ // pauses AFTER a line finishes typing.const starts: number[] = [];let acc = 10;for (let i = 0; i < lines.length; i++) {const delay = lines[i].delay ?? 8;acc += delay;starts.push(acc);- // Approximate typing duration so next line offsets after typing- acc += Math.ceil(lines[i].text.length / charsPerFrame);+ // Approximate typing duration (in frames) for chunked output.+ const typingFrames = Math.ceil(lines[i].text.length / (chunkSize * charsPerFrame));+ acc += typingFrames + autoPause(lines[i]);}- // Smooth scroll: each overflowing line eases the buffer up by one line over- // ~0.25s, instead of snapping. Deterministic — pure function of frame.- const scrollDuration = Math.max(1, Math.round(0.25 * fps));+ // STEP-FUNCTION scroll. Each overflowing line snaps the buffer up by+ // exactly one lineHeight on the frame it begins. No interpolation, no+ // easing — terminals do not glide.let translateY = 0;for (let i = visibleLines; i < lines.length; i++) {- const t = interpolate(- frame,- [starts[i], starts[i] + scrollDuration],- [0, 1],- {- extrapolateLeft: "clamp",- extrapolateRight: "clamp",- easing: Easing.out(Easing.cubic),- },- );- translateY -= t * lineHeight;+ if (frame >= starts[i]) {+ translateY -= lineHeight;+ }}return (@@ -130,30 +142,9 @@ export function TerminalSimulator({borderBottom: "1px solid rgba(255,255,255,0.06)",}}>- <div- style={{- width: 12,- height: 12,- borderRadius: "50%",- background: "#ff5f57",- }}- />- <div- style={{- width: 12,- height: 12,- borderRadius: "50%",- background: "#febc2e",- }}- />- <div- style={{- width: 12,- height: 12,- borderRadius: "50%",- background: "#28c840",- }}- />+ <Light color="#ff5f57" />+ <Light color="#febc2e" />+ <Light color="#28c840" /><divstyle={{flex: 1,@@ -182,13 +173,12 @@ export function TerminalSimulator({right: 20,top: 20,transform: `translateY(${translateY}px)`,- transition: "none",}}>{lines.map((line, index) => (<Sequencekey={index}- from={starts[index]}+ from={Math.round(starts[index] / speed)}layout="none"><TerminalLineRow@@ -197,7 +187,9 @@ export function TerminalSimulator({fontSize={fontSize}lineHeight={lineHeight}charsPerFrame={charsPerFrame}+ chunkSize={chunkSize}fps={fps}+ speed={speed}/></Sequence>))}@@ -208,28 +200,56 @@ export function TerminalSimulator({);}+function Light({ color }: { color: string }) {+ return (+ <div+ style={{+ width: 12,+ height: 12,+ borderRadius: "50%",+ background: color,+ opacity: 0.85,+ }}+ />+ );+}+function TerminalLineRow({line,prompt,fontSize,lineHeight,charsPerFrame,+ chunkSize,fps,+ speed,}: {line: TerminalLine;prompt: string;fontSize: number;lineHeight: number;charsPerFrame: number;+ chunkSize: number;fps: number;+ speed: number;}) {- const localFrame = useCurrentFrame();+ const localFrame = useCurrentFrame() * speed;const totalChars = line.text.length;- const revealed = Math.floor(- interpolate(localFrame, [0, totalChars / charsPerFrame], [0, totalChars], {- extrapolateLeft: "clamp",- extrapolateRight: "clamp",- }),++ // Chunked reveal: Math.floor of an interpolated count, then snapped to the+ // nearest multiple of `chunkSize`. This is what gives the bursty terminal+ // feel — text doesn't drip, it lurches.+ const linearRevealed = Math.floor(+ interpolate(+ localFrame,+ [0, totalChars / charsPerFrame],+ [0, totalChars],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ ),+ );+ const revealed = Math.min(+ totalChars,+ Math.ceil(linearRevealed / chunkSize) * chunkSize,);const visible = line.text.substring(0, revealed);const typingDone = revealed >= totalChars;diff --git a/registry/remocn/text-fade-replace.tsx b/registry/remocn/text-fade-replace.tsxindex 13979dc5..67a201a0 100644--- a/registry/remocn/text-fade-replace.tsx+++ b/registry/remocn/text-fade-replace.tsx@@ -8,6 +8,7 @@ export interface TextFadeReplaceProps {fontSize?: number;color?: string;fontWeight?: number;+ speed?: number;className?: string;}@@ -17,9 +18,10 @@ export function TextFadeReplace({fontSize = 48,color = "#171717",fontWeight = 600,+ speed = 1,className,}: TextFadeReplaceProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();const stops = [diff --git a/registry/remocn/toast-notification.tsx b/registry/remocn/toast-notification.tsxindex 04a3dfa9..e87caa56 100644--- a/registry/remocn/toast-notification.tsx+++ b/registry/remocn/toast-notification.tsx@@ -17,6 +17,7 @@ export interface ToastNotificationProps {cardColor?: string;textColor?: string;mutedColor?: string;+ speed?: number;className?: string;}@@ -79,9 +80,10 @@ export function ToastNotification({cardColor = "white",textColor = "#171717",mutedColor = "#71717a",+ speed = 1,className,}: ToastNotificationProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps, durationInFrames } = useVideoConfig();const enterFrames = 15;diff --git a/registry/remocn/tracking-in.tsx b/registry/remocn/tracking-in.tsxnew file mode 100644index 00000000..9f94fa38--- /dev/null+++ b/registry/remocn/tracking-in.tsx@@ -0,0 +1,77 @@+"use client";++import {+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export interface TrackingInProps {+ text: string;+ startTracking?: number;+ startBlur?: number;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function TrackingIn({+ text,+ startTracking = 0.5,+ startBlur = 12,+ fontSize = 96,+ color = "#171717",+ fontWeight = 700,+ speed = 1,+ className,+}: TrackingInProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const t = spring({+ frame,+ fps,+ config: { damping: 18, stiffness: 90 },+ });++ const letterSpacing =+ interpolate(t, [0, 1], [startTracking, -0.03]) + "em";+ const blurAmount = interpolate(t, [0, 1], [startBlur, 0]);+ const opacity = interpolate(frame, [0, 15], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "white",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing,+ opacity,+ filter: `blur(${blurAmount}px)`,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ whiteSpace: "nowrap",+ }}+ >+ {text}+ </span>+ </div>+ );+}diff --git a/registry/remocn/typewriter.tsx b/registry/remocn/typewriter.tsxindex bfdeafe1..9d280b61 100644--- a/registry/remocn/typewriter.tsx+++ b/registry/remocn/typewriter.tsx@@ -5,6 +5,9 @@ import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";export interface TypewriterProps {text: string;cursor?: boolean;+ /** Typing speed in characters per second. */+ charsPerSecond?: number;+ /** Playback speed multiplier (1 = normal, 2 = twice as fast). */speed?: number;fontSize?: number;color?: string;@@ -16,17 +19,18 @@ export interface TypewriterProps {export function Typewriter({text,cursor = true,- speed = 20,+ charsPerSecond = 20,+ speed = 1,fontSize = 48,color = "#171717",cursorColor = "#171717",fontWeight = 600,className,}: TypewriterProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { fps } = useVideoConfig();- const charsToRevealOver = (text.length / speed) * fps;+ const charsToRevealOver = (text.length / charsPerSecond) * fps;const revealed = Math.floor(interpolate(frame, [0, charsToRevealOver], [0, text.length], {diff --git a/registry/remocn/volumetric-rays.tsx b/registry/remocn/volumetric-rays.tsxnew file mode 100644index 00000000..910980cb--- /dev/null+++ b/registry/remocn/volumetric-rays.tsx@@ -0,0 +1,151 @@+"use client";++import { interpolate, useCurrentFrame } from "remotion";++export interface VolumetricRaysProps {+ text?: string;+ fontSize?: number;+ fontWeight?: number;+ rayColor?: string;+ background?: string;+ textColor?: string;+ intensity?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++/**+ * Layered "god rays" effect built entirely from CSS / SVG masks. The trick:+ *+ * 1. Render the same text twice. Back layer is scaled wider than tall and+ * heavily blurred — that's the "halo" the rays bloom out of.+ * 2. Sweep an SVG conic-gradient mask above the text to look like rotating+ * light shafts pushing through the lettering.+ * 3. The front layer is solid (silhouette) so the contrast reads as light+ * pushing AROUND the letters rather than ON them.+ */+export function VolumetricRays({+ text = "REMOCN",+ fontSize = 240,+ fontWeight = 800,+ rayColor = "#fcd34d",+ background = "#050505",+ textColor = "#050505",+ intensity = 1,+ speed = 1,+ className,+}: VolumetricRaysProps) {+ const frame = useCurrentFrame() * speed;++ // Slow source rotation: the rays drift around their origin so the scene+ // never looks frozen even though motion is sub-conscious.+ const rotation = interpolate(frame, [0, 240], [-4, 8]);+ // Bloom intensity ramps in over the first second.+ const bloomOpacity = interpolate(frame, [0, 30], [0, 0.95 * intensity], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ // Halo color slowly pulses with a sine wave.+ const haloPulse = 0.6 + Math.sin(frame / 14) * 0.15;++ const sharedTextStyle: React.CSSProperties = {+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontFamily: FONT_FAMILY,+ fontSize,+ fontWeight,+ letterSpacing: "-0.04em",+ textAlign: "center",+ whiteSpace: "nowrap",+ };++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background,+ overflow: "hidden",+ }}+ >+ {/* 1. The bloom: same text, scaled and blurred, anchored to bottom so+ the light "rises" from below the baseline. */}+ <div+ style={{+ ...sharedTextStyle,+ color: rayColor,+ filter: `blur(${60 * intensity}px)`,+ transform: "scale(1.2, 1.6)",+ transformOrigin: "center bottom",+ opacity: bloomOpacity * haloPulse,+ }}+ >+ {text}+ </div>++ {/* 2. Conic-gradient ray mask, masked by the text shape via background-clip.+ We render a wide conic gradient inside a text-shaped clip so the+ "light shafts" only show up where letters are. */}+ <div+ style={{+ ...sharedTextStyle,+ backgroundImage: `conic-gradient(from ${rotation}deg at 50% 100%,+ transparent 0deg,+ ${rayColor} 20deg,+ transparent 40deg,+ ${rayColor} 80deg,+ transparent 100deg,+ ${rayColor} 140deg,+ transparent 160deg,+ ${rayColor} 200deg,+ transparent 220deg,+ ${rayColor} 260deg,+ transparent 280deg,+ ${rayColor} 320deg,+ transparent 360deg)`,+ color: "transparent",+ WebkitBackgroundClip: "text",+ backgroundClip: "text",+ opacity: 0.5 * intensity,+ filter: "blur(2px)",+ }}+ >+ {text}+ </div>++ {/* 3. Front silhouette: solid dark text on top so the eye reads+ "letters in front of light" instead of "lit-up letters". */}+ <div+ style={{+ ...sharedTextStyle,+ color: textColor,+ textShadow: `0 0 ${30 * intensity}px ${rayColor}`,+ }}+ >+ {text}+ </div>++ {/* 4. Floor light bleed — wide horizontal radial gradient at the+ baseline so the rays feel grounded. */}+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ bottom: 0,+ height: 200,+ pointerEvents: "none",+ background: `radial-gradient(ellipse at 50% 100%, ${rayColor}55 0%, transparent 60%)`,+ opacity: bloomOpacity,+ }}+ />+ </div>+ );+}diff --git a/registry/remocn/zoom-through-transition.tsx b/registry/remocn/zoom-through-transition.tsxindex 378b5be6..9816f748 100644--- a/registry/remocn/zoom-through-transition.tsx+++ b/registry/remocn/zoom-through-transition.tsx@@ -8,6 +8,7 @@ export interface ZoomThroughTransitionProps {targetScale?: number;transformOrigin?: string;background?: string;+ speed?: number;className?: string;}@@ -43,9 +44,10 @@ export function ZoomThroughTransition({targetScale = 20,transformOrigin = "center center",background = "white",+ speed = 1,className,}: ZoomThroughTransitionProps) {- const frame = useCurrentFrame();+ const frame = useCurrentFrame() * speed;const { durationInFrames } = useVideoConfig();const scale = interpolate(