Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: improve docs structure, new animations
dev_wandrye01a66bd57d9
diff --git a/CLAUDE.md b/CLAUDE.mdindex 51fcd93c..7f16a20f 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -46,8 +46,6 @@ pnpm build # сборка всех пакетов## Компоненты-Категория 1: Типографика и Текст (Typography & Text)-Название: <BlurReveal />Короткое описание: Плавное появление текста с эффектом фокусировки.Подробное описание эффекта: Текст переходит из полностью прозрачного и сильно размытого состояния в четкое.@@ -123,7 +121,6 @@ Remotion implementation: Использование CSS-свойства mask-imПодробное описание эффекта: Лента текста, которая бесконечно и плавно движется по горизонтали. Часто используется крупным, контурным шрифтом (stroke) на фоне.Remotion implementation: Контейнер с текстом дублируется 2-3 раза в ряд. Анимируется transform: translateX всего родителя от 0% до -100% (ширина одного оригинального блока) линейно через interpolate. При достижении -100% анимация зацикливается, визуально создавая бесконечный поток.-Категория 2: Фоны и Атмосфера (Backgrounds)Название: <MeshGradientBg />Короткое описание: Живой, плавно переливающийся градиентный фон.@@ -136,7 +133,6 @@ Remotion implementation (Продвинутая): * Вместо тяжелыхПодробное описание эффекта: Медленно движущаяся сетка.Remotion implementation: CSS linear-gradient или SVG <pattern>. Для движения интерполируем transform: translate() контейнера с сеткой (согласно transforms.md, анимировать translate дешевле для браузера, чем background-position).-Категория 3: Базовые UI-примитивы (UI Elements)Название: <SpringPopIn />Короткое описание: Эластичное появление элемента.@@ -157,7 +153,6 @@ Remotion implementation:Подробное описание эффекта: Непрерывная пульсация.Remotion implementation: Использование Math.sin(frame / скорость) для генерации цикличного значения от -1 до 1, которое затем мапится через интерполяцию в scale от 0.9 до 1.1.-Категория 4: Сложные композиции (Layouts & Compositions)Название: <StaggeredBentoGrid />Короткое описание: Каскадное появление сетки карточек.@@ -175,7 +170,6 @@ Remotion implementation: Flexbox с интерполяцией flex-basis илиПодробное описание эффекта: Появление рамки выделения.Remotion implementation: Для точного позиционирования рамки вокруг переданного children можно использовать хук measuring.md, если размер неизвестен заранее, или требовать от пользователя передачи явных width / height пропсов для производительности.-Категория 5: Переходы и Камера (Transitions & Camera)Название: <DirectionalWipe /> (и Slide/Pan)Короткое описание: Классический сдвиг экрана.@@ -196,7 +190,6 @@ Remotion implementation:Подробное описание эффекта: Резкое увеличение сцены.Remotion implementation: Интерполяция scale с сильным ускорением (экспоненциальным или с помощью агрессивного easing). Крайне важно использовать transform-origin, нацеленный точно на центр элемента, "сквозь" который мы пролетаем.-Категория 6: Визуализация данных (Data Visualization)Название: <AnimatedLineChart /> / <AnimatedBarChart />Короткое описание: Оживающие графики для дашбордов.@@ -205,7 +198,6 @@ Remotion implementation: * Линии: Использование SVG <path>. АСтолбцы: spring анимация scaleY для <rect>, с обязательным transform-origin: bottom.Математика: Использование remotion/animation-math для плавного накручивания чисел (count-up).-Категория 7: Специфичные Dev-блоки (Dev & CLI)Название: <TerminalSimulator />Короткое описание: Окно консоли с выводом логов.@@ -220,7 +212,6 @@ Remotion implementation: * Массив объектов { text: string, type: 'Remotion implementation: * Два слоя (компонента), наложенных друг на друга (position: absolute).Верхний слой анимируется через CSS clip-path: inset(0 X% 0 0) (или polygon), где X интерполируется от 100 до 0 с помощью spring или плавной interpolate.-Категория 8: Микроинтеракции (Micro-interactions)Название: <ToastNotification />Короткое описание: Всплывающее системное уведомление.@@ -237,7 +228,6 @@ Remotion implementation:Объединение <SimulatedCursor> и компонента зоны загрузки.Синхронизация по кадрам: когда координаты курсора совпадают с зоной загрузки, зона использует interpolateColors для подсветки. После "клика" (отпускания) запускается Sequence с анимацией <PulsingIndicator> или растущего width у прогресс-бара.-Категория 9: Процессы и Статусы (Workflows)Название: <ProgressSteps /> / <Timeline />Короткое описание: Визуализация многошагового процесса.@@ -395,4 +385,135 @@ Remotion implementation (Продвинутая):Обычный переход transform: translateX(), но выполняющийся очень быстро (5-8 кадров).В момент пиковой скорости (например, кадры 3, 4 и 5) добавляем к контейнеру CSS-свойство filter: drop-shadow(-8px 0 0 rgba(255,0,0,0.8)) drop-shadow(8px 0 0 rgba(0,255,255,0.8)).Как только скорость падает, drop-shadow должен мгновенно исчезнуть.-Taste detail: Главное правило глитча — его не должно быть много. Эффект хроматической аберрации должен длиться ровно столько, чтобы зритель почувствовал скорость подсознательно, но не успел разглядеть цвета. 3-4 кадра максимум.\ No newline at end of file+Taste detail: Главное правило глитча — его не должно быть много. Эффект хроматической аберрации должен длиться ровно столько, чтобы зритель почувствовал скорость подсознательно, но не успел разглядеть цвета. 3-4 кадра максимум.+++Название: <HeroDeviceAssemble /> (Сборка мокапа)+Короткое описание: 3D-подобная послойная сборка устройства (ноутбука/телефона) с интерфейсом.+Подробное описание эффекта: В пустом пространстве парят слои: задняя крышка ноутбука, клавиатура, рамка экрана и сам UI-интерфейс. Они находятся на разной глубине (по оси Z) и слегка наклонены. С мощным, пружинистым движением все слои "схлопываются" в единый мокап ноутбука, который разворачивается лицом к зрителю.+Remotion implementation (Продвинутая): * Родительский контейнер имеет perspective: 2000px.+Каждый "слой" (изображения в формате PNG/WebP с альфа-каналом) позиционируется абсолютно.+Используется один общий spring, значение которого мапится через interpolate для каждого слоя: translateZ уходит от огромных значений (например, 1000px, 500px) в 0, а rotateX/Y родителя выравнивается в 0deg.+Taste detail: Интерфейс на экране не должен быть виден во время полета. Экран ноутбука должен быть черным. Как только слои соприкасаются (с глухим ударом damping: 12), интерфейс плавно "включается" (opacity: 0 -> 1) с легким <ShimmerSweep>, имитируя пробуждение дисплея.++Название: <EcosystemConstellation /> (Орбиты интеграций)+Короткое описание: Логотип продукта в центре притягивает к себе экосистему других сервисов.+Подробное описание эффекта: Ваш логотип (например, буква V) пульсирует в центре. Из-за границ экрана вылетают логотипы интеграций (GitHub, Slack, Stripe) и начинают плавно вращаться вокруг центрального логотипа по орбитам. Между ними вспыхивают лучи передачи данных.+Remotion implementation (Продвинутая):+Центр — статичный компонент. Орбиты — это математика: координаты спутников вычисляются через Math.cos(frame / speed) * radius для X и Math.sin(frame / speed) * radius для Y.+Вылет спутников: радиус орбиты анимируется через spring от 150% экрана до нужной орбиты (например, 300px).+Соединительные линии отрисовываются динамически через SVG <line>, координаты концов которых привязаны к центру и текущим координатам спутников.+Taste detail: Орбиты не должны быть идеальными кругами (используйте легкий сплайн или эллипс). При вспышке линии передачи данных, логотип на конце орбиты должен сделать микро-увеличение (scale: 1.1), симулируя получение пакета данных.++Название: <AIGenerationCanvas /> (От Промпта к UI)+Короткое описание: Окно ввода промпта трансформируется в готовую страницу.+Подробное описание эффекта: Пользователь вводит текст в поле "Сгенерируй дашборд". Поле ввода отрывается от центра, улетает вверх, превращаясь в шапку (header). Под ним мгновенно появляется <SkeletonShimmer> (скелетный лоадер) макета дашборда. Через секунду "кости" скелета последовательно переворачиваются (<CardFlip3D>), открывая готовые графики и таблицы.+Remotion implementation (Продвинутая):+Комбинация LayoutProjection (или ручной интерполяции координат инпута).+<Sequence> для координации стадий: 1. Ввод (Typewriter). 2. Трансформация (Spring top/width). 3. Скелетоны (Fade). 4. Рендер данных (Staggered CardFlip).+Taste detail: Скелетные лоадеры не должны мерцать серым. В стиле Linear они должны мерцать еле заметным, темным брендовым градиентом (например, глубоким фиолетовым на черном фоне), показывая магию AI.++Название: <LiveCodeCompilation /> (Код оживает)+Короткое описание: Синхронный сплит-скрин: слева пишется код, справа в реальном времени собирается UI.+Подробное описание эффекта: Слева <Typewriter> очень быстро печатает React-компонент (например, кнопку). Как только печатается строчка color="blue", на превью справа кнопка мгновенно красится в синий. Печатается rounded-full — углы закругляются.+Remotion implementation (Продвинутая):+Требуется точная привязка по кадрам. Массив "событий кода": { frame: 120, codeToType: 'borderRadius: "999px"', uiProps: { radius: 999 } }.+Правая часть (UI) не использует spring для появления новых свойств. Она реагирует на текущий кадр: если frame > 120, применяется новое CSS-свойство.+Taste detail: UI справа не должен меняться плавно (никаких CSS-транзишенов!). Он должен меняться резко, в 1 кадр, имитируя Hot Module Replacement (HMR) в современных бандлерах вроде Vite.++Название: <PipelineJourney /> (Жизненный цикл задачи)+Короткое описание: Карточка задачи летит по Kanban-доске, триггеря события.+Подробное описание эффекта: Карточка (Ticket) выпрыгивает из колонки "Todo", летит по воздуху в колонку "In Progress". При приземлении запускается таймер. Затем она летит в "Done", и при касании колонки из нее вылетает <SuccessConfetti>.+Remotion implementation (Продвинутая):+Карточка вырвана из потока (position: absolute). Ее координаты (X, Y) жестко интерполируются между центрами колонок.+Полет: помимо изменения X и Y, используется spring на свойство scale (увеличивается в середине полета, уменьшается при посадке) и box-shadow (становится огромной), чтобы создать иллюзию отрыва от доски.+Taste detail: Во время перелета карточка должна слегка накрениться по ходу движения (rotateZ: 3deg), подчиняясь аэродинамике. При посадке колонка-получатель должна микро-мигнуть фоном (background: rgba(255,255,255,0.05)).++Название: <DashboardPopulate /> (Каскадное оживление графиков)+Короткое описание: Пустой дашборд красиво наполняется данными.+Подробное описание эффекта: Появляется сетка пустых виджетов с осями X и Y. Затем одновременно (но с легким каскадом) стартуют анимации: кривые графиков рисуются слева направо, столбцы гистограмм вырастают, счетчики (KPI) бешено крутятся от 0 до финальных значений.+Remotion implementation (Продвинутая):+Дашборд собирается из <AnimatedLineChart>, <AnimatedBarChart> и <MathCounter>.+Все обернуто в <Sequence>, чтобы отложить старт анимации данных до момента, когда сам дашборд выедет на экран.+Taste detail: Сначала рисуется структура: оси, сетка (grid lines), легенда (fade in). И только спустя 15-20 кадров запускается агрессивная заливка данных цветом. Данные должны появляться с сильным spring (отскоком).++Название: <TerminalToBrowserDeploy /> (От консоли к продакшену)+Короткое описание: Завершение деплоя в CLI мгновенно открывает живой сайт.+Подробное описание эффекта: В терминале пробегает строка Deployed to production: https://vercel.app. Терминал мгновенно уменьшается в масштабе и размывается. Прямо из этой ссылки в консоли "вырастает" окно браузера с готовым лендингом продукта.+Remotion implementation (Продвинутая):+<TerminalSimulator> останавливает работу. Интерполируем его scale: 1 -> 0.8 и filter: blur(10px).+Окно <BrowserFlow> изначально скрыто (scale: 0, opacity: 0, transform-origin: bottom center). Оно появляется поверх терминала с жестким spring.+Taste detail: Переход должен быть бесшовным. Окно браузера должно вылетать не из центра экрана, а визуально из той самой строчки с URL-адресом в консоли (используйте правильный transform-origin и translate).++Название: <BrowserFlow /> (Жизнь в браузере)+Короткое описание: Полная симуляция Safari/Chrome от ввода URL до скролла.+Подробное описание эффекта: Пустое окно macOS. В адресную строку быстро вбивается URL (с автодополнением). Синяя полоска прогресса пробегает под адресной строкой. Страница загружается. Виртуальный курсор едет вниз, а страница плавно скроллится (parallax), пока курсор не кликнет на нужную кнопку.+Remotion implementation (Продвинутая):+Комплексная обертка. Верхний бар браузера — SVG-компонент. Строка ввода использует <Typewriter>.+Полоска загрузки: width: 0% -> 100% за 20 кадров, затем opacity -> 0.+Скролл страницы: Внутренний контейнер сдвигается через translateY(negativeValue). Движение <SimulatedCursor> должно синхронизироваться со скроллом (добавлять смещение translateY к своим координатам Y).+Taste detail: Симуляция задержки сети. После нажатия "Enter" в адресной строке прогресс-бар должен застыть на 15% на пару кадров, а потом резко прыгнуть до 100%. Это добавит реализма.++Название: <PricingTierFocus /> (Продающий акцент на тарифе)+Короткое описание: Выделение главного тарифа в прайсинге с затемнением остальных.+Подробное описание эффекта: Классическая таблица из 3 тарифов (Free, Pro, Enterprise). Камера слегка наезжает на тариф "Pro". Карточка "Pro" увеличивается, поднимается над остальными (падает густая тень), а карточки по бокам уходят в расфокус и затемняются.+Remotion implementation (Продвинутая):+Для центральной карточки: интерполяция scale(1) -> scale(1.05), translateY(0) -> translateY(-20px), z-index: 10.+Для боковых: интерполяция filter: brightness(1) blur(0) -> brightness(0.4) blur(4px), scale(1) -> scale(0.95).+Taste detail: На карточке "Pro" должна активироваться анимация <SpotlightCard> или пробежать блик по кнопке "Buy", чтобы сделать её максимально притягательной в момент наезда камеры.++Название: <InfiniteBentoPan /> (Бесконечная стена фичей)+Короткое описание: Камера плавно скользит над гигантской, бесконечной сеткой карточек.+Подробное описание эффекта: Экран полностью заставлен Bento-карточками разных размеров. Камера (окно просмотра) медленно, диагонально плывет над этой сеткой. Карточки, которые оказываются в самом центре, слегка подсвечиваются, а те, что по краям экрана — погружаются во мрак.+Remotion implementation (Продвинутая):+Создается "супер-контейнер", размеры которого в 3-4 раза превышают 1080x1920. В нем рендерится сетка карточек.+Анимируется родительский контейнер (камера) через transform: translate(-Xpx, -Ypx) с использованием линейной интерполяции на очень длинной дистанции (например, 600 кадров).+Виньетка (radial-gradient от прозрачного к черному) накладывается поверх всего absolute слоем, скрывая края сетки.+Taste detail: Это эффект для завершения видео (Outro). Движение должно быть непрерывным и гипнотическим. Карточки внутри сетки могут иметь микро-анимации (крутящиеся графики), но основное внимание приковано к масштабу самого продукта.+++Название: <ImageExpandToFullscreen /> (Развертывание картинки)+Короткое описание: Изображение плавно перетекает из превью в ленте в полноэкранный режим редактирования.+Подробное описание эффекта: Пользователь кликает на изображение (или иконку редактирования) в посте. Окно интерфейса поста плавно исчезает (fade out / scale down), а само изображение бесшовно увеличивается (scale) и сдвигается (translate), чтобы занять центральное место на темном фоне редактора. Панели инструментов выезжают сверху и снизу.+Remotion implementation (Продвинутая):+Это классический LayoutProjection (или Shared Element Transition).+Необходимо знать начальные координаты и размер изображения в посте (bounding box) и целевые координаты в редакторе.+Используем один spring() для интерполяции width, height, top и left.+Одновременно интерполируем opacity панелей инструментов (от 0 до 1) и их позицию (сдвиг из-за краев экрана).+Taste detail: Переход должен ощущаться как непрерывное физическое движение одного и того же объекта. Никаких жестких скачков. Используйте spring с умеренным stiffness и небольшим damping, чтобы изображение как бы "встало на место" с легкой упругостью.++Название: <AIGenerateOverlay /> (Оверлей генерации ИИ)+Короткое описание: Размытие текущего изображения с пульсирующей сеткой и индикатором загрузки во время работы ИИ.+Подробное описание эффекта: Когда пользователь вводит промпт (например, "Exhibit this painting in a museum") и отправляет его, оригинальное изображение сильно размывается. Поверх него появляется тонкая сетка из точек (dot matrix), которая слегка мерцает, и плавающий индикатор "Generating...". Затем новое изображение плавно проявляется поверх старого.+Remotion implementation (Продвинутая):+Размытие: Интерполяция filter: blur() от 0 до, например, 20px.+Сетка: SVG <pattern> с мелкими кружочками. Можно анимировать opacity отдельных кружочков через noise2D для эффекта мерцания, либо просто плавно пульсировать прозрачностью всей сетки.+Переход: Новое изображение накладывается поверх старого (которое все еще размыто). Анимируем opacity нового изображения от 0 до 1, после чего убираем старое изображение.+Taste detail: Размытие должно происходить быстро, но не мгновенно. Мерцающая сетка добавляет технологичности и показывает, что "под капотом" работает сложная нейросеть. Индикатор "Generating..." может иметь легкое пульсирующее свечение.++Название: <ToolMenuSlideIn /> (Выезд кругового/горизонтального меню)+Короткое описание: Панель с иконками инструментов плавно выезжает на экран.+Подробное описание эффекта: При активации режима редактирования или выборе конкретного инструмента (например, Draw Blur), панель с вариантами (размер кисти, цвета и т.д.) плавно сдвигается из-за края экрана или "вырастает" из кнопки активации.+Remotion implementation (Продвинутая):+Панель позиционируется абсолютно (например, bottom: -100px).+Используем spring() для анимации translateY от 100% до 0%.+Для дополнительного изящества можно использовать <Sequence> с небольшим stagger (задержкой) для появления самих иконок внутри панели (они могут слегка увеличиваться из scale: 0).+Taste detail: Движение должно быть быстрым и "хлестким" (snappy). Панель не должна медленно ползти.++Название: <BrushStrokeSimulator /> (Симуляция рисования/размытия кистью)+Короткое описание: Визуализация движения пальца/курсора, применяющего эффект к изображению.+Подробное описание эффекта: В режиме "Draw blur" (0:12 - 0:15) мы видим полупрозрачный белый круг (симулятор пальца), который перемещается по лицам людей. Там, где он проходит, изображение мгновенно размывается (пикселизуется в данном случае).+Remotion implementation (Продвинутая):+Курсор: SVG круг, позиция которого (x, y) анимируется с помощью кривых Безье (как в нашем <CursorFlow>).+Эффект (Сложная часть): Идеально реализуется через маски. У нас есть два слоя: нижний (оригинальное фото) и верхний (полностью размытое фото). Верхний слой скрыт с помощью mask-image. По мере движения курсора мы программно "рисуем" (добавляем пути) в SVG маску, открывая размытый слой в нужных местах.+В Remotion это можно сделать, накапливая точки (waypoints) в массиве на каждом кадре и генерируя атрибут d для <path> внутри <clipPath>.+Taste detail: Движение "пальца" должно быть естественным, с ускорениями и замедлениями на поворотах. Сам кружок курсора должен слегка менять scale (уменьшаться) при "нажатии" и увеличиваться при отпускании.++Название: <SwipeTransitionWipe /> (Переход смахиванием)+Короткое описание: Смена изображения или инструмента путем смахивания (свайпа) по экрану.+Подробное описание эффекта: При смене фильтров или переключении между старым и новым изображением (например, на 0:08, хотя там скорее fade, но концепция важна для мобильных UI), текущий вид уезжает влево/вправо, а новый выезжает вслед за ним.+Remotion implementation (Продвинутая):+Контейнер, внутри которого два элемента расположены рядом по горизонтали (display: flex).+Анимируем transform: translateX всего контейнера.+Для симуляции свайпа пользователя используем spring с настраиваемым начальным импульсом (velocity), чтобы движение казалось естественным продолжением жеста пальца.+Taste detail: При свайпе можно добавить легкий эффект параллакса (задний план движется чуть медленнее переднего) или небольшое затемнение уходящего слоя.\ No newline at end of filediff --git a/content/docs/backgrounds/index.mdx b/content/docs/backgrounds/index.mdxdeleted file mode 100644index ecd37b69..00000000--- a/content/docs/backgrounds/index.mdx+++ /dev/null@@ -1,23 +0,0 @@-----title: Backgrounds-description: Living, atmospheric backgrounds for video scenes.------Backdrops, gradients, and noise patterns for full-frame compositions. All deterministic, all built on Remotion's frame-based rendering.--<ComponentCardGrid- items={[- {- name: "MeshGradientBg",- description: "Living gradient with amorphous color blobs slowly drifting across the frame.",- status: "stable",- href: "/docs/backgrounds/mesh-gradient-bg",- },- {- name: "DynamicGrid",- description: "Subtle moving grid background with configurable cell size and direction.",- status: "stable",- href: "/docs/backgrounds/dynamic-grid",- },- ]}-/>diff --git a/content/docs/compositions/ai-generation-canvas.mdx b/content/docs/compositions/ai-generation-canvas.mdxnew file mode 100644index 00000000..64332e2e--- /dev/null+++ b/content/docs/compositions/ai-generation-canvas.mdx@@ -0,0 +1,60 @@+---+title: AI Generation Canvas+description: A prompt input morphs into a dashboard header, then skeletons flip to reveal generated content.+---++A four-phase composition that tells the story of AI generation in one shot. The prompt types into a centered input, the input springs upward and stretches into a header bar, brand-tinted skeleton cards fade in beneath it, then each card flips on its Y axis to reveal the rendered dashboard content with a staggered cascade.++<ComponentPreview name="ai-generation-canvas" />++## Installation++<InstallBlock name="ai-generation-canvas" />++## Usage++```tsx+import { AIGenerationCanvas } from "@/components/remocn/ai-generation-canvas";++<AIGenerationCanvas+ prompt="Generate a dashboard"+ accentColor="#7c3aed"+ cardCount={4}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "prompt",+ type: "string",+ default: '"Generate a dashboard"',+ description: "Text typed into the input during the first phase.",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#7c3aed"',+ description: "Brand color used for the input border, shimmer tint, and chart accents.",+ },+ {+ name: "cardCount",+ type: "number",+ default: "4",+ description: "Number of skeleton cards rendered and revealed in the dashboard grid.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Skeletons should not feel like loading spinners">+ The shimmer is intentionally tinted with the accent color at low alpha rather than the usual neutral gray. That single detail reframes the wait as anticipation — it reads as the model thinking, not as the network stalling.+</Note>diff --git a/content/docs/compositions/browser-flow.mdx b/content/docs/compositions/browser-flow.mdxnew file mode 100644index 00000000..6a1f627e--- /dev/null+++ b/content/docs/compositions/browser-flow.mdx@@ -0,0 +1,50 @@+---+title: Browser Flow+description: A full Safari/Chrome simulation from URL typing to scroll and click.+---++A complete browser interaction in one block. The address bar takes focus, the URL types itself in (with an autocomplete suggestion that follows along), the loading bar stalls at 15% before snapping to 100%, the page renders, and a virtual cursor arcs down toward a CTA — clicking it with a real scale dip and a synchronous press on the button. Every phase is frame-deterministic.++<ComponentPreview name="browser-flow" />++## Installation++<InstallBlock name="browser-flow" />++## Usage++```tsx+import { BrowserFlow } from "@/components/remocn/browser-flow";++<BrowserFlow url="remocn.dev" />+```++## Props++<PropsTable+ rows={[+ {+ name: "url",+ type: "string",+ default: '"remocn.dev"',+ description: "The URL typed into the address bar and used in the autocomplete suggestion.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier applied to the current frame to slow down or speed up the entire sequence.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="The 15% stall is what sells it">+ Real browsers fake progress. The loading bar jumps to 15% on Enter, holds there for half a second of suspense, then races to 100%. Removing that pause makes the whole flow feel synthetic — keep it.+</Note>diff --git a/content/docs/compositions/dashboard-populate.mdx b/content/docs/compositions/dashboard-populate.mdxnew file mode 100644index 00000000..79844284--- /dev/null+++ b/content/docs/compositions/dashboard-populate.mdx@@ -0,0 +1,56 @@+---+title: Dashboard Populate+description: An empty dashboard fills itself with data in a cascaded spring sequence.+---++A composition primitive that stages a full dashboard reveal in two acts. First the structure fades in — tiles, axes, gridlines, legends. Then, with a deliberate beat of silence, the data crashes in: KPIs spin up from zero, bars launch from the baseline on staggered springs, the line chart traces itself left to right, and the donut sweeps to its final value.++<ComponentPreview name="dashboard-populate" />++## Installation++<InstallBlock name="dashboard-populate" />++## Usage++```tsx+import { DashboardPopulate } from "@/components/remocn/dashboard-populate";++<DashboardPopulate accentColor="#22c55e" kpiTarget={128400} />+```++## Props++<PropsTable+ rows={[+ {+ name: "accentColor",+ type: "string",+ default: '"#22c55e"',+ description: "Color used for bars, line, donut and KPI delta.",+ },+ {+ name: "kpiTarget",+ type: "number",+ default: "128400",+ description: "Target value the revenue counter animates up to.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier applied to the current frame.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Structure first, then data">+ The first 15 frames are reserved for the empty scaffolding — gridlines, axes, tile chrome — so the eye has something to anchor to before the springs hit. Without this beat the populate cascade reads as chaotic; with it, the dashboard feels like it's coming alive in a deliberate, choreographed way.+</Note>diff --git a/content/docs/compositions/ecosystem-constellation.mdx b/content/docs/compositions/ecosystem-constellation.mdxnew file mode 100644index 00000000..09e1fd2a--- /dev/null+++ b/content/docs/compositions/ecosystem-constellation.mdx@@ -0,0 +1,60 @@+---+title: Ecosystem Constellation+description: A central product logo orbited by integration satellites with pulsing data lines.+---++A composition for telling an "everything connects" story. A pulsing logo sits in the center while integration satellites fly in from beyond the frame and settle into elliptical orbits at different radii and angular speeds. Connection lines between the hub and each satellite periodically light up — and the firing satellite scales up by a hair to feel like real data is moving.++<ComponentPreview name="ecosystem-constellation" />++## Installation++<InstallBlock name="ecosystem-constellation" />++## Usage++```tsx+import { EcosystemConstellation } from "@/components/remocn/ecosystem-constellation";++<EcosystemConstellation+ satelliteCount={6}+ centerLabel="V"+ accentColor="#a855f7"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "satelliteCount",+ type: "number",+ default: "6",+ description: "Number of orbiting integration satellites (clamped to 3..8).",+ },+ {+ name: "centerLabel",+ type: "string",+ default: '"V"',+ description: "Single character or short label rendered inside the central hub.",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#a855f7"',+ description: "Color of the hub, glow, and connection lines.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Orbits are elliptical, not circular">+ Each satellite uses a slightly different `radiusX` and `radiusY` plus its own angular speed, so the constellation never falls into a robotic, perfectly-symmetric pattern. Data pulses cycle through satellites deterministically using `Math.floor(frame / 30) % count`, which keeps the animation render-stable while still feeling alive.+</Note>diff --git a/content/docs/compositions/hero-device-assemble.mdx b/content/docs/compositions/hero-device-assemble.mdxnew file mode 100644index 00000000..ba579d31--- /dev/null+++ b/content/docs/compositions/hero-device-assemble.mdx@@ -0,0 +1,60 @@+---+title: Hero Device Assemble+description: Layered device mockup that snaps together in 3D before the screen wakes up.+---++A cinematic hero composition: a laptop (or phone) materializes from floating layers — back lid, chassis, bezel, and display — drifting in from different Z depths and tilted in 3D space. A single spring collapses everything into place, then the screen fades from black to a mock dashboard with a soft shimmer, mimicking a real display waking up.++<ComponentPreview name="hero-device-assemble" />++## Installation++<InstallBlock name="hero-device-assemble" />++## Usage++```tsx+import { HeroDeviceAssemble } from "@/components/remocn/hero-device-assemble";++<HeroDeviceAssemble+ device="laptop"+ accentColor="#22c55e"+ assembleStart={0}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "device",+ type: '"laptop" | "phone"',+ default: '"laptop"',+ description: "Mockup form factor. Phone uses a vertical bezel and skips the chassis base.",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#22c55e"',+ description: "Brand accent applied to the in-screen UI highlights.",+ },+ {+ name: "assembleStart",+ type: "number",+ default: "0",+ description: "Frame at which the assembly spring kicks off.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="The screen stays dark until the layers settle">+ The display panel is rendered as a black layer until the assembly spring resolves, then the mock UI fades in with a diagonal shimmer sweep. That delayed wake-up is what sells the illusion of a physical device powering on rather than a flat image flying into place.+</Note>diff --git a/content/docs/compositions/index.mdx b/content/docs/compositions/index.mdxindex 9685d4e3..bbfb43e0 100644--- a/content/docs/compositions/index.mdx+++ b/content/docs/compositions/index.mdx@@ -1,29 +1,87 @@---title: Compositions-description: Full scenes built by composing primitives.+description: Full scenes built by composing primitives and UI blocks.----Higher-level layouts and scene templates that combine multiple primitives into a finished shot.+Higher-level templates that combine multiple primitives, UI blocks, and transitions into finished shots — heroes, product showcases, and journeys.++## Hero & Outro++<ComponentCardGrid+ items={[+ {+ name: "HeroDeviceAssemble",+ description: "Floating device layers spring into a laptop or phone, then the screen wakes with a shimmer.",+ status: "stable",+ href: "/docs/compositions/hero-device-assemble",+ },+ {+ name: "EcosystemConstellation",+ description: "Central logo orbited by integration satellites with pulsing data lines.",+ status: "stable",+ href: "/docs/compositions/ecosystem-constellation",+ },+ {+ name: "InfiniteBentoPan",+ description: "Camera diagonally drifts across an oversized bento grid behind a soft vignette.",+ status: "stable",+ href: "/docs/compositions/infinite-bento-pan",+ },+ ]}+/>++## Product Showcases++<ComponentCardGrid+ items={[+ {+ name: "BrowserFlow",+ description: "Full Safari/Chrome simulation: URL typing, loading bar, scroll, and click.",+ status: "stable",+ href: "/docs/compositions/browser-flow",+ },+ {+ name: "AIGenerationCanvas",+ description: "Prompt input morphs into a header, then a skeleton dashboard flips into populated cards.",+ status: "stable",+ href: "/docs/compositions/ai-generation-canvas",+ },+ {+ name: "LiveCodeCompilation",+ description: "Split-screen where typed code on the left snaps a live UI preview on the right.",+ status: "stable",+ href: "/docs/compositions/live-code-compilation",+ },+ {+ name: "TerminalToBrowserDeploy",+ description: "CLI deploy completes, terminal blurs back, and a browser window springs from the deploy URL.",+ status: "stable",+ href: "/docs/compositions/terminal-to-browser-deploy",+ },+ ]}+/>++## App States & Journeys<ComponentCardGriditems={[{- name: "StaggeredBentoGrid",- description: "Cards pop into a bento grid one after another with a spring.",+ name: "DashboardPopulate",+ description: "Empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",status: "stable",- href: "/docs/compositions/staggered-bento-grid",+ href: "/docs/compositions/dashboard-populate",},{- name: "ChatToPreviewLayout",- description: "Two-column layout where chat shrinks and preview expands.",+ name: "PipelineJourney",+ description: "Kanban ticket flies between columns, triggering events on landing.",status: "stable",- href: "/docs/compositions/chat-to-preview-layout",+ href: "/docs/compositions/pipeline-journey",},{- name: "BoundingBoxSelector",- description: "Figma-style selection rectangle appears around any element.",+ name: "PricingTierFocus",+ description: "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",status: "stable",- href: "/docs/compositions/bounding-box-selector",+ href: "/docs/compositions/pricing-tier-focus",},]}/>diff --git a/content/docs/compositions/infinite-bento-pan.mdx b/content/docs/compositions/infinite-bento-pan.mdxnew file mode 100644index 00000000..c9595887--- /dev/null+++ b/content/docs/compositions/infinite-bento-pan.mdx@@ -0,0 +1,56 @@+---+title: Infinite Bento Pan+description: A hypnotic diagonal camera glide over an oversized grid of bento cards.+---++A composition that builds a super-sized bento grid (well beyond the canvas) and slowly drifts the camera across it on a diagonal trajectory. Each card renders a different miniature — line charts, counters, code fragments, gradients, logo marks — with subtle deterministic micro-animations driven by `Math.sin(frame)`. A radial vignette swallows the edges so cards seem to fade in and out of darkness as the camera moves.++<ComponentPreview name="infinite-bento-pan" />++## Installation++<InstallBlock name="infinite-bento-pan" />++## Usage++```tsx+import { InfiniteBentoPan } from "@/components/remocn/infinite-bento-pan";++<InfiniteBentoPan panSpeed={1} accentColor="#7c3aed" />+```++## Props++<PropsTable+ rows={[+ {+ name: "panSpeed",+ type: "number",+ default: "1",+ description: "Multiplier for the diagonal camera distance traveled across the duration. Clamped to a single full traversal at 1.",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#7c3aed"',+ description: "Color used by chart strokes, bar fills, counters, and logo gradients.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier applied to the current frame for global timing control.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Vignette is the trick">+ The grid itself is an absurdly large absolutely-positioned super-container that you `translate(-X, -Y)` linearly. The illusion of "infinite" depth comes entirely from the radial vignette painted on top — without it, the edges of the card wall would be visible and the spell would break.+</Note>diff --git a/content/docs/compositions/live-code-compilation.mdx b/content/docs/compositions/live-code-compilation.mdxnew file mode 100644index 00000000..52a781e3--- /dev/null+++ b/content/docs/compositions/live-code-compilation.mdx@@ -0,0 +1,44 @@+---+title: Live Code Compilation+description: A split-screen where code is typed on the left and the right-side UI snaps to match in a single frame.+---++A timeline-driven composition that pairs a glass code editor with a live preview pane. As each event fires, a new code fragment is appended to the editor and the preview button instantly applies the matching style — no CSS transitions, no easing — mimicking the feel of a real Vite HMR update.++<ComponentPreview name="live-code-compilation" />++## Installation++<InstallBlock name="live-code-compilation" />++## Usage++```tsx+import { LiveCodeCompilation } from "@/components/remocn/live-code-compilation";++<LiveCodeCompilation accentColor="#3b82f6" />+```++## Props++<PropsTable+ rows={[+ {+ name: "accentColor",+ type: "string",+ default: '"#3b82f6"',+ description: "Color used for the JSX prop highlight, the HMR flash, and the default button background.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="No transitions on the preview">+ The preview button intentionally sets `transition: none`. Each style change snaps in on a single frame so the right pane reads as a real hot module reload — instant, mechanical, and synchronized to the code being typed on the left.+</Note>diff --git a/content/docs/compositions/meta.json b/content/docs/compositions/meta.jsonnew file mode 100644index 00000000..870aea45--- /dev/null+++ b/content/docs/compositions/meta.json@@ -0,0 +1,19 @@+{+ "title": "Compositions",+ "pages": [+ "index",+ "---Hero & Outro---",+ "hero-device-assemble",+ "ecosystem-constellation",+ "infinite-bento-pan",+ "---Product Showcases---",+ "browser-flow",+ "ai-generation-canvas",+ "live-code-compilation",+ "terminal-to-browser-deploy",+ "---App States & Journeys---",+ "dashboard-populate",+ "pipeline-journey",+ "pricing-tier-focus"+ ]+}diff --git a/content/docs/compositions/pipeline-journey.mdx b/content/docs/compositions/pipeline-journey.mdxnew file mode 100644index 00000000..02f6b456--- /dev/null+++ b/content/docs/compositions/pipeline-journey.mdx@@ -0,0 +1,56 @@+---+title: Pipeline Journey+description: A Kanban ticket flies between columns, triggering events along the way.+---++A workflow primitive that animates a single ticket on a Kanban board. The card lifts out of Todo, arcs through the air with a tilt and growing shadow, lands in In Progress where a brief timer ticks, then takes off again toward Done — where it triggers a deterministic confetti burst on touchdown.++<ComponentPreview name="pipeline-journey" />++## Installation++<InstallBlock name="pipeline-journey" />++## Usage++```tsx+import { PipelineJourney } from "@/components/remocn/pipeline-journey";++<PipelineJourney cardLabel="Build pipeline" accentColor="#22c55e" />+```++## Props++<PropsTable+ rows={[+ {+ name: "cardLabel",+ type: "string",+ default: '"Build pipeline"',+ description: "Title shown on the flying ticket.",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#22c55e"',+ description: "Color of the ticket border, status dot and confetti accent.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier applied to the current frame.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Determinism beats Math.random">+ The confetti burst looks chaotic but is fully deterministic — particle angles, distances, and colors are derived from `Math.sin(i * 12.9898) * 43758.5453` style hashing so every render produces an identical frame. Never reach for `Math.random` inside a Remotion component.+</Note>diff --git a/content/docs/compositions/pricing-tier-focus.mdx b/content/docs/compositions/pricing-tier-focus.mdxnew file mode 100644index 00000000..92647925--- /dev/null+++ b/content/docs/compositions/pricing-tier-focus.mdx@@ -0,0 +1,56 @@+---+title: Pricing Tier Focus+description: Highlight the recommended pricing tier by dimming and blurring its neighbors.+---++A composition that stages a classic three-tier pricing table and then dramatically focuses the camera on the recommended plan. The focused card scales up, lifts off the page with a heavy drop shadow, while the side cards retreat into a soft, brightness-dimmed blur. A subtle shimmer sweeps across the CTA button to seal the moment.++<ComponentPreview name="pricing-tier-focus" />++## Installation++<InstallBlock name="pricing-tier-focus" />++## Usage++```tsx+import { PricingTierFocus } from "@/components/remocn/pricing-tier-focus";++<PricingTierFocus focusedTier={1} accentColor="#22c55e" />+```++## Props++<PropsTable+ rows={[+ {+ name: "focusedTier",+ type: "0 | 1 | 2",+ default: "1",+ description: "Index of the tier to highlight (0 = Free, 1 = Pro, 2 = Enterprise).",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#22c55e"',+ description: "Brand color for the focused tier badge, checkmarks, and CTA button.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier applied to the current frame for global timing control.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Shimmer is the closer">+ The focus animation lands the visual hierarchy, but the shimmer sweep on the Pro CTA button is what makes the moment feel cinematic. It runs once around frame 90 — late enough that the eye has already settled on the focused card, so the highlight reads as confirmation rather than distraction.+</Note>diff --git a/content/docs/compositions/terminal-to-browser-deploy.mdx b/content/docs/compositions/terminal-to-browser-deploy.mdxnew file mode 100644index 00000000..fdb619cd--- /dev/null+++ b/content/docs/compositions/terminal-to-browser-deploy.mdx@@ -0,0 +1,59 @@+---+title: Terminal To Browser Deploy+description: A CLI deploy completes and the live site grows out of the URL printed in the console.+---++A composition that pairs a build log with a celebratory reveal. The terminal types out a deploy sequence, and the moment the success line lands, the terminal scales down and blurs while a fully formed browser window springs out from exactly the URL that was just printed — making the deployed site feel like it physically emerged from the command that shipped it.++<ComponentPreview name="terminal-to-browser-deploy" />++## Installation++<InstallBlock name="terminal-to-browser-deploy" />++## Usage++```tsx+import { TerminalToBrowserDeploy } from "@/components/remocn/terminal-to-browser-deploy";++<TerminalToBrowserDeploy+ siteUrl="https://app.example.com"+ accentColor="#22c55e"+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "siteUrl",+ type: "string",+ default: '"https://app.example.com"',+ description: "URL printed in the deploy success line and shown in the browser address bar.",+ },+ {+ name: "accentColor",+ type: "string",+ default: '"#22c55e"',+ description: "Accent color used for the success line, CTA button, and ambient glow inside the browser.",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier applied to the current frame to slow down or speed up the entire sequence.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="The browser grows from the URL, not the screen center">+ The browser window's `transform-origin` is computed from the pixel position of the URL line inside the terminal body. As `scale` springs from 0 to 1, the window literally unfurls out of the success line — sell the gag by keeping the terminal visible (just blurred and dimmed) behind it.+</Note>diff --git a/content/docs/data-viz/index.mdx b/content/docs/data-viz/index.mdxdeleted file mode 100644index bd199e3c..00000000--- a/content/docs/data-viz/index.mdx+++ /dev/null@@ -1,23 +0,0 @@-----title: Data Visualization-description: Animated charts for product dashboards and reports.------Charts that draw themselves on, with proper Remotion-friendly animation primitives.--<ComponentCardGrid- items={[- {- name: "AnimatedLineChart",- description: "Line chart whose SVG path draws on from left to right with a leading dot.",- status: "stable",- href: "/docs/data-viz/animated-line-chart",- },- {- name: "AnimatedBarChart",- description: "Bars spring up from the baseline in a staggered cascade.",- status: "stable",- href: "/docs/data-viz/animated-bar-chart",- },- ]}-/>diff --git a/content/docs/dev-blocks/index.mdx b/content/docs/dev-blocks/index.mdxdeleted file mode 100644index 4cf630e3..00000000--- a/content/docs/dev-blocks/index.mdx+++ /dev/null@@ -1,23 +0,0 @@-----title: Dev & CLI-description: Developer-flavored building blocks for technical demos.------Terminal output, code diffs, and other dev-flavored blocks for developer-targeted videos.--<ComponentCardGrid- items={[- {- name: "TerminalSimulator",- description: "Terminal window that types out commands and rolls old lines off the top.",- status: "stable",- href: "/docs/dev-blocks/terminal-simulator",- },- {- name: "CodeDiffWipe",- description: "Before/after code reveal via clip-path wipe with a handle marker.",- status: "stable",- href: "/docs/dev-blocks/code-diff-wipe",- },- ]}-/>diff --git a/content/docs/backgrounds/dynamic-grid.mdx b/content/docs/environment/dynamic-grid.mdxsimilarity index 100%rename from content/docs/backgrounds/dynamic-grid.mdxrename to content/docs/environment/dynamic-grid.mdxdiff --git a/content/docs/environment/index.mdx b/content/docs/environment/index.mdxnew file mode 100644index 00000000..ea8db258--- /dev/null+++ b/content/docs/environment/index.mdx@@ -0,0 +1,38 @@+---+title: Environment & Lighting+description: Backgrounds, lighting, and atmosphere for your scenes.+---++The space behind your content. Animated gradients, grids, and lighting accents that turn flat compositions into rooms.++## Backgrounds++<ComponentCardGrid+ items={[+ {+ name: "MeshGradientBg",+ description: "Living gradient where soft color blobs drift on noise-driven coordinates.",+ status: "stable",+ href: "/docs/environment/mesh-gradient-bg",+ },+ {+ name: "DynamicGrid",+ description: "Subtle moving grid or dot pattern background.",+ status: "stable",+ href: "/docs/environment/dynamic-grid",+ },+ ]}+/>++## Lighting++<ComponentCardGrid+ items={[+ {+ name: "SpotlightCard",+ description: "Cursor-tracked radial light that rims a card and lifts it from the dark.",+ status: "stable",+ href: "/docs/environment/spotlight-card",+ },+ ]}+/>diff --git a/content/docs/backgrounds/mesh-gradient-bg.mdx b/content/docs/environment/mesh-gradient-bg.mdxsimilarity index 100%rename from content/docs/backgrounds/mesh-gradient-bg.mdxrename to content/docs/environment/mesh-gradient-bg.mdxdiff --git a/content/docs/environment/meta.json b/content/docs/environment/meta.jsonnew file mode 100644index 00000000..929f1381--- /dev/null+++ b/content/docs/environment/meta.json@@ -0,0 +1,11 @@+{+ "title": "Environment & Lighting",+ "pages": [+ "index",+ "---Backgrounds---",+ "mesh-gradient-bg",+ "dynamic-grid",+ "---Lighting---",+ "spotlight-card"+ ]+}diff --git a/content/docs/primitives/spotlight-card.mdx b/content/docs/environment/spotlight-card.mdxsimilarity index 100%rename from content/docs/primitives/spotlight-card.mdxrename to content/docs/environment/spotlight-card.mdxdiff --git a/content/docs/index.mdx b/content/docs/index.mdxindex 3ef99db2..a1978b35 100644--- a/content/docs/index.mdx+++ b/content/docs/index.mdx@@ -1,18 +1,4 @@----title: Introduction-description: remocn is a shadcn-style registry of production-ready Remotion components for building video.+title: Index+description: index-----**remocn** is an open registry of animations, transitions, backgrounds, and complete scene compositions for [Remotion](https://www.remotion.dev). It follows the shadcn philosophy: components are copied directly into your project, so you fully own and customize them.--## What's inside--- **Primitives** — single-purpose animations like `BlurReveal`, `Typewriter`, `MeshGradientBg`.-- **Compositions** — full scenes built from primitives.-- **Live previews** — every component page mounts a real Remotion `<Player>` you can scrub and customize.--## Install a component--<InstallBlock name="inline-highlight" />--The file is copied into your project. No runtime dependency on remocn — just Remotion and React.diff --git a/content/docs/meta.json b/content/docs/meta.jsonindex 7bd3c31e..455295df 100644--- a/content/docs/meta.json+++ b/content/docs/meta.json@@ -1,19 +1,12 @@{"title": "Documentation","pages": [- "index",- "---Getting Started---","getting-started",- "---Components---",+ "typography","primitives",- "compositions",- "---Categories---",- "backgrounds",- "ui-elements",+ "environment",+ "ui-blocks","transitions",- "data-viz",- "dev-blocks",- "micro-interactions",- "workflows"+ "compositions"]}diff --git a/content/docs/micro-interactions/index.mdx b/content/docs/micro-interactions/index.mdxdeleted file mode 100644index 344bb3f7..00000000--- a/content/docs/micro-interactions/index.mdx+++ /dev/null@@ -1,23 +0,0 @@-----title: Micro-interactions-description: Small interface moments — toasts, drag-and-drop, hover states.------Tiny moments of delight — perfect for stitching together "look how easy this is" demos.--<ComponentCardGrid- items={[- {- name: "ToastNotification",- description: "System-style toast pops in, holds, then slides out.",- status: "stable",- href: "/docs/micro-interactions/toast-notification",- },- {- name: "DragAndDropFlow",- description: "Simulated file drag into a dropzone followed by upload progress.",- status: "stable",- href: "/docs/micro-interactions/drag-and-drop-flow",- },- ]}-/>diff --git a/content/docs/compositions/bounding-box-selector.mdx b/content/docs/primitives/bounding-box-selector.mdxsimilarity index 100%rename from content/docs/compositions/bounding-box-selector.mdxrename to content/docs/primitives/bounding-box-selector.mdxdiff --git a/content/docs/primitives/cursor-flow.mdx b/content/docs/primitives/cursor-flow.mdxindex 8bc96a3c..b22dd161 100644--- a/content/docs/primitives/cursor-flow.mdx+++ b/content/docs/primitives/cursor-flow.mdx@@ -88,3 +88,68 @@ import { CursorFlow } from "@/components/remocn/cursor-flow";<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>++## Variant: Simulated Cursor++A simpler primitive that renders a macOS-style cursor (inline SVG, no external assets) and moves it between a list of points on straight lines. Each waypoint can hold for a configurable number of frames and optionally trigger a click animation: a brief scale dip plus an expanding SVG ripple. Use this when you don't need the realistic Bezier-arc trajectory of `CursorFlow`.++<ComponentPreview name="simulated-cursor" />++### Installation++<InstallBlock name="simulated-cursor" />++### Usage++```tsx+import { SimulatedCursor } from "@/components/remocn/simulated-cursor";++<SimulatedCursor+ points={[+ { x: 200, y: 150, hold: 20 },+ { x: 800, y: 360, hold: 25, click: true },+ { x: 1050, y: 560, hold: 20 },+ ]}+ color="#ffffff"+/>+```++### Props++<PropsTable+ rows={[+ {+ name: "points",+ type: "Array<{ x: number; y: number; hold?: number; click?: boolean }>",+ default: "3 sample waypoints",+ description: "Cursor waypoints in pixel coordinates. hold = frames to pause at the point, click = trigger click ripple.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#ffffff\"",+ description: "Cursor fill color. The cursor always has a thin black outline for contrast.",+ },+ {+ name: "size",+ type: "number",+ default: "32",+ description: "Cursor size in pixels (SVG width and height).",+ },+ {+ name: "background",+ type: "string",+ default: "\"#0a0a0a\"",+ description: "Background color of the frame the cursor lives in.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the outer container.",+ },+ ]}+/>++<Note title="Inline SVG, no assets">+ The cursor is drawn as inline SVG, so you don't need to copy anything into `public/`. Drop the component into any composition and it just works.+</Note>diff --git a/content/docs/primitives/index.mdx b/content/docs/primitives/index.mdxindex 51e7c609..b9bc4c14 100644--- a/content/docs/primitives/index.mdx+++ b/content/docs/primitives/index.mdx@@ -1,41 +1,56 @@----title: Primitives-description: Single-purpose animation building blocks for Remotion.+title: Core Primitives+description: Foundational micro-interactions and reusable building blocks.----Primitives are small, focused components — one animation, one effect, one purpose. Compose them into scenes, or use them directly inside a `<Composition>`.+The smallest reusable units in remocn — pop-ins, pulses, cursors, and notifications. Drop them into any scene whenever you need a focused moment of motion.++## Animations<ComponentCardGriditems={[{- name: "BlurReveal",- description: "Text fades in from a heavy blur into sharp focus.",+ name: "SpringPopIn",+ description: "Elastic scale pop with configurable overshoot.",status: "stable",- href: "/docs/primitives/blur-reveal",+ href: "/docs/primitives/spring-pop-in",},{- name: "Typewriter",- description: "Character-by-character text reveal with a deterministic blinking cursor.",+ name: "PulsingIndicator",+ description: "Continuous sine-driven pulse for loading or activity states.",status: "stable",- href: "/docs/primitives/typewriter",+ href: "/docs/primitives/pulsing-indicator",},{- name: "InlineHighlight",- description: "Animates one word inside a sentence from a base color to a brand color.",+ name: "SuccessConfetti",+ description: "Deterministic particle burst from a chosen origin point.",+ status: "stable",+ href: "/docs/primitives/success-confetti",+ },+ ]}+/>++## Interactions++<ComponentCardGrid+ items={[+ {+ name: "CursorFlow",+ description: "Realistic mouse that arcs along Bezier paths and clicks targets that dip in response. Includes a SimulatedCursor variant.",status: "stable",- href: "/docs/primitives/inline-highlight",+ href: "/docs/primitives/cursor-flow",},{- name: "TextFadeReplace",- description: "Cross-fades between two strings on the same line without layout shift.",+ name: "BoundingBoxSelector",+ description: "Figma-style selection rectangle that snaps around a target.",status: "stable",- href: "/docs/primitives/text-fade-replace",+ href: "/docs/primitives/bounding-box-selector",},{- name: "StrikethroughReplace",- description: "Draws a strike line across old text then reveals new text in its place.",+ name: "ToastNotification",+ description: "System toast that springs in, holds, and slides away.",status: "stable",- href: "/docs/primitives/strikethrough-replace",+ href: "/docs/primitives/toast-notification",},]}/>diff --git a/content/docs/primitives/meta.json b/content/docs/primitives/meta.jsonindex 53bc8c06..3bf2a7fa 100644--- a/content/docs/primitives/meta.json+++ b/content/docs/primitives/meta.json@@ -1,28 +1,14 @@{- "title": "Primitives",+ "title": "Core Primitives","pages": ["index",- "blur-reveal",- "typewriter",- "inline-highlight",- "text-fade-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",+ "---Animations---",+ "spring-pop-in",+ "pulsing-indicator",+ "success-confetti",+ "---Interactions---","cursor-flow",- "data-flow-pipes",- "morphing-modal"+ "bounding-box-selector",+ "toast-notification"]}diff --git a/content/docs/ui-elements/pulsing-indicator.mdx b/content/docs/primitives/pulsing-indicator.mdxsimilarity index 100%rename from content/docs/ui-elements/pulsing-indicator.mdxrename to content/docs/primitives/pulsing-indicator.mdxdiff --git a/content/docs/ui-elements/spring-pop-in.mdx b/content/docs/primitives/spring-pop-in.mdxsimilarity index 100%rename from content/docs/ui-elements/spring-pop-in.mdxrename to content/docs/primitives/spring-pop-in.mdxdiff --git a/content/docs/primitives/strikethrough-replace.mdx b/content/docs/primitives/strikethrough-replace.mdxdeleted file mode 100644index 777f3aba..00000000--- a/content/docs/primitives/strikethrough-replace.mdx+++ /dev/null@@ -1,79 +0,0 @@-----title: Strikethrough Replace-description: Draw a strike line across old text, then reveal new text in its place.------A typography primitive that animates a strikethrough line growing left-to-right across the `from` text, then cross-fades to the `to` text. Useful for "old way / new way" comparisons.--<ComponentPreview name="strikethrough-replace" />--## Installation--<InstallBlock name="strikethrough-replace" />--## Usage--```tsx-import { StrikethroughReplace } from "@/components/remocn/strikethrough-replace";--<StrikethroughReplace- from="Slow setup"- to="Instant setup"- lineColor="#ff5e3a"- fontSize={72}-/>-```--## Props--<PropsTable- rows={[- {- name: "from",- type: "string",- required: true,- description: "Original text that gets struck through.",- },- {- name: "to",- type: "string",- required: true,- description: "Replacement text that fades in.",- },- {- name: "lineColor",- type: "string",- default: "\"#ff5e3a\"",- description: "Color of the strikethrough bar.",- },- {- name: "fontSize",- type: "number",- default: "48",- description: "Font size in pixels.",- },- {- name: "fontWeight",- type: "number",- default: "600",- description: "CSS font-weight.",- },- {- name: "color",- type: "string",- default: "\"#171717\"",- description: "Text color for both strings.",- },- {- name: "className",- type: "string",- description: "Optional className passed to the underlying spans.",- },- ]}-/>--## Notes--<Note title="Three phases">- The animation runs in three phases tied to `durationInFrames`: draw the strike line (0–40%), cross-fade to the new text (40–60%), then hold (60–100%).-</Note>diff --git a/content/docs/workflows/success-confetti.mdx b/content/docs/primitives/success-confetti.mdxsimilarity index 100%rename from content/docs/workflows/success-confetti.mdxrename to content/docs/primitives/success-confetti.mdxdiff --git a/content/docs/micro-interactions/toast-notification.mdx b/content/docs/primitives/toast-notification.mdxsimilarity index 100%rename from content/docs/micro-interactions/toast-notification.mdxrename to content/docs/primitives/toast-notification.mdxdiff --git a/content/docs/transitions/chromatic-aberration-wipe.mdx b/content/docs/transitions/chromatic-aberration-wipe.mdxnew file mode 100644index 00000000..e8a4d699--- /dev/null+++ b/content/docs/transitions/chromatic-aberration-wipe.mdx@@ -0,0 +1,76 @@+---+title: Chromatic Aberration Wipe+description: An ultra-fast slide transition with an RGB glitch on the peak frames.+---++A high-energy transition built for DevTools demos and product reels. Two scenes slide past each other in just 5–8 frames, and on the middle of that window the entire container gets a red+cyan `drop-shadow` filter to fake RGB channel separation. The glitch is intentionally short — restraint is the whole point. Three to five frames is enough for the viewer's eye to register speed without ever consciously parsing the colors.++<ComponentPreview name="chromatic-aberration-wipe" />++## Installation++<InstallBlock name="chromatic-aberration-wipe" />++## Usage++```tsx+import { ChromaticAberrationWipe } from "@/components/remocn/chromatic-aberration-wipe";++<ChromaticAberrationWipe+ from={<SceneC />}+ to={<SceneB />}+ direction="left"+ transitionDuration={7}+ aberrationOffset={8}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "ReactNode",+ description: "The outgoing scene. Falls back to a labeled colored panel.",+ },+ {+ name: "to",+ type: "ReactNode",+ description: "The incoming scene. Falls back to a labeled colored panel.",+ },+ {+ name: "direction",+ type: '"left" | "right"',+ default: '"left"',+ description: "Direction the outgoing scene slides toward.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "durationInFrames * 0.4",+ description: "Frame at which the wipe begins.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "7",+ description: "Length of the wipe in frames. Keep it short (5–8) for the glitch to land.",+ },+ {+ name: "aberrationOffset",+ type: "number",+ default: "8",+ description: "Horizontal offset in pixels for the red and cyan drop shadows during the peak frames.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++<Warning title="Less is more">+ The chromatic aberration should only flash for 3–5 frames at peak speed. Any longer and the viewer starts consciously reading the red and cyan fringes — which kills the illusion of raw velocity. Trust the subconscious; pull the filter the moment the slide decelerates.+</Warning>diff --git a/content/docs/transitions/frosted-glass-wipe.mdx b/content/docs/transitions/frosted-glass-wipe.mdxnew file mode 100644index 00000000..147f907a--- /dev/null+++ b/content/docs/transitions/frosted-glass-wipe.mdx@@ -0,0 +1,71 @@+---+title: Frosted Glass Wipe+description: Elegant scene transition through a sliding pane of frosted glass.+---++A transition primitive that slides a pane of frosted glass across the screen between two scenes. The outgoing scene blurs beneath the glass; once the pane crosses the midpoint, the incoming scene is revealed in its place. Uses `backdrop-filter` for the glass and `transform: translateX` for movement so the browser stays on the compositor.++<ComponentPreview name="frosted-glass-wipe" />++## Installation++<InstallBlock name="frosted-glass-wipe" />++## Usage++```tsx+import { FrostedGlassWipe } from "@/components/remocn/frosted-glass-wipe";++<FrostedGlassWipe+ from={<SceneA />}+ to={<SceneB />}+ transitionDuration={30}+ glassBlur={24}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "ReactNode",+ description: "The outgoing scene. Falls back to a labeled colored panel.",+ },+ {+ name: "to",+ type: "ReactNode",+ description: "The incoming scene. Falls back to a labeled colored panel.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "durationInFrames * 0.4",+ description: "Frame at which the wipe begins.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "30",+ description: "Length of the wipe in frames.",+ },+ {+ name: "glassBlur",+ type: "number",+ default: "24",+ description: "Backdrop blur radius of the glass pane in pixels.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Give the glass physical properties">+ The pane uses thin 1px white borders on its left and right edges so light catches as it slides over darker scenes. Keep the blur radius high enough (16-32px) for the glass to feel substantial rather than like a flat tint.+</Note>diff --git a/content/docs/transitions/grid-pixelate-wipe.mdx b/content/docs/transitions/grid-pixelate-wipe.mdxnew file mode 100644index 00000000..66ee34ef--- /dev/null+++ b/content/docs/transitions/grid-pixelate-wipe.mdx@@ -0,0 +1,96 @@+---+title: Grid Pixelate Wipe+description: Dissolve from one scene to the next through a deterministic grid of mask cells.+---++The screen is split into a CSS grid of black mask cells covering the outgoing scene. Each cell fades out on its own schedule, computed from a deterministic pattern function (`wave`, `diagonal`, or `spiral`). Because the per-cell delay is pure math over `(x, y)` — no `Math.random` — every frame is reproducible across renders, which is essential for video output.++<ComponentPreview name="grid-pixelate-wipe" />++## Installation++<InstallBlock name="grid-pixelate-wipe" />++## Usage++```tsx+import { GridPixelateWipe } from "@/components/remocn/grid-pixelate-wipe";++<GridPixelateWipe+ from={<SceneA />}+ to={<SceneB />}+ cols={12}+ rows={7}+ pattern="wave"+ transitionDuration={30}+ cellFadeFrames={4}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "ReactNode",+ description: "The outgoing scene. Falls back to a labeled colored panel.",+ },+ {+ name: "to",+ type: "ReactNode",+ description: "The incoming scene. Falls back to a labeled colored panel.",+ },+ {+ name: "cols",+ type: "number",+ default: "12",+ description: "Number of mask grid columns.",+ },+ {+ name: "rows",+ type: "number",+ default: "7",+ description: "Number of mask grid rows.",+ },+ {+ name: "pattern",+ type: '"wave" | "diagonal" | "spiral"',+ default: '"wave"',+ description: "Deterministic function used to compute per-cell delay.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "durationInFrames * 0.4",+ description: "Frame at which the dissolve begins.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "30",+ description: "Total length of the dissolve in frames.",+ },+ {+ name: "cellFadeFrames",+ type: "number",+ default: "4",+ description: "How many frames a single cell takes to fade out.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Pick a pattern that fits the beat">+ `wave` radiates from the center and feels organic. `diagonal` reads as a sweep — great for hand-off between two product shots. `spiral` is the most dramatic and works best for hero reveals.+</Note>++<Warning title="Never reach for Math.random">+ Random per-cell delays will resample on every render call, producing flickering noise instead of a clean dissolve. Always derive cell timing from `(x, y)` coordinates or `@remotion/random` with a stable seed.+</Warning>diff --git a/content/docs/transitions/index.mdx b/content/docs/transitions/index.mdxindex e3358da4..61eb4b8a 100644--- a/content/docs/transitions/index.mdx+++ b/content/docs/transitions/index.mdx@@ -1,17 +1,19 @@----title: Transitions & Camera-description: Scene transitions and camera moves.+title: Transitions+description: Scene transitions, camera moves, and stylized wipes.----Wipes, slides, zooms, and camera moves between scenes.+Wipes, slides, zooms, and camera moves between scenes. Group your scenes inside `<Sequence>` and let these handle the seam.++## Camera & Scale<ComponentCardGriditems={[{- name: "DirectionalWipe",- description: "Slide one scene in while pushing the other out.",+ name: "ZoomThroughTransition",+ description: "Aggressive scale-in 'through' an element to the next scene.",status: "stable",- href: "/docs/transitions/directional-wipe",+ href: "/docs/transitions/zoom-through-transition",},{name: "DeviceMockupZoom",@@ -20,10 +22,60 @@ Wipes, slides, zooms, and camera moves between scenes.href: "/docs/transitions/device-mockup-zoom",},{- name: "ZoomThroughTransition",- description: "Aggressive scale-in 'through' an element to the next scene.",+ name: "MorphingModal",+ description: "Card lifts off a grid and expands into a full-screen modal.",status: "stable",- href: "/docs/transitions/zoom-through-transition",+ href: "/docs/transitions/morphing-modal",+ },+ ]}+/>++## Spatial Wipes++<ComponentCardGrid+ items={[+ {+ name: "DirectionalWipe",+ description: "Slide one scene in while pushing the other out.",+ status: "stable",+ href: "/docs/transitions/directional-wipe",+ },+ {+ name: "SpatialPush",+ description: "A new scene physically presses the old one back into the frame.",+ status: "stable",+ href: "/docs/transitions/spatial-push",+ },+ {+ name: "FrostedGlassWipe",+ description: "Elegant scene transition through a sliding pane of frosted glass.",+ status: "stable",+ href: "/docs/transitions/frosted-glass-wipe",+ },+ {+ name: "KineticTypeMask",+ description: "Use giant typography as a window into the next scene.",+ status: "stable",+ href: "/docs/transitions/kinetic-type-mask",+ },+ ]}+/>++## Stylized++<ComponentCardGrid+ items={[+ {+ name: "GridPixelateWipe",+ description: "Dissolve from one scene to the next through a deterministic grid of mask cells.",+ status: "stable",+ href: "/docs/transitions/grid-pixelate-wipe",+ },+ {+ name: "ChromaticAberrationWipe",+ description: "An ultra-fast slide transition with an RGB glitch on the peak frames.",+ status: "stable",+ href: "/docs/transitions/chromatic-aberration-wipe",},]}/>diff --git a/content/docs/transitions/kinetic-type-mask.mdx b/content/docs/transitions/kinetic-type-mask.mdxnew file mode 100644index 00000000..2154e9e8--- /dev/null+++ b/content/docs/transitions/kinetic-type-mask.mdx@@ -0,0 +1,85 @@+---+title: Kinetic Type Mask+description: Use giant typography as a window into the next scene.+---++A transition primitive that turns a giant headline into a window into the next scene. The text is rendered as an SVG `<clipPath>` over the incoming scene, so its interior literally shows what's underneath. After a brief hold, the text scales exponentially until the inside of one letter expands past the screen edges and fully reveals the new scene.++<ComponentPreview name="kinetic-type-mask" />++## Installation++<InstallBlock name="kinetic-type-mask" />++## Usage++```tsx+import { KineticTypeMask } from "@/components/remocn/kinetic-type-mask";++<KineticTypeMask+ from={<SceneA />}+ to={<SceneB />}+ text="NEXT"+ holdFrames={12}+ transitionDuration={24}+ maxScale={120}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "ReactNode",+ description: "The outgoing scene rendered behind the text. Falls back to a labeled colored panel.",+ },+ {+ name: "to",+ type: "ReactNode",+ description: "The incoming scene revealed through the text mask. Falls back to a labeled colored panel.",+ },+ {+ name: "text",+ type: "string",+ default: '"NEXT"',+ description: "The headline used as a clipping mask.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "durationInFrames * 0.3",+ description: "Frame at which the hold (pre-zoom) begins.",+ },+ {+ name: "holdFrames",+ type: "number",+ default: "12",+ description: "How long the text sits at rest before the zoom kicks in.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "24",+ description: "Length of the exponential scale-up in frames.",+ },+ {+ name: "maxScale",+ type: "number",+ default: "120",+ description: "Final scale value applied to the text. Must be large enough that one letter's interior covers the screen.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Use a heavy display weight">+ The mask works best with the boldest weight you have on hand (Geist 900 or similar). Heavy letterforms have generous interior space, so the camera has somewhere to fly through before the reveal.+</Note>diff --git a/content/docs/transitions/meta.json b/content/docs/transitions/meta.jsonnew file mode 100644index 00000000..d401f7cc--- /dev/null+++ b/content/docs/transitions/meta.json@@ -0,0 +1,18 @@+{+ "title": "Transitions",+ "pages": [+ "index",+ "---Camera & Scale---",+ "zoom-through-transition",+ "device-mockup-zoom",+ "morphing-modal",+ "---Spatial Wipes---",+ "directional-wipe",+ "spatial-push",+ "frosted-glass-wipe",+ "kinetic-type-mask",+ "---Stylized---",+ "grid-pixelate-wipe",+ "chromatic-aberration-wipe"+ ]+}diff --git a/content/docs/primitives/morphing-modal.mdx b/content/docs/transitions/morphing-modal.mdxsimilarity index 100%rename from content/docs/primitives/morphing-modal.mdxrename to content/docs/transitions/morphing-modal.mdxdiff --git a/content/docs/transitions/spatial-push.mdx b/content/docs/transitions/spatial-push.mdxnew file mode 100644index 00000000..f2b68e65--- /dev/null+++ b/content/docs/transitions/spatial-push.mdx@@ -0,0 +1,71 @@+---+title: Spatial Push+description: A new scene physically presses the old one back into the frame.+---++A transition primitive with weight. Scene A shrinks, dims, and rounds its corners as if being pushed into the background, while Scene B drops in via a spring with overshoot, carrying a heavy directional drop shadow. The result feels kinetic — as if the incoming scene has real mass pressing against the outgoing one.++<ComponentPreview name="spatial-push" />++## Installation++<InstallBlock name="spatial-push" />++## Usage++```tsx+import { SpatialPush } from "@/components/remocn/spatial-push";++<SpatialPush+ from={<SceneA />}+ to={<SceneB />}+ direction="up"+ transitionDuration={30}+/>+```++## Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "ReactNode",+ description: "The outgoing scene. Falls back to a labeled colored panel.",+ },+ {+ name: "to",+ type: "ReactNode",+ description: "The incoming scene. Falls back to a labeled colored panel.",+ },+ {+ name: "direction",+ type: '"up" | "down" | "left" | "right"',+ default: '"up"',+ description: "Direction the incoming scene enters from.",+ },+ {+ name: "transitionStart",+ type: "number",+ default: "durationInFrames * 0.4",+ description: "Frame at which the push begins.",+ },+ {+ name: "transitionDuration",+ type: "number",+ default: "30",+ description: "Easing window for Scene A's retreat, in frames.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className for the outer container.",+ },+ ]}+/>++## Notes++<Note title="Spring overshoot creates mass">+ The incoming scene uses a spring with `mass: 1.2` and moderate damping so it overshoots its final position by a hair before settling. That tiny bounce — combined with the directional drop shadow — is what sells the illusion of physical weight pressing into the frame.+</Note>diff --git a/content/docs/primitives/blur-reveal.mdx b/content/docs/typography/blur-reveal.mdxsimilarity index 100%rename from content/docs/primitives/blur-reveal.mdxrename to content/docs/typography/blur-reveal.mdxdiff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdxnew file mode 100644index 00000000..488c083d--- /dev/null+++ b/content/docs/typography/index.mdx@@ -0,0 +1,125 @@+---+title: Typography+description: Text effects, reveals, and kinetic type for Remotion.+---++Every way text can move, fade, glitch, or stretch across the screen. From quiet word-by-word reveals to full-bleed marquees and RGB glitches.++## Reveals++<ComponentCardGrid+ items={[+ {+ name: "BlurReveal",+ description: "Text fades in from a heavy blur into sharp focus.",+ status: "stable",+ href: "/docs/typography/blur-reveal",+ },+ {+ name: "StaggeredFadeUp",+ description: "Words rise from below with a soft cascading delay.",+ status: "stable",+ href: "/docs/typography/staggered-fade-up",+ },+ {+ name: "MaskedSlideReveal",+ description: "Lines grow out from behind an invisible horizontal mask.",+ status: "stable",+ href: "/docs/typography/masked-slide-reveal",+ },+ {+ name: "TrackingIn",+ description: "Letter-spacing collapses from wide to normal with a spring snap.",+ status: "stable",+ href: "/docs/typography/tracking-in",+ },+ ]}+/>++## Highlights++<ComponentCardGrid+ items={[+ {+ name: "InlineHighlight",+ description: "Animates one word inside a sentence from a base color to a brand color.",+ status: "stable",+ href: "/docs/typography/inline-highlight",+ },+ {+ name: "MarkerHighlight",+ description: "Marker bar sweeps in behind a phrase, optionally inverting the text color.",+ status: "stable",+ href: "/docs/typography/marker-highlight",+ },+ {+ name: "ShimmerSweep",+ description: "Bright gradient sweeps across dim text, lighting it up.",+ status: "stable",+ href: "/docs/typography/shimmer-sweep",+ },+ ]}+/>++## Dynamic Text++<ComponentCardGrid+ items={[+ {+ name: "Typewriter",+ description: "Character-by-character text reveal with a deterministic blinking cursor.",+ status: "stable",+ href: "/docs/typography/typewriter",+ },+ {+ name: "TextFadeReplace",+ description: "Cross-fades between two strings on the same line. Includes a Strikethrough variant.",+ status: "stable",+ href: "/docs/typography/text-fade-replace",+ },+ {+ name: "SlotMachineRoll",+ description: "Numbers and characters roll into place like a casino reel.",+ status: "stable",+ href: "/docs/typography/slot-machine-roll",+ },+ ]}+/>++## Hero & Display++<ComponentCardGrid+ items={[+ {+ name: "InfiniteMarquee",+ description: "Endlessly scrolling horizontal text band.",+ status: "stable",+ href: "/docs/typography/infinite-marquee",+ },+ {+ name: "PerspectiveMarquee",+ description: "Marquee tilted into 3D space with depth fade.",+ status: "stable",+ href: "/docs/typography/perspective-marquee",+ },+ ]}+/>++## Tech & Glitch++<ComponentCardGrid+ items={[+ {+ name: "MatrixDecode",+ description: "Random characters scramble and resolve into the target string.",+ status: "stable",+ href: "/docs/typography/matrix-decode",+ },+ {+ name: "RGBGlitchText",+ description: "Three-channel RGB split with a brief horizontal jitter.",+ status: "stable",+ href: "/docs/typography/rgb-glitch-text",+ },+ ]}+/>diff --git a/content/docs/primitives/infinite-marquee.mdx b/content/docs/typography/infinite-marquee.mdxsimilarity index 100%rename from content/docs/primitives/infinite-marquee.mdxrename to content/docs/typography/infinite-marquee.mdxdiff --git a/content/docs/primitives/inline-highlight.mdx b/content/docs/typography/inline-highlight.mdxsimilarity index 100%rename from content/docs/primitives/inline-highlight.mdxrename to content/docs/typography/inline-highlight.mdxdiff --git a/content/docs/primitives/marker-highlight.mdx b/content/docs/typography/marker-highlight.mdxsimilarity index 100%rename from content/docs/primitives/marker-highlight.mdxrename to content/docs/typography/marker-highlight.mdxdiff --git a/content/docs/primitives/masked-slide-reveal.mdx b/content/docs/typography/masked-slide-reveal.mdxsimilarity index 100%rename from content/docs/primitives/masked-slide-reveal.mdxrename to content/docs/typography/masked-slide-reveal.mdxdiff --git a/content/docs/primitives/matrix-decode.mdx b/content/docs/typography/matrix-decode.mdxsimilarity index 100%rename from content/docs/primitives/matrix-decode.mdxrename to content/docs/typography/matrix-decode.mdxdiff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.jsonnew file mode 100644index 00000000..82c25d9c--- /dev/null+++ b/content/docs/typography/meta.json@@ -0,0 +1,25 @@+{+ "title": "Typography",+ "pages": [+ "index",+ "---Reveals---",+ "blur-reveal",+ "staggered-fade-up",+ "masked-slide-reveal",+ "tracking-in",+ "---Highlights---",+ "inline-highlight",+ "marker-highlight",+ "shimmer-sweep",+ "---Dynamic Text---",+ "typewriter",+ "text-fade-replace",+ "slot-machine-roll",+ "---Hero & Display---",+ "infinite-marquee",+ "perspective-marquee",+ "---Tech & Glitch---",+ "matrix-decode",+ "rgb-glitch-text"+ ]+}diff --git a/content/docs/primitives/perspective-marquee.mdx b/content/docs/typography/perspective-marquee.mdxsimilarity index 100%rename from content/docs/primitives/perspective-marquee.mdxrename to content/docs/typography/perspective-marquee.mdxdiff --git a/content/docs/primitives/rgb-glitch-text.mdx b/content/docs/typography/rgb-glitch-text.mdxsimilarity index 100%rename from content/docs/primitives/rgb-glitch-text.mdxrename to content/docs/typography/rgb-glitch-text.mdxdiff --git a/content/docs/primitives/shimmer-sweep.mdx b/content/docs/typography/shimmer-sweep.mdxsimilarity index 100%rename from content/docs/primitives/shimmer-sweep.mdxrename to content/docs/typography/shimmer-sweep.mdxdiff --git a/content/docs/primitives/slot-machine-roll.mdx b/content/docs/typography/slot-machine-roll.mdxsimilarity index 100%rename from content/docs/primitives/slot-machine-roll.mdxrename to content/docs/typography/slot-machine-roll.mdxdiff --git a/content/docs/primitives/staggered-fade-up.mdx b/content/docs/typography/staggered-fade-up.mdxsimilarity index 100%rename from content/docs/primitives/staggered-fade-up.mdxrename to content/docs/typography/staggered-fade-up.mdxdiff --git a/content/docs/primitives/text-fade-replace.mdx b/content/docs/typography/text-fade-replace.mdxsimilarity index 51%rename from content/docs/primitives/text-fade-replace.mdxrename to content/docs/typography/text-fade-replace.mdxindex 97384520..74442123 100644--- a/content/docs/primitives/text-fade-replace.mdx+++ b/content/docs/typography/text-fade-replace.mdx@@ -70,3 +70,78 @@ import { TextFadeReplace } from "@/components/remocn/text-fade-replace";<Warning title="Long strings">If your strings are very long, make sure your composition is wide enough — neither span will wrap because they use `whiteSpace: nowrap`.</Warning>++## Variant: Strikethrough Replace++A companion primitive that animates a strikethrough line growing left-to-right across the `from` text, then cross-fades to the `to` text. Useful for "old way / new way" comparisons.++<ComponentPreview name="strikethrough-replace" />++### Installation++<InstallBlock name="strikethrough-replace" />++### Usage++```tsx+import { StrikethroughReplace } from "@/components/remocn/strikethrough-replace";++<StrikethroughReplace+ from="Slow setup"+ to="Instant setup"+ lineColor="#ff5e3a"+ fontSize={72}+/>+```++### Props++<PropsTable+ rows={[+ {+ name: "from",+ type: "string",+ required: true,+ description: "Original text that gets struck through.",+ },+ {+ name: "to",+ type: "string",+ required: true,+ description: "Replacement text that fades in.",+ },+ {+ name: "lineColor",+ type: "string",+ default: "\"#ff5e3a\"",+ description: "Color of the strikethrough bar.",+ },+ {+ name: "fontSize",+ type: "number",+ default: "48",+ description: "Font size in pixels.",+ },+ {+ name: "fontWeight",+ type: "number",+ default: "600",+ description: "CSS font-weight.",+ },+ {+ name: "color",+ type: "string",+ default: "\"#171717\"",+ description: "Text color for both strings.",+ },+ {+ name: "className",+ type: "string",+ description: "Optional className passed to the underlying spans.",+ },+ ]}+/>++<Note title="Three phases">+ The animation runs in three phases tied to `durationInFrames`: draw the strike line (0–40%), cross-fade to the new text (40–60%), then hold (60–100%).+</Note>diff --git a/content/docs/primitives/tracking-in.mdx b/content/docs/typography/tracking-in.mdxsimilarity index 100%rename from content/docs/primitives/tracking-in.mdxrename to content/docs/typography/tracking-in.mdxdiff --git a/content/docs/primitives/typewriter.mdx b/content/docs/typography/typewriter.mdxsimilarity index 100%rename from content/docs/primitives/typewriter.mdxrename to content/docs/typography/typewriter.mdxdiff --git a/content/docs/data-viz/animated-bar-chart.mdx b/content/docs/ui-blocks/animated-bar-chart.mdxsimilarity index 100%rename from content/docs/data-viz/animated-bar-chart.mdxrename to content/docs/ui-blocks/animated-bar-chart.mdxdiff --git a/content/docs/data-viz/animated-line-chart.mdx b/content/docs/ui-blocks/animated-line-chart.mdxsimilarity index 100%rename from content/docs/data-viz/animated-line-chart.mdxrename to content/docs/ui-blocks/animated-line-chart.mdxdiff --git a/content/docs/primitives/code-accordion.mdx b/content/docs/ui-blocks/code-accordion.mdxsimilarity index 100%rename from content/docs/primitives/code-accordion.mdxrename to content/docs/ui-blocks/code-accordion.mdxdiff --git a/content/docs/dev-blocks/code-diff-wipe.mdx b/content/docs/ui-blocks/code-diff-wipe.mdxsimilarity index 100%rename from content/docs/dev-blocks/code-diff-wipe.mdxrename to content/docs/ui-blocks/code-diff-wipe.mdxdiff --git a/content/docs/primitives/data-flow-pipes.mdx b/content/docs/ui-blocks/data-flow-pipes.mdxsimilarity index 100%rename from content/docs/primitives/data-flow-pipes.mdxrename to content/docs/ui-blocks/data-flow-pipes.mdxdiff --git a/content/docs/micro-interactions/drag-and-drop-flow.mdx b/content/docs/ui-blocks/drag-and-drop-flow.mdxsimilarity index 100%rename from content/docs/micro-interactions/drag-and-drop-flow.mdxrename to content/docs/ui-blocks/drag-and-drop-flow.mdxdiff --git a/content/docs/compositions/chat-to-preview-layout.mdx b/content/docs/ui-blocks/dynamic-split-screen.mdxsimilarity index 78%rename from content/docs/compositions/chat-to-preview-layout.mdxrename to content/docs/ui-blocks/dynamic-split-screen.mdxindex 8616543f..551bceb0 100644--- a/content/docs/compositions/chat-to-preview-layout.mdx+++ b/content/docs/ui-blocks/dynamic-split-screen.mdx@@ -1,9 +1,9 @@----title: Chat to Preview Layout-description: Two-column layout where the chat shrinks and the preview expands.+title: Dynamic Split Screen+description: Cinematic two-column split where one panel shrinks and the other expands into view.----A composition that animates the `flex-basis` of two side-by-side panels, simulating a chat interface that hands off real estate to a live preview. Both panels use `overflow: hidden` so their content doesn't break the layout while the widths animate.+A layout block that animates the `flex-basis` of two side-by-side panels — perfect for chat-to-preview handoffs, before/after comparisons, or any moment where one workspace cedes real estate to another. Both panels use `overflow: hidden` so their content doesn't break the layout while the widths animate.<ComponentPreview name="chat-to-preview-layout" />diff --git a/content/docs/primitives/glass-code-block.mdx b/content/docs/ui-blocks/glass-code-block.mdxsimilarity index 100%rename from content/docs/primitives/glass-code-block.mdxrename to content/docs/ui-blocks/glass-code-block.mdxdiff --git a/content/docs/ui-blocks/index.mdx b/content/docs/ui-blocks/index.mdxnew file mode 100644index 00000000..654a9335--- /dev/null+++ b/content/docs/ui-blocks/index.mdx@@ -0,0 +1,100 @@+---+title: UI Blocks+description: Pre-assembled interface elements — code editors, layouts, charts, and workflow visualizations.+---++Larger blocks built from primitives — the actual surfaces your viewers will recognize: code windows, terminals, charts, dashboards, and workflow diagrams.++## Code & CLI++<ComponentCardGrid+ items={[+ {+ name: "GlassCodeBlock",+ description: "Premium frosted-glass code window with rim light and traffic-light controls.",+ status: "stable",+ href: "/docs/ui-blocks/glass-code-block",+ },+ {+ name: "TerminalSimulator",+ description: "CLI build simulation with chunked log output and step-function scrolling.",+ status: "stable",+ href: "/docs/ui-blocks/terminal-simulator",+ },+ {+ name: "CodeAccordion",+ description: "Long code blocks collapse mid-section, hiding noise behind a count badge.",+ status: "stable",+ href: "/docs/ui-blocks/code-accordion",+ },+ {+ name: "CodeDiffWipe",+ description: "Before/after comparison with a clip-path slider revealing the new code.",+ status: "stable",+ href: "/docs/ui-blocks/code-diff-wipe",+ },+ ]}+/>++## Layouts++<ComponentCardGrid+ items={[+ {+ name: "StaggeredBentoGrid",+ description: "Bento grid where cards cascade in with per-cell sequences.",+ status: "stable",+ href: "/docs/ui-blocks/staggered-bento-grid",+ },+ {+ name: "DynamicSplitScreen",+ description: "Two-column split where one panel shrinks and the other expands into view.",+ status: "stable",+ href: "/docs/ui-blocks/dynamic-split-screen",+ },+ ]}+/>++## Data & System++<ComponentCardGrid+ items={[+ {+ name: "AnimatedLineChart",+ description: "SVG line chart drawn left-to-right via stroke-dashoffset.",+ status: "stable",+ href: "/docs/ui-blocks/animated-line-chart",+ },+ {+ name: "AnimatedBarChart",+ description: "Bars spring up from the baseline with deterministic stagger.",+ status: "stable",+ href: "/docs/ui-blocks/animated-bar-chart",+ },+ {+ name: "DataFlowPipes",+ description: "Glowing data packets fly along SVG pipes with trailing tails.",+ status: "stable",+ href: "/docs/ui-blocks/data-flow-pipes",+ },+ ]}+/>++## Workflows++<ComponentCardGrid+ items={[+ {+ name: "ProgressSteps",+ description: "Multi-step pipeline visualization with line fill and pulsing dots.",+ status: "stable",+ href: "/docs/ui-blocks/progress-steps",+ },+ {+ name: "DragAndDropFlow",+ description: "Cursor drags a file into a drop zone that lights up and starts a progress bar.",+ status: "stable",+ href: "/docs/ui-blocks/drag-and-drop-flow",+ },+ ]}+/>diff --git a/content/docs/ui-blocks/meta.json b/content/docs/ui-blocks/meta.jsonnew file mode 100644index 00000000..bfbeb5a4--- /dev/null+++ b/content/docs/ui-blocks/meta.json@@ -0,0 +1,21 @@+{+ "title": "UI Blocks",+ "pages": [+ "index",+ "---Code & CLI---",+ "glass-code-block",+ "terminal-simulator",+ "code-accordion",+ "code-diff-wipe",+ "---Layouts---",+ "staggered-bento-grid",+ "dynamic-split-screen",+ "---Data & System---",+ "animated-line-chart",+ "animated-bar-chart",+ "data-flow-pipes",+ "---Workflows---",+ "progress-steps",+ "drag-and-drop-flow"+ ]+}diff --git a/content/docs/workflows/progress-steps.mdx b/content/docs/ui-blocks/progress-steps.mdxsimilarity index 100%rename from content/docs/workflows/progress-steps.mdxrename to content/docs/ui-blocks/progress-steps.mdxdiff --git a/content/docs/compositions/staggered-bento-grid.mdx b/content/docs/ui-blocks/staggered-bento-grid.mdxsimilarity index 100%rename from content/docs/compositions/staggered-bento-grid.mdxrename to content/docs/ui-blocks/staggered-bento-grid.mdxdiff --git a/content/docs/dev-blocks/terminal-simulator.mdx b/content/docs/ui-blocks/terminal-simulator.mdxsimilarity index 100%rename from content/docs/dev-blocks/terminal-simulator.mdxrename to content/docs/ui-blocks/terminal-simulator.mdxdiff --git a/content/docs/ui-elements/index.mdx b/content/docs/ui-elements/index.mdxdeleted file mode 100644index 2ecd3e29..00000000--- a/content/docs/ui-elements/index.mdx+++ /dev/null@@ -1,29 +0,0 @@-----title: UI Elements-description: Reusable UI primitives that act like animated React components.------Small interactive UI affordances that show up everywhere in product demos — cursors, buttons, indicators.--<ComponentCardGrid- items={[- {- name: "SpringPopIn",- description: "Elastic spring-driven scale-in wrapper for any child element.",- status: "stable",- href: "/docs/ui-elements/spring-pop-in",- },- {- name: "SimulatedCursor",- description: "Animated mouse cursor moving between waypoints with click ripple feedback.",- status: "stable",- href: "/docs/ui-elements/simulated-cursor",- },- {- name: "PulsingIndicator",- description: "Continuous pulsing dot with ping ring for loading or live states.",- status: "stable",- href: "/docs/ui-elements/pulsing-indicator",- },- ]}-/>diff --git a/content/docs/ui-elements/simulated-cursor.mdx b/content/docs/ui-elements/simulated-cursor.mdxdeleted file mode 100644index 49ba4eeb..00000000--- a/content/docs/ui-elements/simulated-cursor.mdx+++ /dev/null@@ -1,73 +0,0 @@-----title: Simulated Cursor-description: Animated mouse cursor that moves between waypoints with optional click feedback.------A UI primitive that renders a macOS-style cursor (inline SVG, no external assets) and moves it between a list of points. Each waypoint can hold for a configurable number of frames and optionally trigger a click animation: a brief scale dip plus an expanding SVG ripple.--<ComponentPreview name="simulated-cursor" />--## Installation--<InstallBlock name="simulated-cursor" />--## Usage--```tsx-import { SimulatedCursor } from "@/components/remocn/simulated-cursor";--<SimulatedCursor- points={[- { x: 200, y: 150, hold: 20 },- { x: 800, y: 360, hold: 25, click: true },- { x: 1050, y: 560, hold: 20 },- ]}- color="#ffffff"-/>-```--## Props--<PropsTable- rows={[- {- name: "points",- type: "Array<{ x: number; y: number; hold?: number; click?: boolean }>",- default: "3 sample waypoints",- description: "Cursor waypoints in pixel coordinates. hold = frames to pause at the point, click = trigger click ripple.",- },- {- name: "color",- type: "string",- default: "\"#ffffff\"",- description: "Cursor fill color. The cursor always has a thin black outline for contrast.",- },- {- name: "size",- type: "number",- default: "32",- description: "Cursor size in pixels (SVG width and height).",- },- {- name: "background",- type: "string",- default: "\"#0a0a0a\"",- description: "Background color of the frame the cursor lives in.",- },- {- name: "className",- type: "string",- description: "Optional className passed to the outer container.",- },- ]}-/>--## Notes--<Note title="Inline SVG, no assets">- The cursor is drawn as inline SVG, so you don't need to copy anything into `public/`. Drop the component into any composition and it just works.-</Note>--<Note title="Coordinate space">- `x` and `y` are in pixels relative to the composition size (e.g. 1280x720). Coordinates larger than the canvas will still render but be clipped by `overflow: hidden`.-</Note>diff --git a/content/docs/workflows/index.mdx b/content/docs/workflows/index.mdxdeleted file mode 100644index ab237260..00000000--- a/content/docs/workflows/index.mdx+++ /dev/null@@ -1,23 +0,0 @@-----title: Workflows-description: Multi-step process visualizations.------Step-by-step visualizations — pipelines, deploys, build processes.--<ComponentCardGrid- items={[- {- name: "ProgressSteps",- description: "Multi-step pipeline with sequentially activating nodes and filling lines. Supports both horizontal and vertical (Timeline) orientations.",- status: "stable",- href: "/docs/workflows/progress-steps",- },- {- name: "SuccessConfetti",- description: "Deterministic seeded confetti burst with optional headline.",- status: "stable",- href: "/docs/workflows/success-confetti",- },- ]}-/>diff --git a/registry.json b/registry.jsonindex 79d3559a..a1ad5cba 100644--- a/registry.json+++ b/registry.json@@ -562,6 +562,216 @@"target": "components/remocn/success-confetti.tsx"}]+ },+ {+ "name": "frosted-glass-wipe",+ "type": "registry:component",+ "title": "Frosted Glass Wipe",+ "description": "Elegant scene transition through a sliding pane of frosted glass.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/frosted-glass-wipe/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/frosted-glass-wipe.tsx"+ }+ ]+ },+ {+ "name": "kinetic-type-mask",+ "type": "registry:component",+ "title": "Kinetic Type Mask",+ "description": "Use giant typography as a window into the next scene.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/kinetic-type-mask/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/kinetic-type-mask.tsx"+ }+ ]+ },+ {+ "name": "spatial-push",+ "type": "registry:component",+ "title": "Spatial Push",+ "description": "A new scene physically presses the old one back into the frame.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/spatial-push/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/spatial-push.tsx"+ }+ ]+ },+ {+ "name": "grid-pixelate-wipe",+ "type": "registry:component",+ "title": "Grid Pixelate Wipe",+ "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/grid-pixelate-wipe/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/grid-pixelate-wipe.tsx"+ }+ ]+ },+ {+ "name": "chromatic-aberration-wipe",+ "type": "registry:component",+ "title": "Chromatic Aberration Wipe",+ "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/chromatic-aberration-wipe/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/chromatic-aberration-wipe.tsx"+ }+ ]+ },+ {+ "name": "hero-device-assemble",+ "type": "registry:component",+ "title": "Hero Device Assemble",+ "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/hero-device-assemble/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/hero-device-assemble.tsx"+ }+ ]+ },+ {+ "name": "ecosystem-constellation",+ "type": "registry:component",+ "title": "Ecosystem Constellation",+ "description": "A central logo orbited by integration satellites with pulsing data lines.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/ecosystem-constellation/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/ecosystem-constellation.tsx"+ }+ ]+ },+ {+ "name": "ai-generation-canvas",+ "type": "registry:component",+ "title": "AI Generation Canvas",+ "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/ai-generation-canvas/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/ai-generation-canvas.tsx"+ }+ ]+ },+ {+ "name": "live-code-compilation",+ "type": "registry:component",+ "title": "Live Code Compilation",+ "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/live-code-compilation/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/live-code-compilation.tsx"+ }+ ]+ },+ {+ "name": "pipeline-journey",+ "type": "registry:component",+ "title": "Pipeline Journey",+ "description": "A Kanban ticket arcs across columns triggering landings and a final confetti burst.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/pipeline-journey/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/pipeline-journey.tsx"+ }+ ]+ },+ {+ "name": "dashboard-populate",+ "type": "registry:component",+ "title": "Dashboard Populate",+ "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/dashboard-populate/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/dashboard-populate.tsx"+ }+ ]+ },+ {+ "name": "terminal-to-browser-deploy",+ "type": "registry:component",+ "title": "Terminal to Browser Deploy",+ "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/terminal-to-browser-deploy/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/terminal-to-browser-deploy.tsx"+ }+ ]+ },+ {+ "name": "browser-flow",+ "type": "registry:component",+ "title": "Browser Flow",+ "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/browser-flow/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/browser-flow.tsx"+ }+ ]+ },+ {+ "name": "pricing-tier-focus",+ "type": "registry:component",+ "title": "Pricing Tier Focus",+ "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/pricing-tier-focus/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/pricing-tier-focus.tsx"+ }+ ]+ },+ {+ "name": "infinite-bento-pan",+ "type": "registry:component",+ "title": "Infinite Bento Pan",+ "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",+ "dependencies": ["remotion"],+ "files": [+ {+ "path": "registry/remocn/infinite-bento-pan/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/infinite-bento-pan.tsx"+ }+ ]}]}diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex d28282c2..e8c08597 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -1,6 +1,8 @@import type React from "react";import { type ComponentConfig, SHARED_CONTROLS } from "@/lib/customizer-config";+import { AIGenerationCanvas } from "@/registry/remocn/ai-generation-canvas";+import { aiGenerationCanvasConfig } from "@/registry/remocn/ai-generation-canvas/config";import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";import { animatedBarChartConfig } from "@/registry/remocn/animated-bar-chart/config";import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";@@ -9,14 +11,20 @@ import { BlurReveal } from "@/registry/remocn/blur-reveal";import { blurRevealConfig } from "@/registry/remocn/blur-reveal/config";import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";import { boundingBoxSelectorConfig } from "@/registry/remocn/bounding-box-selector/config";+import { BrowserFlow } from "@/registry/remocn/browser-flow";+import { browserFlowConfig } from "@/registry/remocn/browser-flow/config";import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";import { chatToPreviewLayoutConfig } from "@/registry/remocn/chat-to-preview-layout/config";+import { ChromaticAberrationWipe } from "@/registry/remocn/chromatic-aberration-wipe";+import { chromaticAberrationWipeConfig } from "@/registry/remocn/chromatic-aberration-wipe/config";import { CodeAccordion } from "@/registry/remocn/code-accordion";import { codeAccordionConfig } from "@/registry/remocn/code-accordion/config";import { CodeDiffWipe } from "@/registry/remocn/code-diff-wipe";import { codeDiffWipeConfig } from "@/registry/remocn/code-diff-wipe/config";import { CursorFlow } from "@/registry/remocn/cursor-flow";import { cursorFlowConfig } from "@/registry/remocn/cursor-flow/config";+import { DashboardPopulate } from "@/registry/remocn/dashboard-populate";+import { dashboardPopulateConfig } from "@/registry/remocn/dashboard-populate/config";import { DataFlowPipes } from "@/registry/remocn/data-flow-pipes";import { dataFlowPipesConfig } from "@/registry/remocn/data-flow-pipes/config";import { DeviceMockupZoom } from "@/registry/remocn/device-mockup-zoom";@@ -27,12 +35,26 @@ import { DragAndDropFlow } from "@/registry/remocn/drag-and-drop-flow";import { dragAndDropFlowConfig } from "@/registry/remocn/drag-and-drop-flow/config";import { DynamicGrid } from "@/registry/remocn/dynamic-grid";import { dynamicGridConfig } from "@/registry/remocn/dynamic-grid/config";+import { EcosystemConstellation } from "@/registry/remocn/ecosystem-constellation";+import { ecosystemConstellationConfig } from "@/registry/remocn/ecosystem-constellation/config";+import { FrostedGlassWipe } from "@/registry/remocn/frosted-glass-wipe";+import { frostedGlassWipeConfig } from "@/registry/remocn/frosted-glass-wipe/config";import { GlassCodeBlock } from "@/registry/remocn/glass-code-block";import { glassCodeBlockConfig } from "@/registry/remocn/glass-code-block/config";+import { GridPixelateWipe } from "@/registry/remocn/grid-pixelate-wipe";+import { gridPixelateWipeConfig } from "@/registry/remocn/grid-pixelate-wipe/config";+import { HeroDeviceAssemble } from "@/registry/remocn/hero-device-assemble";+import { heroDeviceAssembleConfig } from "@/registry/remocn/hero-device-assemble/config";+import { InfiniteBentoPan } from "@/registry/remocn/infinite-bento-pan";+import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";import { InfiniteMarquee } from "@/registry/remocn/infinite-marquee";import { infiniteMarqueeConfig } from "@/registry/remocn/infinite-marquee/config";import { InlineHighlight } from "@/registry/remocn/inline-highlight";import { inlineHighlightConfig } from "@/registry/remocn/inline-highlight/config";+import { KineticTypeMask } from "@/registry/remocn/kinetic-type-mask";+import { kineticTypeMaskConfig } from "@/registry/remocn/kinetic-type-mask/config";+import { LiveCodeCompilation } from "@/registry/remocn/live-code-compilation";+import { liveCodeCompilationConfig } from "@/registry/remocn/live-code-compilation/config";import { MarkerHighlight } from "@/registry/remocn/marker-highlight";import { markerHighlightConfig } from "@/registry/remocn/marker-highlight/config";import { MaskedSlideReveal } from "@/registry/remocn/masked-slide-reveal";@@ -45,6 +67,10 @@ import { MorphingModal } from "@/registry/remocn/morphing-modal";import { morphingModalConfig } from "@/registry/remocn/morphing-modal/config";import { PerspectiveMarquee } from "@/registry/remocn/perspective-marquee";import { perspectiveMarqueeConfig } from "@/registry/remocn/perspective-marquee/config";+import { PipelineJourney } from "@/registry/remocn/pipeline-journey";+import { pipelineJourneyConfig } from "@/registry/remocn/pipeline-journey/config";+import { PricingTierFocus } from "@/registry/remocn/pricing-tier-focus";+import { pricingTierFocusConfig } from "@/registry/remocn/pricing-tier-focus/config";import { ProgressSteps } from "@/registry/remocn/progress-steps";import { progressStepsConfig } from "@/registry/remocn/progress-steps/config";import { PulsingIndicator } from "@/registry/remocn/pulsing-indicator";@@ -57,6 +83,8 @@ import { SimulatedCursor } from "@/registry/remocn/simulated-cursor";import { simulatedCursorConfig } from "@/registry/remocn/simulated-cursor/config";import { SlotMachineRoll } from "@/registry/remocn/slot-machine-roll";import { slotMachineRollConfig } from "@/registry/remocn/slot-machine-roll/config";+import { SpatialPush } from "@/registry/remocn/spatial-push";+import { spatialPushConfig } from "@/registry/remocn/spatial-push/config";import { SpotlightCard } from "@/registry/remocn/spotlight-card";import { spotlightCardConfig } from "@/registry/remocn/spotlight-card/config";import { SpringPopIn } from "@/registry/remocn/spring-pop-in";@@ -71,6 +99,8 @@ import { SuccessConfetti } from "@/registry/remocn/success-confetti";import { successConfettiConfig } from "@/registry/remocn/success-confetti/config";import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";import { terminalSimulatorConfig } from "@/registry/remocn/terminal-simulator/config";+import { TerminalToBrowserDeploy } from "@/registry/remocn/terminal-to-browser-deploy";+import { terminalToBrowserDeployConfig } from "@/registry/remocn/terminal-to-browser-deploy/config";import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";import { textFadeReplaceConfig } from "@/registry/remocn/text-fade-replace/config";import { ToastNotification } from "@/registry/remocn/toast-notification";@@ -90,44 +120,173 @@ export interface RegistryEntry {const registry: Record<string, RegistryEntry> = {"blur-reveal": { Component: BlurReveal, config: blurRevealConfig },typewriter: { Component: Typewriter, config: typewriterConfig },- "inline-highlight": { Component: InlineHighlight, config: inlineHighlightConfig },- "text-fade-replace": { Component: TextFadeReplace, config: textFadeReplaceConfig },- "strikethrough-replace": { Component: StrikethroughReplace, config: strikethroughReplaceConfig },- "staggered-fade-up": { Component: StaggeredFadeUp, config: staggeredFadeUpConfig },- "masked-slide-reveal": { Component: MaskedSlideReveal, config: maskedSlideRevealConfig },+ "inline-highlight": {+ Component: InlineHighlight,+ config: inlineHighlightConfig,+ },+ "text-fade-replace": {+ Component: TextFadeReplace,+ config: textFadeReplaceConfig,+ },+ "strikethrough-replace": {+ Component: StrikethroughReplace,+ config: strikethroughReplaceConfig,+ },+ "staggered-fade-up": {+ Component: StaggeredFadeUp,+ config: staggeredFadeUpConfig,+ },+ "masked-slide-reveal": {+ Component: MaskedSlideReveal,+ config: maskedSlideRevealConfig,+ },"tracking-in": { Component: TrackingIn, config: trackingInConfig },"shimmer-sweep": { Component: ShimmerSweep, config: shimmerSweepConfig },- "marker-highlight": { Component: MarkerHighlight, config: markerHighlightConfig },- "slot-machine-roll": { Component: SlotMachineRoll, config: slotMachineRollConfig },+ "marker-highlight": {+ Component: MarkerHighlight,+ config: markerHighlightConfig,+ },+ "slot-machine-roll": {+ Component: SlotMachineRoll,+ config: slotMachineRollConfig,+ },"matrix-decode": { Component: MatrixDecode, config: matrixDecodeConfig },"rgb-glitch-text": { Component: RGBGlitchText, config: rgbGlitchTextConfig },- "infinite-marquee": { Component: InfiniteMarquee, config: infiniteMarqueeConfig },- "perspective-marquee": { Component: PerspectiveMarquee, config: perspectiveMarqueeConfig },+ "infinite-marquee": {+ Component: InfiniteMarquee,+ config: infiniteMarqueeConfig,+ },+ "perspective-marquee": {+ Component: PerspectiveMarquee,+ config: perspectiveMarqueeConfig,+ },"spotlight-card": { Component: SpotlightCard, config: spotlightCardConfig },- "glass-code-block": { Component: GlassCodeBlock, config: glassCodeBlockConfig },+ "glass-code-block": {+ Component: GlassCodeBlock,+ config: glassCodeBlockConfig,+ },"code-accordion": { Component: CodeAccordion, config: codeAccordionConfig },"cursor-flow": { Component: CursorFlow, config: cursorFlowConfig },"data-flow-pipes": { Component: DataFlowPipes, config: dataFlowPipesConfig },"morphing-modal": { Component: MorphingModal, config: morphingModalConfig },- "mesh-gradient-bg": { Component: MeshGradientBg, config: meshGradientBgConfig },+ "mesh-gradient-bg": {+ Component: MeshGradientBg,+ config: meshGradientBgConfig,+ },"dynamic-grid": { Component: DynamicGrid, config: dynamicGridConfig },"spring-pop-in": { Component: SpringPopIn, config: springPopInConfig },- "simulated-cursor": { Component: SimulatedCursor, config: simulatedCursorConfig },- "pulsing-indicator": { Component: PulsingIndicator, config: pulsingIndicatorConfig },- "directional-wipe": { Component: DirectionalWipe, config: directionalWipeConfig },- "device-mockup-zoom": { Component: DeviceMockupZoom, config: deviceMockupZoomConfig },- "zoom-through-transition": { Component: ZoomThroughTransition, config: zoomThroughTransitionConfig },- "staggered-bento-grid": { Component: StaggeredBentoGrid, config: staggeredBentoGridConfig },- "chat-to-preview-layout": { Component: ChatToPreviewLayout, config: chatToPreviewLayoutConfig },- "bounding-box-selector": { Component: BoundingBoxSelector, config: boundingBoxSelectorConfig },- "animated-line-chart": { Component: AnimatedLineChart, config: animatedLineChartConfig },- "animated-bar-chart": { Component: AnimatedBarChart, config: animatedBarChartConfig },- "terminal-simulator": { Component: TerminalSimulator, config: terminalSimulatorConfig },+ "simulated-cursor": {+ Component: SimulatedCursor,+ config: simulatedCursorConfig,+ },+ "pulsing-indicator": {+ Component: PulsingIndicator,+ config: pulsingIndicatorConfig,+ },+ "directional-wipe": {+ Component: DirectionalWipe,+ config: directionalWipeConfig,+ },+ "device-mockup-zoom": {+ Component: DeviceMockupZoom,+ config: deviceMockupZoomConfig,+ },+ "zoom-through-transition": {+ Component: ZoomThroughTransition,+ config: zoomThroughTransitionConfig,+ },+ "staggered-bento-grid": {+ Component: StaggeredBentoGrid,+ config: staggeredBentoGridConfig,+ },+ "chat-to-preview-layout": {+ Component: ChatToPreviewLayout,+ config: chatToPreviewLayoutConfig,+ },+ "bounding-box-selector": {+ Component: BoundingBoxSelector,+ config: boundingBoxSelectorConfig,+ },+ "animated-line-chart": {+ Component: AnimatedLineChart,+ config: animatedLineChartConfig,+ },+ "animated-bar-chart": {+ Component: AnimatedBarChart,+ config: animatedBarChartConfig,+ },+ "terminal-simulator": {+ Component: TerminalSimulator,+ config: terminalSimulatorConfig,+ },"code-diff-wipe": { Component: CodeDiffWipe, config: codeDiffWipeConfig },- "toast-notification": { Component: ToastNotification, config: toastNotificationConfig },- "drag-and-drop-flow": { Component: DragAndDropFlow, config: dragAndDropFlowConfig },+ "toast-notification": {+ Component: ToastNotification,+ config: toastNotificationConfig,+ },+ "drag-and-drop-flow": {+ Component: DragAndDropFlow,+ config: dragAndDropFlowConfig,+ },"progress-steps": { Component: ProgressSteps, config: progressStepsConfig },- "success-confetti": { Component: SuccessConfetti, config: successConfettiConfig },+ "success-confetti": {+ Component: SuccessConfetti,+ config: successConfettiConfig,+ },+ "frosted-glass-wipe": {+ Component: FrostedGlassWipe,+ config: frostedGlassWipeConfig,+ },+ "kinetic-type-mask": {+ Component: KineticTypeMask,+ config: kineticTypeMaskConfig,+ },+ "spatial-push": { Component: SpatialPush, config: spatialPushConfig },+ "grid-pixelate-wipe": {+ Component: GridPixelateWipe,+ config: gridPixelateWipeConfig,+ },+ "chromatic-aberration-wipe": {+ Component: ChromaticAberrationWipe,+ config: chromaticAberrationWipeConfig,+ },+ "hero-device-assemble": {+ Component: HeroDeviceAssemble,+ config: heroDeviceAssembleConfig,+ },+ "ecosystem-constellation": {+ Component: EcosystemConstellation,+ config: ecosystemConstellationConfig,+ },+ "ai-generation-canvas": {+ Component: AIGenerationCanvas,+ config: aiGenerationCanvasConfig,+ },+ "live-code-compilation": {+ Component: LiveCodeCompilation,+ config: liveCodeCompilationConfig,+ },+ "pipeline-journey": {+ Component: PipelineJourney,+ config: pipelineJourneyConfig,+ },+ "dashboard-populate": {+ Component: DashboardPopulate,+ config: dashboardPopulateConfig,+ },+ "terminal-to-browser-deploy": {+ Component: TerminalToBrowserDeploy,+ config: terminalToBrowserDeployConfig,+ },+ "browser-flow": { Component: BrowserFlow, config: browserFlowConfig },+ "pricing-tier-focus": {+ Component: PricingTierFocus,+ config: pricingTierFocusConfig,+ },+ "infinite-bento-pan": {+ Component: InfiniteBentoPan,+ config: infiniteBentoPanConfig,+ },};// Append the shared controls (e.g. `speed`) to every component config sodiff --git a/registry/remocn/ai-generation-canvas/config.ts b/registry/remocn/ai-generation-canvas/config.tsnew file mode 100644index 00000000..808a9705--- /dev/null+++ b/registry/remocn/ai-generation-canvas/config.ts@@ -0,0 +1,30 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const aiGenerationCanvasConfig: ComponentConfig = {+ componentName: "AIGenerationCanvas",+ importPath: "@/components/remocn/ai-generation-canvas",+ controls: {+ prompt: {+ type: "text",+ default: "Generate a dashboard",+ label: "Prompt",+ },+ accentColor: {+ type: "color",+ default: "#7c3aed",+ label: "Accent color",+ },+ cardCount: {+ type: "number",+ default: 4,+ min: 2,+ max: 6,+ step: 1,+ label: "Card count",+ },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/ai-generation-canvas/index.tsx b/registry/remocn/ai-generation-canvas/index.tsxnew file mode 100644index 00000000..4689ffdf--- /dev/null+++ b/registry/remocn/ai-generation-canvas/index.tsx@@ -0,0 +1,460 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface AIGenerationCanvasProps {+ prompt?: string;+ accentColor?: string;+ cardCount?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function MiniBarChart({ accentColor }: { accentColor: string }) {+ const bars = [0.4, 0.7, 0.55, 0.85, 0.5, 0.95, 0.65];+ return (+ <div+ style={{+ display: "flex",+ alignItems: "flex-end",+ gap: 6,+ height: 60,+ marginTop: 12,+ }}+ >+ {bars.map((h, i) => (+ <div+ key={i}+ style={{+ flex: 1,+ height: `${h * 100}%`,+ background: accentColor,+ borderRadius: 3,+ opacity: 0.3 + h * 0.7,+ }}+ />+ ))}+ </div>+ );+}++function MiniRows() {+ return (+ <div+ style={{+ marginTop: 12,+ display: "flex",+ flexDirection: "column",+ gap: 6,+ }}+ >+ {[0.9, 0.7, 0.85, 0.6].map((w, i) => (+ <div+ key={i}+ style={{+ height: 8,+ width: `${w * 100}%`,+ background: "rgba(255,255,255,0.12)",+ borderRadius: 4,+ }}+ />+ ))}+ </div>+ );+}++function StatBlock({+ accentColor,+ value,+}: {+ accentColor: string;+ value: string;+}) {+ return (+ <div style={{ marginTop: 8 }}>+ <div+ style={{+ fontSize: 36,+ fontWeight: 700,+ color: "white",+ letterSpacing: "-0.03em",+ fontFamily: FONT_FAMILY,+ }}+ >+ {value}+ </div>+ <div+ style={{+ fontSize: 12,+ color: accentColor,+ marginTop: 2,+ fontWeight: 500,+ }}+ >+ +12.4% this week+ </div>+ </div>+ );+}++function CardContent({+ index,+ accentColor,+}: {+ index: number;+ accentColor: string;+}) {+ const titles = [+ "Revenue",+ "Active Users",+ "Sessions",+ "Conversion",+ "Retention",+ "Latency",+ ];+ const values = ["$48.2k", "12,840", "9.1k", "3.8%", "76%", "142ms"];+ const variant = index % 3;+ return (+ <div style={{ width: "100%", height: "100%", padding: 18 }}>+ <div+ style={{+ fontSize: 12,+ color: "rgba(255,255,255,0.55)",+ fontWeight: 500,+ fontFamily: FONT_FAMILY,+ letterSpacing: "0.02em",+ textTransform: "uppercase",+ }}+ >+ {titles[index % titles.length]}+ </div>+ {variant === 0 ? (+ <>+ <StatBlock+ accentColor={accentColor}+ value={values[index % values.length]}+ />+ <MiniBarChart accentColor={accentColor} />+ </>+ ) : variant === 1 ? (+ <>+ <StatBlock+ accentColor={accentColor}+ value={values[index % values.length]}+ />+ <MiniRows />+ </>+ ) : (+ <>+ <MiniBarChart accentColor={accentColor} />+ <MiniRows />+ </>+ )}+ </div>+ );+}++export function AIGenerationCanvas({+ prompt = "Generate a dashboard",+ accentColor = "#7c3aed",+ cardCount = 4,+ speed = 1,+ className,+}: AIGenerationCanvasProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ // Phase boundaries+ const P1_END = 40;+ const P2_END = 70;+ const P3_END = 100;++ // Phase 1: typewriter+ const charCount = Math.floor(+ interpolate(frame, [4, P1_END - 2], [0, prompt.length], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ }),+ );+ const typedText = prompt.substring(0, charCount);+ const cursorVisible = Math.floor(frame / 12) % 2 === 0;++ // Phase 2: input -> header transform+ const transformProgress = spring({+ frame: frame - P1_END,+ fps,+ config: { mass: 1, damping: 16, stiffness: 110 },+ durationInFrames: 30,+ });++ // Centered input dimensions+ const inputCenteredW = 640;+ const inputCenteredH = 80;+ const headerW = 1200;+ const headerH = 56;+ const inputW = interpolate(+ transformProgress,+ [0, 1],+ [inputCenteredW, headerW],+ );+ const inputH = interpolate(+ transformProgress,+ [0, 1],+ [inputCenteredH, headerH],+ );+ const inputTop = interpolate(transformProgress, [0, 1], [320, 40]);+ const inputRadius = interpolate(transformProgress, [0, 1], [16, 12]);+ const inputFontSize = interpolate(transformProgress, [0, 1], [24, 14]);++ // Phase 3: skeleton fade+ const skeletonOpacity = interpolate(frame, [P2_END, P3_END], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ // Shimmer position+ const shimmerPos = ((frame * 1.5) % 200) - 50;++ // Phase 4: card flip reveal (after frame 100)+ const cards = Array.from({ length: cardCount });++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background: "#0a0a0a",+ overflow: "hidden",+ fontFamily: FONT_FAMILY,+ }}+ >+ {/* subtle grid backdrop */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ backgroundImage:+ "linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px)",+ backgroundSize: "40px 40px",+ maskImage:+ "radial-gradient(ellipse at center, black 40%, transparent 80%)",+ }}+ />++ {/* Skeleton + content cards grid (Phase 3 onward) */}+ {frame > P2_END && (+ <div+ style={{+ position: "absolute",+ top: 130,+ left: 40,+ right: 40,+ bottom: 40,+ display: "grid",+ gridTemplateColumns: `repeat(${Math.min(cardCount, 4)}, 1fr)`,+ gap: 20,+ }}+ >+ {cards.map((_, i) => {+ const cardStart = P3_END + i * 8;+ const flipProgress = spring({+ frame: frame - cardStart,+ fps,+ config: { mass: 0.9, damping: 14, stiffness: 100 },+ durationInFrames: 30,+ });+ const rotation = interpolate(flipProgress, [0, 1], [0, 180]);+ const showSkeleton = rotation < 90;++ return (+ <div+ key={i}+ style={{+ position: "relative",+ perspective: 1200,+ opacity: skeletonOpacity,+ }}+ >+ <div+ style={{+ position: "relative",+ width: "100%",+ height: "100%",+ transformStyle: "preserve-3d",+ transform: `rotateY(${rotation}deg)`,+ }}+ >+ {/* Skeleton face */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: "#141416",+ border: "1px solid rgba(255,255,255,0.06)",+ borderRadius: 14,+ backfaceVisibility: "hidden",+ overflow: "hidden",+ visibility: showSkeleton ? "visible" : "hidden",+ }}+ >+ {/* shimmer overlay */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: `linear-gradient(110deg, transparent 0%, transparent ${shimmerPos}%, ${accentColor}22 ${shimmerPos + 15}%, transparent ${shimmerPos + 30}%)`,+ }}+ />+ <div style={{ padding: 18 }}>+ <div+ style={{+ width: "40%",+ height: 10,+ background: "rgba(255,255,255,0.08)",+ borderRadius: 4,+ }}+ />+ <div+ style={{+ width: "70%",+ height: 28,+ background: "rgba(255,255,255,0.08)",+ borderRadius: 6,+ marginTop: 14,+ }}+ />+ <div+ style={{+ width: "100%",+ height: 60,+ background: "rgba(255,255,255,0.05)",+ borderRadius: 6,+ marginTop: 16,+ }}+ />+ </div>+ </div>+ {/* Content face */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: "#141416",+ border: `1px solid ${accentColor}33`,+ borderRadius: 14,+ backfaceVisibility: "hidden",+ transform: "rotateY(180deg)",+ overflow: "hidden",+ boxShadow: `0 0 0 1px ${accentColor}22, 0 20px 40px rgba(0,0,0,0.4)`,+ }}+ >+ <CardContent index={i} accentColor={accentColor} />+ </div>+ </div>+ </div>+ );+ })}+ </div>+ )}++ {/* Prompt input — centered then transforms to header */}+ <div+ style={{+ position: "absolute",+ left: "50%",+ top: inputTop,+ width: inputW,+ height: inputH,+ marginLeft: -inputW / 2,+ background: "rgba(20,20,22,0.85)",+ border: `1px solid ${accentColor}55`,+ borderRadius: inputRadius,+ backdropFilter: "blur(12px)",+ display: "flex",+ alignItems: "center",+ padding: "0 20px",+ boxShadow:+ transformProgress < 0.5+ ? `0 0 0 6px ${accentColor}11, 0 30px 80px rgba(0,0,0,0.6)`+ : "0 8px 24px rgba(0,0,0,0.4)",+ }}+ >+ {/* sparkle icon */}+ <div+ style={{+ width: 20,+ height: 20,+ marginRight: 12,+ color: accentColor,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ flexShrink: 0,+ }}+ >+ <svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor">+ <path d="M12 2l2.5 6.5L21 11l-6.5 2.5L12 20l-2.5-6.5L3 11l6.5-2.5L12 2z" />+ </svg>+ </div>+ <div+ style={{+ color: "white",+ fontSize: inputFontSize,+ fontWeight: 500,+ letterSpacing: "-0.01em",+ whiteSpace: "nowrap",+ overflow: "hidden",+ }}+ >+ {typedText}+ {frame < P1_END && cursorVisible && (+ <span+ style={{+ display: "inline-block",+ width: 2,+ height: inputFontSize,+ background: accentColor,+ marginLeft: 2,+ verticalAlign: "middle",+ }}+ />+ )}+ </div>+ {transformProgress > 0.6 && (+ <div+ style={{+ marginLeft: "auto",+ display: "flex",+ gap: 8,+ alignItems: "center",+ opacity: (transformProgress - 0.6) / 0.4,+ }}+ >+ <div+ style={{+ width: 8,+ height: 8,+ borderRadius: 4,+ background: accentColor,+ boxShadow: `0 0 12px ${accentColor}`,+ }}+ />+ <div+ style={{+ fontSize: 12,+ color: "rgba(255,255,255,0.6)",+ fontWeight: 500,+ }}+ >+ Generating+ </div>+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/registry/remocn/browser-flow/config.ts b/registry/remocn/browser-flow/config.tsnew file mode 100644index 00000000..68c391d6--- /dev/null+++ b/registry/remocn/browser-flow/config.ts@@ -0,0 +1,17 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const browserFlowConfig: ComponentConfig = {+ componentName: "BrowserFlow",+ importPath: "@/components/remocn/browser-flow",+ controls: {+ url: {+ type: "text",+ default: "remocn.dev",+ label: "URL",+ },+ },+ durationInFrames: 270,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/browser-flow/index.tsx b/registry/remocn/browser-flow/index.tsxnew file mode 100644index 00000000..e31a95fd--- /dev/null+++ b/registry/remocn/browser-flow/index.tsx@@ -0,0 +1,529 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface BrowserFlowProps {+ url?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";+const MONO_FAMILY =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";++function MacDots({ size = 12 }: { size?: number }) {+ return (+ <div style={{ display: "flex", gap: 8, alignItems: "center" }}>+ {["#ff5f57", "#febc2e", "#28c840"].map((c) => (+ <div+ key={c}+ style={{+ width: size,+ height: size,+ borderRadius: "50%",+ background: c,+ opacity: 0.85,+ }}+ />+ ))}+ </div>+ );+}++function CursorSVG() {+ return (+ <svg width="22" height="28" viewBox="0 0 22 28" fill="none">+ <path+ d="M2 2L2 22L7 17.5L10.5 25L13.5 23.5L10 16L17 16L2 2Z"+ fill="white"+ stroke="black"+ strokeWidth="1.5"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function easeInOut(t: number) {+ return t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2;+}++export function BrowserFlow({+ url = "remocn.dev",+ speed = 1,+ className,+}: BrowserFlowProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ // ── Browser dimensions ────────────────────────────+ const browserWidth = 1100;+ const browserHeight = 620;+ const chromeHeight = 56;+ const browserLeft = (1280 - browserWidth) / 2;+ const browserTop = (720 - browserHeight) / 2;++ // ── URL typing (frames 0..40) ─────────────────────+ const typingProgress = interpolate(frame, [4, 38], [0, url.length], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const typedChars = Math.floor(typingProgress);+ const typedUrl = url.slice(0, typedChars);+ const showCaret = frame < 50 && Math.floor(frame / 12) % 2 === 0;++ // Autocomplete suggestion appears once a few chars typed+ const showSuggestion = typedChars >= 2 && frame < 48;+ const suggestion = url;++ // ── Progress bar ──────────────────────────────────+ // 40..50: 0 -> 15+ // 50..65: hold at 15+ // 65..85: 15 -> 100+ // 85..95: fade out+ let progress = 0;+ if (frame < 40) progress = 0;+ else if (frame < 50)+ progress = interpolate(frame, [40, 50], [0, 15], {+ extrapolateRight: "clamp",+ });+ else if (frame < 65) progress = 15;+ else if (frame < 85)+ progress = interpolate(frame, [65, 85], [15, 100], {+ extrapolateRight: "clamp",+ });+ else progress = 100;++ const progressOpacity =+ frame < 40+ ? 0+ : frame < 85+ ? 1+ : interpolate(frame, [85, 95], [1, 0], {+ extrapolateRight: "clamp",+ });++ // ── Page render ───────────────────────────────────+ const pageStart = 95;+ const pageOpacity = interpolate(frame, [pageStart, pageStart + 12], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ // ── Page scroll & cursor motion ───────────────────+ const scrollStart = 115;+ const scrollEnd = 230;+ const scrollT = interpolate(frame, [scrollStart, scrollEnd], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const scrollEased = easeInOut(scrollT);+ const maxScroll = 600;+ const scrollY = scrollEased * maxScroll;++ // Cursor path: starts off the address bar area, moves down toward CTA inside viewport+ // Coordinates relative to the full 1280x720 frame.+ const cursorStartX = browserLeft + 380;+ const cursorStartY = browserTop + chromeHeight + 60;+ const cursorEndX = browserLeft + browserWidth / 2;+ const cursorEndY = browserTop + chromeHeight + 380;++ const cursorT = interpolate(frame, [pageStart + 5, scrollEnd], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const cursorEased = easeInOut(cursorT);+ // arc bias on Y for organic feel+ const arcOffset = Math.sin(cursorEased * Math.PI) * 30;+ const cursorX =+ cursorStartX + (cursorEndX - cursorStartX) * cursorEased + arcOffset * 0.6;+ const cursorY =+ cursorStartY + (cursorEndY - cursorStartY) * cursorEased - arcOffset;++ // Click animation near the end+ const clickFrame = scrollEnd + 4;+ const clickSpring = spring({+ frame: frame - clickFrame,+ fps,+ config: { mass: 0.4, damping: 12, stiffness: 220 },+ durationInFrames: 18,+ });+ const cursorClickScale = interpolate(clickSpring, [0, 0.4, 1], [1, 0.85, 1], {+ extrapolateRight: "clamp",+ });+ const buttonClickScale =+ frame >= clickFrame+ ? interpolate(clickSpring, [0, 0.4, 1], [1, 0.98, 1], {+ extrapolateRight: "clamp",+ })+ : 1;++ // Address bar focus state (highlighted while typing)+ const addressFocused = frame < 50;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background:+ "radial-gradient(ellipse at center, #11141c 0%, #050505 75%)",+ fontFamily: FONT_FAMILY,+ }}+ >+ {/* Browser window */}+ <div+ style={{+ position: "absolute",+ left: browserLeft,+ top: browserTop,+ width: browserWidth,+ height: browserHeight,+ borderRadius: 16,+ overflow: "hidden",+ background: "#0a0a0c",+ border: "1px solid rgba(255,255,255,0.08)",+ boxShadow:+ "0 50px 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06)",+ }}+ >+ {/* Chrome */}+ <div+ style={{+ position: "relative",+ height: chromeHeight,+ display: "flex",+ alignItems: "center",+ gap: 14,+ paddingLeft: 18,+ paddingRight: 18,+ background: "rgba(20,20,24,0.95)",+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ }}+ >+ <MacDots />+ {/* nav arrows */}+ <div+ style={{+ display: "flex",+ gap: 6,+ marginLeft: 8,+ color: "rgba(255,255,255,0.35)",+ fontSize: 16,+ }}+ >+ <span>‹</span>+ <span>›</span>+ </div>+ {/* address bar */}+ <div+ style={{+ flex: 1,+ position: "relative",+ height: 32,+ borderRadius: 16,+ background: addressFocused+ ? "rgba(255,255,255,0.08)"+ : "rgba(255,255,255,0.05)",+ border: `1px solid ${+ addressFocused+ ? "rgba(120,160,255,0.45)"+ : "rgba(255,255,255,0.07)"+ }`,+ display: "flex",+ alignItems: "center",+ paddingLeft: 14,+ paddingRight: 14,+ fontFamily: MONO_FAMILY,+ fontSize: 13,+ color: "rgba(255,255,255,0.85)",+ boxShadow: addressFocused+ ? "0 0 0 3px rgba(120,160,255,0.12)"+ : "none",+ }}+ >+ <span style={{ color: "rgba(255,255,255,0.4)", marginRight: 8 }}>+ ⌕+ </span>+ <span>{typedUrl}</span>+ {showCaret && (+ <span+ style={{+ display: "inline-block",+ width: 1.5,+ height: 16,+ background: "rgba(255,255,255,0.85)",+ marginLeft: 1,+ }}+ />+ )}++ {/* Autocomplete suggestion dropdown */}+ {showSuggestion && (+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ top: "calc(100% + 6px)",+ background: "rgba(22,22,26,0.98)",+ border: "1px solid rgba(255,255,255,0.08)",+ borderRadius: 10,+ padding: "10px 14px",+ fontFamily: MONO_FAMILY,+ fontSize: 13,+ color: "rgba(255,255,255,0.85)",+ display: "flex",+ alignItems: "center",+ gap: 10,+ boxShadow: "0 20px 50px rgba(0,0,0,0.5)",+ zIndex: 10,+ }}+ >+ <span style={{ color: "rgba(255,255,255,0.4)" }}>↗</span>+ <span>+ <span style={{ color: "white" }}>{typedUrl}</span>+ <span style={{ color: "rgba(255,255,255,0.4)" }}>+ {suggestion.slice(typedChars)}+ </span>+ </span>+ </div>+ )}+ </div>+ <div style={{ width: 60 }} />++ {/* Progress bar */}+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ bottom: 0,+ height: 2,+ opacity: progressOpacity,+ }}+ >+ <div+ style={{+ width: `${progress}%`,+ height: "100%",+ background: "linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%)",+ boxShadow: "0 0 8px rgba(96,165,250,0.6)",+ }}+ />+ </div>+ </div>++ {/* Page viewport */}+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ top: chromeHeight,+ bottom: 0,+ overflow: "hidden",+ background: "#0a0a0c",+ opacity: pageOpacity,+ }}+ >+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ top: 0,+ transform: `translateY(${-scrollY}px)`,+ willChange: "transform",+ }}+ >+ {/* Header */}+ <div+ style={{+ height: 68,+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ padding: "0 60px",+ borderBottom: "1px solid rgba(255,255,255,0.05)",+ }}+ >+ <div+ style={{+ fontWeight: 700,+ fontSize: 18,+ color: "white",+ letterSpacing: "-0.02em",+ }}+ >+ remocn+ </div>+ <div+ style={{+ display: "flex",+ gap: 28,+ fontSize: 14,+ color: "rgba(255,255,255,0.65)",+ }}+ >+ <span>Components</span>+ <span>Docs</span>+ <span>GitHub</span>+ </div>+ </div>++ {/* Hero */}+ <div+ style={{+ padding: "100px 60px 80px",+ display: "flex",+ flexDirection: "column",+ gap: 24,+ alignItems: "center",+ textAlign: "center",+ }}+ >+ <div+ style={{+ fontSize: 13,+ color: "rgba(120,160,255,0.85)",+ fontWeight: 500,+ letterSpacing: "0.02em",+ }}+ >+ shadcn registry for Remotion+ </div>+ <div+ style={{+ fontSize: 64,+ fontWeight: 700,+ letterSpacing: "-0.04em",+ color: "white",+ lineHeight: 1.05,+ maxWidth: 720,+ }}+ >+ Production-ready video blocks.+ </div>+ <div+ style={{+ fontSize: 17,+ color: "rgba(255,255,255,0.6)",+ maxWidth: 520,+ lineHeight: 1.5,+ }}+ >+ Drop-in animations, transitions, and backgrounds for Remotion.+ Own your code.+ </div>++ {/* CTA — clicked at the end */}+ <button+ type="button"+ style={{+ marginTop: 12,+ padding: "16px 32px",+ borderRadius: 12,+ background: "white",+ color: "#0a0a0c",+ fontFamily: FONT_FAMILY,+ fontSize: 15,+ fontWeight: 600,+ border: "none",+ transform: `scale(${buttonClickScale})`,+ boxShadow:+ frame >= clickFrame+ ? "0 0 0 6px rgba(255,255,255,0.08)"+ : "0 10px 30px rgba(255,255,255,0.1)",+ willChange: "transform",+ }}+ >+ Browse components →+ </button>+ </div>++ {/* Sections */}+ {[+ { title: "Typography", color: "#3b82f6" },+ { title: "Backgrounds", color: "#a855f7" },+ { title: "Transitions", color: "#22c55e" },+ ].map((s) => (+ <div+ key={s.title}+ style={{+ margin: "40px 60px",+ padding: "40px",+ borderRadius: 16,+ background:+ "linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%)",+ border: "1px solid rgba(255,255,255,0.06)",+ display: "flex",+ alignItems: "center",+ gap: 28,+ }}+ >+ <div+ style={{+ width: 64,+ height: 64,+ borderRadius: 14,+ background: `${s.color}22`,+ border: `1px solid ${s.color}55`,+ }}+ />+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ gap: 6,+ }}+ >+ <div+ style={{+ fontSize: 22,+ fontWeight: 600,+ color: "white",+ letterSpacing: "-0.02em",+ }}+ >+ {s.title}+ </div>+ <div+ style={{+ fontSize: 14,+ color: "rgba(255,255,255,0.55)",+ }}+ >+ Hand-tuned primitives, copied straight into your project.+ </div>+ </div>+ </div>+ ))}+ </div>+ </div>+ </div>++ {/* Virtual cursor */}+ {frame >= pageStart && (+ <div+ style={{+ position: "absolute",+ left: cursorX,+ top: cursorY,+ transform: `scale(${cursorClickScale})`,+ transformOrigin: "top left",+ zIndex: 9999,+ filter: "drop-shadow(0 4px 8px rgba(0,0,0,0.5))",+ willChange: "transform",+ }}+ >+ <CursorSVG />+ </div>+ )}+ </div>+ );+}diff --git a/registry/remocn/chromatic-aberration-wipe/config.ts b/registry/remocn/chromatic-aberration-wipe/config.tsnew file mode 100644index 00000000..c0afc5e2--- /dev/null+++ b/registry/remocn/chromatic-aberration-wipe/config.ts@@ -0,0 +1,34 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const chromaticAberrationWipeConfig: ComponentConfig = {+ componentName: "ChromaticAberrationWipe",+ importPath: "@/components/remocn/chromatic-aberration-wipe",+ controls: {+ direction: {+ type: "select",+ default: "left",+ options: ["left", "right"],+ label: "Direction",+ },+ transitionDuration: {+ type: "number",+ default: 7,+ min: 4,+ max: 16,+ step: 1,+ label: "Transition duration",+ },+ aberrationOffset: {+ type: "number",+ default: 8,+ min: 2,+ max: 24,+ step: 1,+ label: "Aberration offset (px)",+ },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/chromatic-aberration-wipe/index.tsx b/registry/remocn/chromatic-aberration-wipe/index.tsxnew file mode 100644index 00000000..11da6849--- /dev/null+++ b/registry/remocn/chromatic-aberration-wipe/index.tsx@@ -0,0 +1,121 @@+"use client";++import type { ReactNode } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface ChromaticAberrationWipeProps {+ from?: ReactNode;+ to?: ReactNode;+ direction?: "left" | "right";+ transitionStart?: number;+ transitionDuration?: number;+ aberrationOffset?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPanel({ label, color }: { label: string; color: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: color,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.05em",+ }}+ >+ {label}+ </div>+ );+}++export function ChromaticAberrationWipe({+ from,+ to,+ direction = "left",+ transitionStart,+ transitionDuration = 7,+ aberrationOffset = 8,+ speed = 1,+ className,+}: ChromaticAberrationWipeProps) {+ const frame = useCurrentFrame() * speed;+ const { durationInFrames } = useVideoConfig();++ const start =+ typeof transitionStart === "number"+ ? transitionStart+ : Math.floor(durationInFrames * 0.4);++ const progress = interpolate(+ frame,+ [start, start + transitionDuration],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.65, 0, 0.35, 1),+ },+ );++ const sign = direction === "left" ? -1 : 1;++ const fromOffset = progress * 100 * sign;+ const toOffset = (1 - progress) * 100 * -sign;++ const transformX = (offset: number) => `translateX(${offset}%)`;++ const peakStart = start + Math.max(1, Math.floor(transitionDuration * 0.25));+ const peakEnd = start + Math.max(peakStart + 1, Math.ceil(transitionDuration * 0.75));+ const inPeak = frame >= peakStart && frame <= peakEnd;+ const filter = inPeak+ ? `drop-shadow(-${aberrationOffset}px 0 0 rgba(255,0,0,0.8)) drop-shadow(${aberrationOffset}px 0 0 rgba(0,255,255,0.8))`+ : "none";++ const fromContent = from ?? <DefaultPanel label="Scene A" color="#0f172a" />;+ const toContent = to ?? <DefaultPanel label="Scene B" color="#06b6d4" />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "black",+ filter,+ }}+ >+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: transformX(fromOffset),+ willChange: "transform",+ }}+ >+ {fromContent}+ </div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: transformX(toOffset),+ willChange: "transform",+ }}+ >+ {toContent}+ </div>+ </div>+ );+}diff --git a/registry/remocn/dashboard-populate/config.ts b/registry/remocn/dashboard-populate/config.tsnew file mode 100644index 00000000..0a7ee693--- /dev/null+++ b/registry/remocn/dashboard-populate/config.ts@@ -0,0 +1,25 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const dashboardPopulateConfig: ComponentConfig = {+ componentName: "DashboardPopulate",+ importPath: "@/components/remocn/dashboard-populate",+ controls: {+ accentColor: {+ type: "color",+ default: "#22c55e",+ label: "Accent color",+ },+ kpiTarget: {+ type: "number",+ default: 128400,+ min: 1000,+ max: 1000000,+ step: 100,+ label: "KPI target",+ },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/dashboard-populate/index.tsx b/registry/remocn/dashboard-populate/index.tsxnew file mode 100644index 00000000..5b64c2d0--- /dev/null+++ b/registry/remocn/dashboard-populate/index.tsx@@ -0,0 +1,431 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface DashboardPopulateProps {+ accentColor?: string;+ kpiTarget?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";+const MONO_FAMILY =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";++const STRUCTURE_END = 15;++function formatNumber(n: number) {+ return n.toLocaleString("en-US");+}++const BAR_VALUES = [0.55, 0.78, 0.42, 0.92, 0.66];++// Hand-coded line chart points (in 0..100 viewBox space)+const LINE_POINTS: Array<[number, number]> = [+ [0, 70],+ [16, 55],+ [32, 62],+ [48, 38],+ [64, 45],+ [80, 22],+ [100, 12],+];++function buildLinePath() {+ return LINE_POINTS.map(([x, y], i) => `${i === 0 ? "M" : "L"}${x},${y}`).join(+ " ",+ );+}++function Tile({+ title,+ children,+ structureOpacity,+}: {+ title: string;+ children: React.ReactNode;+ structureOpacity: number;+}) {+ return (+ <div+ style={{+ position: "relative",+ background: "linear-gradient(180deg, #131316 0%, #0d0d10 100%)",+ border: "1px solid rgba(255,255,255,0.08)",+ borderRadius: 16,+ padding: 24,+ display: "flex",+ flexDirection: "column",+ gap: 16,+ opacity: structureOpacity,+ boxShadow:+ "inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 40px rgba(0,0,0,0.3)",+ }}+ >+ <div+ style={{+ fontSize: 12,+ fontWeight: 500,+ textTransform: "uppercase",+ letterSpacing: "0.08em",+ color: "rgba(255,255,255,0.5)",+ }}+ >+ {title}+ </div>+ <div style={{ flex: 1, position: "relative" }}>{children}</div>+ </div>+ );+}++export function DashboardPopulate({+ accentColor = "#22c55e",+ kpiTarget = 128400,+ speed = 1,+ className,+}: DashboardPopulateProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ // Phase 1: structure fade in 0..15+ const structureOpacity = interpolate(frame, [0, STRUCTURE_END], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ // KPI count up+ const kpiSpring = spring({+ frame: frame - STRUCTURE_END,+ fps,+ config: { damping: 20, stiffness: 80, mass: 1 },+ durationInFrames: 60,+ });+ const kpiValue = Math.floor(kpiSpring * kpiTarget);+ const kpiDelta = interpolate(kpiSpring, [0, 1], [0, 12.4]);++ // Bar chart springs (staggered)+ const barProgress = BAR_VALUES.map((_, i) =>+ spring({+ frame: frame - STRUCTURE_END - i * 4,+ fps,+ config: { damping: 11, stiffness: 140, mass: 1 },+ durationInFrames: 40,+ }),+ );++ // Line chart stroke-dashoffset+ const linePath = buildLinePath();+ // approx length for viewBox 100x100 — use a generous constant; we set+ // pathLength on the path so dashoffset works in normalized units+ const lineProgress = interpolate(+ frame,+ [STRUCTURE_END + 4, STRUCTURE_END + 50],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ // Donut+ const donutTarget = 0.72;+ const donutSpring = spring({+ frame: frame - STRUCTURE_END - 6,+ fps,+ config: { damping: 13, stiffness: 110, mass: 1 },+ durationInFrames: 50,+ });+ const donutValue = donutSpring * donutTarget;+ const donutR = 70;+ const donutCircum = 2 * Math.PI * donutR;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background: "#09090b",+ fontFamily: FONT_FAMILY,+ color: "white",+ padding: 64,+ display: "flex",+ flexDirection: "column",+ gap: 24,+ overflow: "hidden",+ }}+ >+ {/* Subtle grid bg */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ backgroundImage:+ "linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px)",+ backgroundSize: "48px 48px",+ }}+ />+ <div+ style={{+ position: "relative",+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ opacity: structureOpacity,+ }}+ >+ <div>+ <div+ style={{+ fontSize: 28,+ fontWeight: 600,+ letterSpacing: "-0.02em",+ }}+ >+ Overview+ </div>+ <div+ style={{+ fontSize: 14,+ opacity: 0.5,+ marginTop: 4,+ }}+ >+ Last 30 days+ </div>+ </div>+ <div+ style={{+ display: "flex",+ gap: 8,+ fontSize: 12,+ fontFamily: MONO_FAMILY,+ }}+ >+ {["1D", "7D", "30D", "ALL"].map((l, i) => (+ <div+ key={l}+ style={{+ padding: "6px 12px",+ borderRadius: 8,+ background:+ i === 2 ? "rgba(255,255,255,0.1)" : "rgba(255,255,255,0.03)",+ border: "1px solid rgba(255,255,255,0.06)",+ }}+ >+ {l}+ </div>+ ))}+ </div>+ </div>++ <div+ style={{+ position: "relative",+ flex: 1,+ display: "grid",+ gridTemplateColumns: "1fr 1fr",+ gridTemplateRows: "1fr 1fr",+ gap: 24,+ }}+ >+ {/* KPI */}+ <Tile title="Revenue" structureOpacity={structureOpacity}>+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ gap: 12,+ height: "100%",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ fontSize: 64,+ fontWeight: 700,+ letterSpacing: "-0.04em",+ fontVariantNumeric: "tabular-nums",+ fontFamily: MONO_FAMILY,+ }}+ >+ ${formatNumber(kpiValue)}+ </div>+ <div+ style={{+ display: "flex",+ alignItems: "center",+ gap: 8,+ fontSize: 14,+ color: accentColor,+ }}+ >+ <span style={{ fontWeight: 600 }}>+{kpiDelta.toFixed(1)}%</span>+ <span style={{ opacity: 0.5, color: "white" }}>+ vs last month+ </span>+ </div>+ </div>+ </Tile>++ {/* Bar chart */}+ <Tile title="Sessions" structureOpacity={structureOpacity}>+ <svg+ viewBox="0 0 200 100"+ preserveAspectRatio="none"+ style={{ width: "100%", height: "100%" }}+ >+ {/* axes */}+ <line+ x1="0"+ y1="100"+ x2="200"+ y2="100"+ stroke="rgba(255,255,255,0.15)"+ strokeWidth="0.5"+ />+ {[25, 50, 75].map((y) => (+ <line+ key={y}+ x1="0"+ y1={y}+ x2="200"+ y2={y}+ stroke="rgba(255,255,255,0.06)"+ strokeWidth="0.5"+ strokeDasharray="2 2"+ />+ ))}+ {BAR_VALUES.map((v, i) => {+ const barH = v * 90 * barProgress[i];+ const barW = 24;+ const x = 16 + i * 36;+ const y = 100 - barH;+ return (+ <rect+ key={i}+ x={x}+ y={y}+ width={barW}+ height={barH}+ rx={3}+ fill={accentColor}+ opacity={0.85}+ />+ );+ })}+ </svg>+ </Tile>++ {/* Line chart */}+ <Tile title="Active users" structureOpacity={structureOpacity}>+ <svg+ viewBox="0 0 100 100"+ preserveAspectRatio="none"+ style={{ width: "100%", height: "100%" }}+ >+ <line+ x1="0"+ y1="100"+ x2="100"+ y2="100"+ stroke="rgba(255,255,255,0.15)"+ strokeWidth="0.4"+ />+ {[20, 40, 60, 80].map((y) => (+ <line+ key={y}+ x1="0"+ y1={y}+ x2="100"+ y2={y}+ stroke="rgba(255,255,255,0.06)"+ strokeWidth="0.4"+ strokeDasharray="1.5 1.5"+ />+ ))}+ <path+ d={linePath}+ fill="none"+ stroke={accentColor}+ strokeWidth="1.6"+ strokeLinecap="round"+ strokeLinejoin="round"+ pathLength={1}+ strokeDasharray={1}+ strokeDashoffset={1 - lineProgress}+ />+ {/* dots */}+ {LINE_POINTS.map(([px, py], i) => {+ const dotProgress = interpolate(+ lineProgress,+ [+ i / (LINE_POINTS.length - 1),+ i / (LINE_POINTS.length - 1) + 0.05,+ ],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ return (+ <circle+ key={i}+ cx={px}+ cy={py}+ r={1.2}+ fill={accentColor}+ opacity={dotProgress}+ />+ );+ })}+ </svg>+ </Tile>++ {/* Donut */}+ <Tile title="Conversion" structureOpacity={structureOpacity}>+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ height: "100%",+ position: "relative",+ }}+ >+ <svg width="180" height="180" viewBox="0 0 180 180">+ <circle+ cx="90"+ cy="90"+ r={donutR}+ fill="none"+ stroke="rgba(255,255,255,0.08)"+ strokeWidth="14"+ />+ <circle+ cx="90"+ cy="90"+ r={donutR}+ fill="none"+ stroke={accentColor}+ strokeWidth="14"+ strokeLinecap="round"+ strokeDasharray={`${donutCircum * donutValue} ${donutCircum}`}+ transform="rotate(-90 90 90)"+ />+ </svg>+ <div+ style={{+ position: "absolute",+ fontSize: 36,+ fontWeight: 700,+ letterSpacing: "-0.02em",+ fontFamily: MONO_FAMILY,+ fontVariantNumeric: "tabular-nums",+ }}+ >+ {(donutValue * 100).toFixed(1)}%+ </div>+ </div>+ </Tile>+ </div>+ </div>+ );+}diff --git a/registry/remocn/ecosystem-constellation/config.ts b/registry/remocn/ecosystem-constellation/config.tsnew file mode 100644index 00000000..6a0b52b2--- /dev/null+++ b/registry/remocn/ecosystem-constellation/config.ts@@ -0,0 +1,30 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const ecosystemConstellationConfig: ComponentConfig = {+ componentName: "EcosystemConstellation",+ importPath: "@/components/remocn/ecosystem-constellation",+ controls: {+ satelliteCount: {+ type: "number",+ default: 6,+ min: 3,+ max: 8,+ step: 1,+ label: "Satellite count",+ },+ centerLabel: {+ type: "text",+ default: "V",+ label: "Center label",+ },+ accentColor: {+ type: "color",+ default: "#a855f7",+ label: "Accent color",+ },+ },+ durationInFrames: 240,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/ecosystem-constellation/index.tsx b/registry/remocn/ecosystem-constellation/index.tsxnew file mode 100644index 00000000..95a24c78--- /dev/null+++ b/registry/remocn/ecosystem-constellation/index.tsx@@ -0,0 +1,326 @@+"use client";++import type { ComponentType } from "react";+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface EcosystemConstellationProps {+ satelliteCount?: number;+ centerLabel?: string;+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++// Inline brand mark components — stylized for demo identification, drawn from+// primitive SVG shapes only so the component stays self-contained.++function GitHubMark() {+ return (+ <svg viewBox="0 0 24 24" width={30} height={30} aria-hidden="true">+ <path+ fill="#fff"+ d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.55v-2.06c-3.2.7-3.87-1.36-3.87-1.36-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.24 3.35.95.1-.74.4-1.24.72-1.53-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.46.11-3.05 0 0 .97-.31 3.18 1.18.92-.26 1.91-.39 2.89-.39s1.97.13 2.89.39c2.21-1.49 3.18-1.18 3.18-1.18.62 1.59.23 2.76.11 3.05.74.81 1.18 1.84 1.18 3.1 0 4.43-2.7 5.41-5.27 5.69.41.36.77 1.06.77 2.13v3.16c0 .31.21.67.8.55C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z"+ />+ </svg>+ );+}++function VercelMark() {+ return (+ <svg viewBox="0 0 24 24" width={28} height={28} aria-hidden="true">+ <path fill="#fff" d="M12 2 L23 21 L1 21 Z" />+ </svg>+ );+}++function StripeMark() {+ return (+ <svg viewBox="0 0 24 24" width={28} height={28} aria-hidden="true">+ <path+ fill="#fff"+ d="M13.5 9.6c0-.6.5-.85 1.3-.85 1.15 0 2.6.35 3.75.97V6.16c-1.25-.5-2.5-.7-3.75-.7C11.7 5.46 9.6 7.06 9.6 9.7c0 4.13 5.7 3.47 5.7 5.25 0 .7-.6.93-1.45.93-1.25 0-2.85-.52-4.1-1.2v3.65c1.4.6 2.8.85 4.1.85 3.2 0 5.4-1.55 5.4-4.25-.02-4.45-5.75-3.65-5.75-5.33z"+ />+ </svg>+ );+}++function SlackMark() {+ return (+ <svg viewBox="0 0 24 24" width={26} height={26} aria-hidden="true">+ <rect x="2" y="10" width="9" height="2.5" rx="1.25" fill="#36C5F0" />+ <rect x="13" y="10" width="9" height="2.5" rx="1.25" fill="#2EB67D" />+ <rect x="10" y="2" width="2.5" height="9" rx="1.25" fill="#ECB22E" />+ <rect x="10" y="13" width="2.5" height="9" rx="1.25" fill="#E01E5A" />+ </svg>+ );+}++function LinearMark() {+ return (+ <svg viewBox="0 0 24 24" width={28} height={28} aria-hidden="true">+ <defs>+ <linearGradient id="linear-grad" x1="0" x2="1" y1="0" y2="1">+ <stop offset="0%" stopColor="#fff" stopOpacity="0.95" />+ <stop offset="100%" stopColor="#fff" stopOpacity="0.55" />+ </linearGradient>+ </defs>+ <circle cx="12" cy="12" r="10" fill="url(#linear-grad)" />+ <path+ d="M5 13 L11 19 M5 9 L15 19 M5 5 L19 19 M9 5 L19 15 M13 5 L19 11"+ stroke="#0a0a0a"+ strokeWidth="0.9"+ strokeLinecap="round"+ opacity="0.85"+ />+ </svg>+ );+}++function FigmaMark() {+ return (+ <svg viewBox="0 0 24 24" width={26} height={26} aria-hidden="true">+ <circle cx="9" cy="4" r="3.5" fill="#F24E1E" />+ <circle cx="15" cy="4" r="3.5" fill="#FF7262" />+ <circle cx="9" cy="11" r="3.5" fill="#A259FF" />+ <circle cx="15" cy="11" r="3.5" fill="#1ABCFE" />+ <circle cx="9" cy="18" r="3.5" fill="#0ACF83" />+ </svg>+ );+}++function NotionMark() {+ return (+ <svg viewBox="0 0 24 24" width={26} height={26} aria-hidden="true">+ <rect x="3" y="3" width="18" height="18" rx="3" fill="#fff" />+ <path+ d="M8 7 V17 M8 7 L16 17 M16 7 V17"+ stroke="#0a0a0a"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ fill="none"+ />+ </svg>+ );+}++function DiscordMark() {+ return (+ <svg viewBox="0 0 24 24" width={28} height={28} aria-hidden="true">+ <path+ fill="#fff"+ d="M19.5 4.7A18 18 0 0 0 15 3.3l-.2.4a16.5 16.5 0 0 0-5.6 0L9 3.3a18 18 0 0 0-4.5 1.4C2 8.7 1.4 12.5 1.7 16.3a18 18 0 0 0 5.5 2.8l.4-.6a13 13 0 0 1-2-1l.5-.4a13 13 0 0 0 11.7 0l.5.4a13 13 0 0 1-2 1l.4.6a18 18 0 0 0 5.5-2.8c.4-4.4-.6-8.2-2.7-11.6zM8.5 14c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2 1.7.9 1.7 2-.8 2-1.7 2zm7 0c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2 1.7.9 1.7 2-.8 2-1.7 2z"+ />+ </svg>+ );+}++interface SatelliteBrand {+ Logo: ComponentType;+ bg: string;+}++const SATELLITE_BRANDS: SatelliteBrand[] = [+ { Logo: GitHubMark, bg: "#1f1f23" },+ { Logo: VercelMark, bg: "#0a0a0a" },+ { Logo: StripeMark, bg: "#635bff" },+ { Logo: SlackMark, bg: "#1a1d21" },+ { Logo: LinearMark, bg: "#5e6ad2" },+ { Logo: FigmaMark, bg: "#1e1e1e" },+ { Logo: NotionMark, bg: "#1a1a1a" },+ { Logo: DiscordMark, bg: "#5865f2" },+];++export function EcosystemConstellation({+ satelliteCount = 6,+ centerLabel = "V",+ accentColor = "#a855f7",+ speed = 1,+ className,+}: EcosystemConstellationProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const count = Math.max(+ 3,+ Math.min(SATELLITE_BRANDS.length, Math.floor(satelliteCount)),+ );++ // Center pulse (0..1)+ const pulse = (Math.sin(frame / 12) + 1) / 2;+ const centerScale = 1 + pulse * 0.06;++ // Geometry+ const cx = 640;+ const cy = 360;+ const baseRadiusX = 230;+ const baseRadiusY = 180;+ const offscreenRadius = 1200; // 150% of width++ // Per-satellite assembly spring (staggered)+ const satellites = Array.from({ length: count }).map((_, i) => {+ const stagger = i * 4;+ const sp = spring({+ frame: frame - stagger,+ fps,+ config: { mass: 1.1, damping: 16, stiffness: 70 },+ durationInFrames: 50,+ });+ const radiusFactor = interpolate(sp, [0, 1], [offscreenRadius, 1]);++ // Slight elliptical variation per satellite+ const orbitOffset = i * 22;+ const rX = baseRadiusX + orbitOffset;+ const rY = baseRadiusY + orbitOffset * 0.7;+ // Different angular speed per orbit (slower for outer)+ const angularSpeed = 0.012 - i * 0.0008;+ const baseAngle = (i / count) * Math.PI * 2;+ const angle = baseAngle + frame * angularSpeed;++ // Use radiusFactor as a multiplier on the orbit radius+ const x = cx + Math.cos(angle) * rX * radiusFactor;+ const y = cy + Math.sin(angle) * rY * radiusFactor;++ // Data pulse: which satellite is currently "firing"+ const activeIdx = Math.floor(frame / 30) % count;+ const isActive = activeIdx === i;+ // Within the active 30-frame window, fade the line in/out+ const localFrame = frame - Math.floor(frame / 30) * 30;+ const lineOpacity = isActive+ ? interpolate(localFrame, [0, 8, 22, 30], [0.15, 0.9, 0.9, 0.15], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 0.15;+ const satScale = isActive+ ? interpolate(localFrame, [0, 8, 22, 30], [1, 1.1, 1.1, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 1;++ const brand = SATELLITE_BRANDS[i % SATELLITE_BRANDS.length];+ return {+ x,+ y,+ Logo: brand.Logo,+ color: brand.bg,+ lineOpacity,+ satScale,+ visible: sp > 0.02,+ };+ });++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background:+ "radial-gradient(ellipse at center, #14101e 0%, #05030a 75%)",+ fontFamily: FONT_FAMILY,+ }}+ >+ <svg+ width="100%"+ height="100%"+ viewBox="0 0 1280 720"+ style={{ position: "absolute", inset: 0 }}+ >+ {/* Connection lines */}+ {satellites.map((s, i) => (+ <line+ key={`line-${i}`}+ x1={cx}+ y1={cy}+ x2={s.x}+ y2={s.y}+ stroke={accentColor}+ strokeWidth={2}+ strokeLinecap="round"+ opacity={s.visible ? s.lineOpacity : 0}+ />+ ))}++ {/* Center glow */}+ <circle+ cx={cx}+ cy={cy}+ r={70 + pulse * 8}+ fill={accentColor}+ opacity={0.12}+ />+ <circle+ cx={cx}+ cy={cy}+ r={50 + pulse * 4}+ fill={accentColor}+ opacity={0.2}+ />+ </svg>++ {/* Center logo */}+ <div+ style={{+ position: "absolute",+ left: cx,+ top: cy,+ width: 96,+ height: 96,+ marginLeft: -48,+ marginTop: -48,+ borderRadius: 24,+ background: `linear-gradient(180deg, ${accentColor} 0%, ${accentColor}cc 100%)`,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontWeight: 800,+ fontSize: 52,+ letterSpacing: "-0.05em",+ transform: `scale(${centerScale})`,+ boxShadow: `0 0 60px ${accentColor}66, inset 0 1px 0 rgba(255,255,255,0.3)`,+ border: "1px solid rgba(255,255,255,0.15)",+ }}+ >+ {centerLabel}+ </div>++ {/* Satellites */}+ {satellites.map((s, i) => {+ const Logo = s.Logo;+ return (+ <div+ key={`sat-${i}`}+ style={{+ position: "absolute",+ left: s.x,+ top: s.y,+ width: 56,+ height: 56,+ marginLeft: -28,+ marginTop: -28,+ borderRadius: 14,+ background: `linear-gradient(180deg, ${s.color} 0%, ${s.color}dd 100%)`,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ transform: `scale(${s.satScale})`,+ boxShadow: `0 8px 30px ${s.color}66, inset 0 1px 0 rgba(255,255,255,0.18)`,+ border: "1px solid rgba(255,255,255,0.12)",+ opacity: s.visible ? 1 : 0,+ willChange: "transform",+ }}+ >+ <Logo />+ </div>+ );+ })}+ </div>+ );+}diff --git a/registry/remocn/frosted-glass-wipe/config.ts b/registry/remocn/frosted-glass-wipe/config.tsnew file mode 100644index 00000000..508c7483--- /dev/null+++ b/registry/remocn/frosted-glass-wipe/config.ts@@ -0,0 +1,28 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const frostedGlassWipeConfig: ComponentConfig = {+ componentName: "FrostedGlassWipe",+ importPath: "@/components/remocn/frosted-glass-wipe",+ controls: {+ transitionDuration: {+ type: "number",+ default: 30,+ min: 10,+ max: 90,+ step: 1,+ label: "Transition duration",+ },+ glassBlur: {+ type: "number",+ default: 24,+ min: 4,+ max: 48,+ step: 1,+ label: "Glass blur (px)",+ },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/frosted-glass-wipe/index.tsx b/registry/remocn/frosted-glass-wipe/index.tsxnew file mode 100644index 00000000..e22fc6a6--- /dev/null+++ b/registry/remocn/frosted-glass-wipe/index.tsx@@ -0,0 +1,121 @@+"use client";++import type { ReactNode } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface FrostedGlassWipeProps {+ from?: ReactNode;+ to?: ReactNode;+ transitionStart?: number;+ transitionDuration?: number;+ glassBlur?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPanel({ label, color }: { label: string; color: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: color,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.05em",+ }}+ >+ {label}+ </div>+ );+}++export function FrostedGlassWipe({+ from,+ to,+ transitionStart,+ transitionDuration = 30,+ glassBlur = 24,+ speed = 1,+ className,+}: FrostedGlassWipeProps) {+ const frame = useCurrentFrame() * speed;+ const { durationInFrames } = useVideoConfig();++ const start =+ typeof transitionStart === "number"+ ? transitionStart+ : Math.floor(durationInFrames * 0.4);++ const progress = interpolate(+ frame,+ [start, start + transitionDuration],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.6, 0, 0.2, 1),+ },+ );++ const glassX = interpolate(progress, [0, 1], [-110, 110]);+ const showB = progress >= 0.5 ? 1 : 0;++ const fromContent = from ?? <DefaultPanel label="Scene A" color="#0ea5e9" />;+ const toContent = to ?? <DefaultPanel label="Scene B" color="#9333ea" />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "black",+ }}+ >+ <div+ style={{+ position: "absolute",+ inset: 0,+ opacity: 1,+ }}+ >+ {fromContent}+ </div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ opacity: showB,+ }}+ >+ {toContent}+ </div>+ <div+ style={{+ position: "absolute",+ top: 0,+ bottom: 0,+ left: 0,+ width: "100%",+ transform: `translateX(${glassX}%)`,+ backdropFilter: `blur(${glassBlur}px)`,+ WebkitBackdropFilter: `blur(${glassBlur}px)`,+ background: "rgba(255,255,255,0.05)",+ borderLeft: "1px solid rgba(255,255,255,0.2)",+ borderRight: "1px solid rgba(255,255,255,0.2)",+ willChange: "transform",+ }}+ />+ </div>+ );+}diff --git a/registry/remocn/grid-pixelate-wipe/config.ts b/registry/remocn/grid-pixelate-wipe/config.tsnew file mode 100644index 00000000..56eba770--- /dev/null+++ b/registry/remocn/grid-pixelate-wipe/config.ts@@ -0,0 +1,50 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const gridPixelateWipeConfig: ComponentConfig = {+ componentName: "GridPixelateWipe",+ importPath: "@/components/remocn/grid-pixelate-wipe",+ controls: {+ cols: {+ type: "number",+ default: 12,+ min: 2,+ max: 32,+ step: 1,+ label: "Columns",+ },+ rows: {+ type: "number",+ default: 7,+ min: 2,+ max: 24,+ step: 1,+ label: "Rows",+ },+ pattern: {+ type: "select",+ default: "wave",+ options: ["wave", "diagonal", "spiral"],+ label: "Pattern",+ },+ transitionDuration: {+ type: "number",+ default: 30,+ min: 10,+ max: 90,+ step: 1,+ label: "Transition duration",+ },+ cellFadeFrames: {+ type: "number",+ default: 4,+ min: 1,+ max: 20,+ step: 1,+ label: "Cell fade (frames)",+ },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/grid-pixelate-wipe/index.tsx b/registry/remocn/grid-pixelate-wipe/index.tsxnew file mode 100644index 00000000..3934df4d--- /dev/null+++ b/registry/remocn/grid-pixelate-wipe/index.tsx@@ -0,0 +1,193 @@+"use client";++import { type ReactNode, useMemo } from "react";+import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface GridPixelateWipeProps {+ from?: ReactNode;+ to?: ReactNode;+ cols?: number;+ rows?: number;+ pattern?: "wave" | "diagonal" | "spiral";+ transitionStart?: number;+ transitionDuration?: number;+ cellFadeFrames?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPanel({ label, color }: { label: string; color: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: color,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.05em",+ }}+ >+ {label}+ </div>+ );+}++function spiralIndices(cols: number, rows: number): number[][] {+ const grid: number[][] = Array.from({ length: rows }, () =>+ Array(cols).fill(0),+ );+ let top = 0;+ let bottom = rows - 1;+ let left = 0;+ let right = cols - 1;+ let i = 0;+ while (top <= bottom && left <= right) {+ for (let x = left; x <= right; x++) grid[top][x] = i++;+ top++;+ for (let y = top; y <= bottom; y++) grid[y][right] = i++;+ right--;+ if (top <= bottom) {+ for (let x = right; x >= left; x--) grid[bottom][x] = i++;+ bottom--;+ }+ if (left <= right) {+ for (let y = bottom; y >= top; y--) grid[y][left] = i++;+ left--;+ }+ }+ return grid;+}++export function GridPixelateWipe({+ from,+ to,+ cols = 12,+ rows = 7,+ pattern = "wave",+ transitionStart,+ transitionDuration = 30,+ cellFadeFrames = 4,+ speed = 1,+ className,+}: GridPixelateWipeProps) {+ const frame = useCurrentFrame() * speed;+ const { durationInFrames } = useVideoConfig();++ const start =+ typeof transitionStart === "number"+ ? transitionStart+ : Math.floor(durationInFrames * 0.4);++ const delays = useMemo(() => {+ const raw: number[][] = Array.from({ length: rows }, () =>+ Array(cols).fill(0),+ );+ const spiral = pattern === "spiral" ? spiralIndices(cols, rows) : null;+ for (let y = 0; y < rows; y++) {+ for (let x = 0; x < cols; x++) {+ if (pattern === "wave") {+ raw[y][x] = Math.hypot(x - (cols - 1) / 2, y - (rows - 1) / 2);+ } else if (pattern === "diagonal") {+ raw[y][x] = x + y;+ } else if (spiral) {+ raw[y][x] = spiral[y][x];+ }+ }+ }++ let min = Infinity;+ let max = -Infinity;+ for (let y = 0; y < rows; y++) {+ for (let x = 0; x < cols; x++) {+ if (raw[y][x] < min) min = raw[y][x];+ if (raw[y][x] > max) max = raw[y][x];+ }+ }++ const span = Math.max(0, transitionDuration - cellFadeFrames);+ const range = max - min || 1;+ const normalized: number[][] = Array.from({ length: rows }, () =>+ Array(cols).fill(0),+ );+ for (let y = 0; y < rows; y++) {+ for (let x = 0; x < cols; x++) {+ normalized[y][x] = ((raw[y][x] - min) / range) * span;+ }+ }+ return normalized;+ }, [cols, rows, pattern, transitionDuration, cellFadeFrames]);++ const fromContent = from ?? <DefaultPanel label="Scene A" color="#0f172a" />;+ const toContent = to ?? <DefaultPanel label="Scene B" color="#ec4899" />;++ const cells: ReactNode[] = [];+ for (let y = 0; y < rows; y++) {+ for (let x = 0; x < cols; x++) {+ const delay = delays[y][x];+ const opacity =+ frame < start+ ? 1+ : interpolate(+ frame,+ [start + delay, start + delay + cellFadeFrames],+ [1, 0],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ },+ );+ cells.push(+ <div+ key={`${x}-${y}`}+ style={{+ background: "black",+ opacity,+ }}+ />,+ );+ }+ }++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "black",+ }}+ >+ <div style={{ position: "absolute", inset: 0 }}>{toContent}</div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "grid",+ gridTemplateColumns: `repeat(${cols}, 1fr)`,+ gridTemplateRows: `repeat(${rows}, 1fr)`,+ }}+ >+ {cells}+ </div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ opacity: frame < start ? 1 : 0,+ }}+ >+ {fromContent}+ </div>+ </div>+ );+}diff --git a/registry/remocn/hero-device-assemble/config.ts b/registry/remocn/hero-device-assemble/config.tsnew file mode 100644index 00000000..f2b19017--- /dev/null+++ b/registry/remocn/hero-device-assemble/config.ts@@ -0,0 +1,31 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const heroDeviceAssembleConfig: ComponentConfig = {+ componentName: "HeroDeviceAssemble",+ importPath: "@/components/remocn/hero-device-assemble",+ controls: {+ device: {+ type: "select",+ default: "laptop",+ options: ["laptop", "phone"],+ label: "Device",+ },+ accentColor: {+ type: "color",+ default: "#22c55e",+ label: "Accent color",+ },+ assembleStart: {+ type: "number",+ default: 0,+ min: 0,+ max: 60,+ step: 1,+ label: "Assemble start",+ },+ },+ durationInFrames: 150,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/hero-device-assemble/index.tsx b/registry/remocn/hero-device-assemble/index.tsxnew file mode 100644index 00000000..aebec44d--- /dev/null+++ b/registry/remocn/hero-device-assemble/index.tsx@@ -0,0 +1,364 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface HeroDeviceAssembleProps {+ assembleStart?: number;+ device?: "laptop" | "phone";+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function MockUI({ accentColor }: { accentColor: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ flexDirection: "column",+ background: "#0b0b0f",+ fontFamily: FONT_FAMILY,+ color: "white",+ overflow: "hidden",+ }}+ >+ {/* Title bar */}+ <div+ style={{+ height: "10%",+ background: "#111118",+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ display: "flex",+ alignItems: "center",+ padding: "0 16px",+ gap: 8,+ }}+ >+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: "50%",+ background: "rgba(255,255,255,0.18)",+ }}+ />+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: "50%",+ background: "rgba(255,255,255,0.18)",+ }}+ />+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: "50%",+ background: "rgba(255,255,255,0.18)",+ }}+ />+ </div>+ <div style={{ flex: 1, display: "flex" }}>+ {/* Sidebar */}+ <div+ style={{+ width: "22%",+ background: "#0e0e14",+ borderRight: "1px solid rgba(255,255,255,0.05)",+ padding: 16,+ display: "flex",+ flexDirection: "column",+ gap: 10,+ }}+ >+ <div+ style={{+ height: 12,+ borderRadius: 4,+ background: accentColor,+ opacity: 0.85,+ width: "70%",+ }}+ />+ <div+ style={{+ height: 10,+ borderRadius: 4,+ background: "rgba(255,255,255,0.1)",+ width: "85%",+ }}+ />+ <div+ style={{+ height: 10,+ borderRadius: 4,+ background: "rgba(255,255,255,0.08)",+ width: "60%",+ }}+ />+ <div+ style={{+ height: 10,+ borderRadius: 4,+ background: "rgba(255,255,255,0.08)",+ width: "75%",+ }}+ />+ </div>+ {/* Content */}+ <div+ style={{+ flex: 1,+ padding: 24,+ display: "flex",+ flexDirection: "column",+ gap: 16,+ }}+ >+ <div+ style={{+ height: 18,+ width: "40%",+ background: "rgba(255,255,255,0.85)",+ borderRadius: 4,+ }}+ />+ <div+ style={{+ height: 10,+ width: "65%",+ background: "rgba(255,255,255,0.18)",+ borderRadius: 4,+ }}+ />+ <div+ style={{+ display: "grid",+ gridTemplateColumns: "1fr 1fr 1fr",+ gap: 12,+ marginTop: 12,+ }}+ >+ <div+ style={{+ height: 90,+ borderRadius: 8,+ background:+ "linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02))",+ border: "1px solid rgba(255,255,255,0.06)",+ }}+ />+ <div+ style={{+ height: 90,+ borderRadius: 8,+ background: `linear-gradient(180deg, ${accentColor}33, ${accentColor}11)`,+ border: `1px solid ${accentColor}55`,+ }}+ />+ <div+ style={{+ height: 90,+ borderRadius: 8,+ background:+ "linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02))",+ border: "1px solid rgba(255,255,255,0.06)",+ }}+ />+ </div>+ <div+ style={{+ flex: 1,+ borderRadius: 8,+ background:+ "linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01))",+ border: "1px solid rgba(255,255,255,0.06)",+ }}+ />+ </div>+ </div>+ </div>+ );+}++export function HeroDeviceAssemble({+ assembleStart = 0,+ device = "laptop",+ accentColor = "#22c55e",+ speed = 1,+ className,+}: HeroDeviceAssembleProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const assemble = spring({+ frame: frame - assembleStart,+ fps,+ config: { mass: 1.4, damping: 12, stiffness: 90 },+ durationInFrames: 60,+ });++ // Layer translateZ values from far -> 0+ const lidZ = interpolate(assemble, [0, 1], [1000, 0]);+ const baseZ = interpolate(assemble, [0, 1], [-800, 0]);+ const bezelZ = interpolate(assemble, [0, 1], [600, 0]);+ const screenZ = interpolate(assemble, [0, 1], [300, 0]);++ // Parent rotation easing to 0+ const rotX = interpolate(assemble, [0, 1], [-22, 0]);+ const rotY = interpolate(assemble, [0, 1], [28, 0]);++ // Layer opacity fade in slightly during assembly+ const layerOpacity = interpolate(assemble, [0, 0.4], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ // Settle frame: after assemble ~ 0.95+ const settleFrame = assembleStart + 45;+ const screenWake = interpolate(+ frame,+ [settleFrame, settleFrame + 18],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ // Shimmer sweep across screen (after wake)+ const shimmerProgress = interpolate(+ frame,+ [settleFrame + 6, settleFrame + 30],+ [-1, 2],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ const isPhone = device === "phone";++ // Device dimensions+ const deviceW = isPhone ? 320 : 760;+ const deviceH = isPhone ? 640 : 470;+ const screenInset = isPhone ? 12 : 18;+ const bezelRadius = isPhone ? 36 : 14;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background:+ "radial-gradient(ellipse at center, #1a1a22 0%, #050507 70%)",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ perspective: 2000,+ fontFamily: FONT_FAMILY,+ }}+ >+ <div+ style={{+ position: "relative",+ width: deviceW,+ height: deviceH,+ transformStyle: "preserve-3d",+ transform: `rotateX(${rotX}deg) rotateY(${rotY}deg)`,+ willChange: "transform",+ }}+ >+ {/* Back lid (laptop only — for phone, acts as the back shell) */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: `translateZ(${lidZ - 8}px)`,+ background: "linear-gradient(180deg, #1f2128 0%, #0e1014 100%)",+ borderRadius: bezelRadius + 4,+ border: "1px solid rgba(255,255,255,0.08)",+ boxShadow:+ "0 60px 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06)",+ opacity: layerOpacity,+ }}+ />++ {/* Keyboard / chassis base — laptop only */}+ {!isPhone && (+ <div+ style={{+ position: "absolute",+ left: -40,+ right: -40,+ bottom: -28,+ height: 28,+ transform: `translateZ(${baseZ}px) rotateX(78deg)`,+ transformOrigin: "top center",+ background: "linear-gradient(180deg, #2a2d36 0%, #14161c 100%)",+ borderRadius: "0 0 12px 12px",+ border: "1px solid rgba(255,255,255,0.06)",+ boxShadow: "0 30px 60px rgba(0,0,0,0.6)",+ opacity: layerOpacity,+ }}+ />+ )}++ {/* Bezel frame */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: `translateZ(${bezelZ}px)`,+ background: "#0a0a0d",+ borderRadius: bezelRadius,+ border: "1px solid rgba(255,255,255,0.12)",+ boxShadow:+ "inset 0 0 0 2px rgba(255,255,255,0.04), 0 20px 60px rgba(0,0,0,0.5)",+ opacity: layerOpacity,+ }}+ />++ {/* UI screen */}+ <div+ style={{+ position: "absolute",+ inset: screenInset,+ transform: `translateZ(${screenZ}px)`,+ borderRadius: bezelRadius - 6,+ overflow: "hidden",+ background: "black",+ opacity: layerOpacity,+ }}+ >+ {/* Black panel during flight */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: "#000",+ opacity: 1 - screenWake,+ }}+ />+ {/* UI fades in */}+ <div style={{ position: "absolute", inset: 0, opacity: screenWake }}>+ <MockUI accentColor={accentColor} />+ </div>+ {/* Shimmer sweep */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: `linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%)`,+ transform: `translateX(${shimmerProgress * 100}%)`,+ mixBlendMode: "screen",+ pointerEvents: "none",+ }}+ />+ </div>+ </div>+ </div>+ );+}diff --git a/registry/remocn/infinite-bento-pan/config.ts b/registry/remocn/infinite-bento-pan/config.tsnew file mode 100644index 00000000..9fe8b19a--- /dev/null+++ b/registry/remocn/infinite-bento-pan/config.ts@@ -0,0 +1,25 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const infiniteBentoPanConfig: ComponentConfig = {+ componentName: "InfiniteBentoPan",+ importPath: "@/components/remocn/infinite-bento-pan",+ controls: {+ panSpeed: {+ type: "number",+ default: 1,+ min: 0.25,+ max: 3,+ step: 0.25,+ label: "Pan speed",+ },+ accentColor: {+ type: "color",+ default: "#7c3aed",+ label: "Accent color",+ },+ },+ durationInFrames: 300,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/infinite-bento-pan/index.tsx b/registry/remocn/infinite-bento-pan/index.tsxnew file mode 100644index 00000000..57559197--- /dev/null+++ b/registry/remocn/infinite-bento-pan/index.tsx@@ -0,0 +1,482 @@+"use client";++import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface InfiniteBentoPanProps {+ panSpeed?: number;+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++const SUPER_W = 3500;+const SUPER_H = 2500;++type CardKind =+ | "chart"+ | "counter"+ | "gradient"+ | "code"+ | "logo"+ | "stat"+ | "bars";++interface CardDef {+ x: number;+ y: number;+ w: number;+ h: number;+ kind: CardKind;+ hue: number;+ label?: string;+}++const CARDS: CardDef[] = [+ { x: 80, y: 80, w: 480, h: 280, kind: "chart", hue: 220, label: "Revenue" },+ { x: 600, y: 80, w: 280, h: 280, kind: "counter", hue: 280, label: "MRR" },+ { x: 920, y: 80, w: 360, h: 180, kind: "gradient", hue: 200 },+ { x: 1320, y: 80, w: 480, h: 280, kind: "code", hue: 0, label: "deploy.ts" },+ { x: 1840, y: 80, w: 280, h: 280, kind: "logo", hue: 320 },+ { x: 2160, y: 80, w: 380, h: 180, kind: "stat", hue: 160, label: "Uptime" },+ { x: 2580, y: 80, w: 360, h: 280, kind: "bars", hue: 40, label: "Visits" },+ { x: 920, y: 300, w: 360, h: 200, kind: "counter", hue: 180, label: "Users" },+ {+ x: 2160,+ y: 300,+ w: 380,+ h: 200,+ kind: "chart",+ hue: 100,+ label: "Latency",+ },+ { x: 80, y: 400, w: 280, h: 280, kind: "gradient", hue: 340 },+ { x: 400, y: 400, w: 480, h: 280, kind: "code", hue: 0, label: "api.ts" },+ { x: 1320, y: 420, w: 280, h: 280, kind: "stat", hue: 60, label: "P95" },+ { x: 1640, y: 420, w: 380, h: 280, kind: "bars", hue: 260, label: "Builds" },+ { x: 2580, y: 420, w: 360, h: 280, kind: "logo", hue: 200 },+ { x: 80, y: 720, w: 480, h: 240, kind: "chart", hue: 290, label: "Errors" },+ { x: 600, y: 720, w: 280, h: 240, kind: "stat", hue: 20, label: "RPS" },+ { x: 920, y: 740, w: 380, h: 220, kind: "gradient", hue: 240 },+ {+ x: 1320,+ y: 740,+ w: 360,+ h: 220,+ kind: "counter",+ hue: 140,+ label: "Active",+ },+ { x: 1720, y: 740, w: 480, h: 240, kind: "code", hue: 0, label: "worker.ts" },+ { x: 2240, y: 740, w: 360, h: 240, kind: "bars", hue: 320, label: "Queue" },+ { x: 80, y: 1000, w: 360, h: 220, kind: "logo", hue: 180 },+ { x: 460, y: 1000, w: 380, h: 220, kind: "stat", hue: 80, label: "Cache" },+ { x: 880, y: 1000, w: 480, h: 220, kind: "chart", hue: 200, label: "CPU" },+ {+ x: 1400,+ y: 1000,+ w: 280,+ h: 220,+ kind: "counter",+ hue: 360,+ label: "Jobs",+ },+ { x: 1720, y: 1020, w: 360, h: 220, kind: "gradient", hue: 120 },+ { x: 2120, y: 1020, w: 380, h: 220, kind: "code", hue: 0, label: "db.sql" },+ { x: 2540, y: 1020, w: 400, h: 220, kind: "bars", hue: 280, label: "Tasks" },+ { x: 80, y: 1280, w: 480, h: 260, kind: "code", hue: 0, label: "edge.ts" },+ { x: 600, y: 1280, w: 360, h: 260, kind: "chart", hue: 240, label: "TTFB" },+ { x: 1000, y: 1280, w: 280, h: 260, kind: "logo", hue: 60 },+ { x: 1320, y: 1280, w: 380, h: 260, kind: "stat", hue: 200, label: "Hits" },+ {+ x: 1740,+ y: 1280,+ w: 360,+ h: 260,+ kind: "counter",+ hue: 300,+ label: "Bytes",+ },+ { x: 2140, y: 1280, w: 380, h: 260, kind: "gradient", hue: 160 },+ { x: 2560, y: 1280, w: 380, h: 260, kind: "bars", hue: 0, label: "Errors" },+ { x: 80, y: 1600, w: 380, h: 220, kind: "stat", hue: 280, label: "Saved" },+ { x: 500, y: 1600, w: 480, h: 220, kind: "chart", hue: 40, label: "Net Out" },+ { x: 1020, y: 1600, w: 360, h: 220, kind: "code", hue: 0, label: "auth.ts" },+ { x: 1420, y: 1600, w: 280, h: 220, kind: "logo", hue: 220 },+ {+ x: 1740,+ y: 1620,+ w: 380,+ h: 220,+ kind: "counter",+ hue: 100,+ label: "Hooks",+ },+ { x: 2160, y: 1620, w: 360, h: 220, kind: "bars", hue: 340, label: "Runs" },+ { x: 2560, y: 1620, w: 380, h: 220, kind: "gradient", hue: 200 },+ { x: 80, y: 1880, w: 480, h: 240, kind: "bars", hue: 180, label: "Edges" },+ { x: 600, y: 1880, w: 380, h: 240, kind: "gradient", hue: 320 },+ { x: 1020, y: 1880, w: 360, h: 240, kind: "logo", hue: 80 },+ {+ x: 1420,+ y: 1880,+ w: 480,+ h: 240,+ kind: "chart",+ hue: 260,+ label: "Tokens",+ },+ {+ x: 1940,+ y: 1880,+ w: 280,+ h: 240,+ kind: "counter",+ hue: 20,+ label: "Calls",+ },+ { x: 2260, y: 1880, w: 380, h: 240, kind: "stat", hue: 140, label: "Score" },+ { x: 2680, y: 1880, w: 260, h: 240, kind: "code", hue: 0, label: "ws.ts" },+];++function noise(i: number, frame: number) {+ return Math.sin(frame / 30 + i) * 0.5 + 0.5;+}++function ChartCard({ accent, t }: { accent: string; t: number }) {+ const points: string[] = [];+ for (let i = 0; i < 12; i++) {+ const x = (i / 11) * 100;+ const y =+ 50 - (Math.sin(i * 0.7 + t) * 18 + Math.cos(i * 0.4 + t * 0.6) * 8);+ points.push(`${x},${y}`);+ }+ return (+ <svg+ viewBox="0 0 100 60"+ preserveAspectRatio="none"+ style={{ width: "100%", height: "100%" }}+ >+ <polyline+ points={points.join(" ")}+ fill="none"+ stroke={accent}+ strokeWidth={1.4}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ <polyline+ points={`${points.join(" ")} 100,60 0,60`}+ fill={`${accent}22`}+ stroke="none"+ />+ </svg>+ );+}++function BarsCard({ accent, t }: { accent: string; t: number }) {+ return (+ <div+ style={{+ display: "flex",+ alignItems: "flex-end",+ gap: 6,+ height: "100%",+ width: "100%",+ }}+ >+ {Array.from({ length: 10 }).map((_, i) => {+ const h = 25 + (Math.sin(i * 0.8 + t) * 0.5 + 0.5) * 70;+ return (+ <div+ key={i}+ style={{+ flex: 1,+ height: `${h}%`,+ background: `linear-gradient(180deg, ${accent} 0%, ${accent}55 100%)`,+ borderRadius: 4,+ }}+ />+ );+ })}+ </div>+ );+}++function CodeCard() {+ const lines = [+ { indent: 0, w: 60, c: "#7dd3fc" },+ { indent: 1, w: 80, c: "rgba(255,255,255,0.8)" },+ { indent: 1, w: 50, c: "#f9a8d4" },+ { indent: 2, w: 70, c: "rgba(255,255,255,0.8)" },+ { indent: 2, w: 40, c: "#fde047" },+ { indent: 1, w: 30, c: "rgba(255,255,255,0.6)" },+ { indent: 0, w: 20, c: "rgba(255,255,255,0.6)" },+ ];+ return (+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ gap: 8,+ fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",+ }}+ >+ {lines.map((l, i) => (+ <div+ key={i}+ style={{+ marginLeft: l.indent * 14,+ width: `${l.w}%`,+ height: 8,+ borderRadius: 3,+ background: l.c,+ opacity: 0.7,+ }}+ />+ ))}+ </div>+ );+}++function LogoCard({ accent, hue }: { accent: string; hue: number }) {+ return (+ <div+ style={{+ width: "100%",+ height: "100%",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ width: 80,+ height: 80,+ borderRadius: 20,+ background: `linear-gradient(135deg, ${accent} 0%, hsl(${hue},70%,55%) 100%)`,+ boxShadow: `0 10px 30px ${accent}44`,+ }}+ />+ </div>+ );+}++function GradientCard({ hue }: { hue: number }) {+ return (+ <div+ style={{+ width: "100%",+ height: "100%",+ background: `radial-gradient(circle at 30% 30%, hsl(${hue},80%,60%) 0%, hsl(${(hue + 60) % 360},70%,40%) 50%, #0a0a0a 100%)`,+ }}+ />+ );+}++function Card({+ card,+ accent,+ index,+ frame,+}: {+ card: CardDef;+ accent: string;+ index: number;+ frame: number;+}) {+ const t = noise(index, frame) * 6.28;+ const baseStyle: React.CSSProperties = {+ position: "absolute",+ left: card.x,+ top: card.y,+ width: card.w,+ height: card.h,+ borderRadius: 18,+ background: "linear-gradient(180deg, #131313 0%, #0a0a0a 100%)",+ border: "1px solid rgba(255,255,255,0.07)",+ overflow: "hidden",+ padding: 18,+ color: "white",+ display: "flex",+ flexDirection: "column",+ };++ const labelEl = card.label ? (+ <div+ style={{+ fontSize: 12,+ fontWeight: 600,+ color: "rgba(255,255,255,0.55)",+ letterSpacing: "0.04em",+ textTransform: "uppercase",+ marginBottom: 8,+ }}+ >+ {card.label}+ </div>+ ) : null;++ if (card.kind === "chart") {+ return (+ <div style={baseStyle}>+ {labelEl}+ <div style={{ flex: 1 }}>+ <ChartCard accent={accent} t={t} />+ </div>+ </div>+ );+ }+ if (card.kind === "bars") {+ return (+ <div style={baseStyle}>+ {labelEl}+ <div style={{ flex: 1 }}>+ <BarsCard accent={accent} t={t} />+ </div>+ </div>+ );+ }+ if (card.kind === "counter") {+ const v = Math.floor(1200 + noise(index, frame) * 800);+ return (+ <div style={baseStyle}>+ {labelEl}+ <div+ style={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ justifyContent: "flex-start",+ fontSize: 56,+ fontWeight: 700,+ letterSpacing: "-0.04em",+ color: "white",+ }}+ >+ {v.toLocaleString()}+ </div>+ <div style={{ fontSize: 12, color: accent, fontWeight: 600 }}>+ +{(noise(index + 1, frame) * 12).toFixed(1)}%+ </div>+ </div>+ );+ }+ if (card.kind === "stat") {+ const v = (95 + noise(index, frame) * 5).toFixed(2);+ return (+ <div style={baseStyle}>+ {labelEl}+ <div+ style={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ fontSize: 48,+ fontWeight: 700,+ letterSpacing: "-0.03em",+ }}+ >+ {v}+ <span+ style={{+ fontSize: 20,+ color: "rgba(255,255,255,0.5)",+ marginLeft: 4,+ }}+ >+ %+ </span>+ </div>+ </div>+ );+ }+ if (card.kind === "code") {+ return (+ <div style={baseStyle}>+ {labelEl}+ <div style={{ flex: 1, display: "flex", alignItems: "center" }}>+ <div style={{ width: "100%" }}>+ <CodeCard />+ </div>+ </div>+ </div>+ );+ }+ if (card.kind === "logo") {+ return (+ <div style={{ ...baseStyle, padding: 0 }}>+ <LogoCard accent={accent} hue={card.hue} />+ </div>+ );+ }+ // gradient+ return (+ <div style={{ ...baseStyle, padding: 0 }}>+ <GradientCard hue={card.hue} />+ </div>+ );+}++export function InfiniteBentoPan({+ panSpeed = 1,+ accentColor = "#7c3aed",+ speed = 1,+ className,+}: InfiniteBentoPanProps) {+ const frame = useCurrentFrame() * speed;+ const { durationInFrames, width, height } = useVideoConfig();++ const maxX = SUPER_W - width;+ const maxY = SUPER_H - height;++ // diagonal pan: from top-left toward bottom-right+ const t = interpolate(frame, [0, durationInFrames], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const px = t * maxX * Math.min(1, panSpeed);+ const py = t * maxY * Math.min(1, panSpeed);++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background: "#050505",+ overflow: "hidden",+ fontFamily: FONT_FAMILY,+ }}+ >+ <div+ style={{+ position: "absolute",+ left: 0,+ top: 0,+ width: SUPER_W,+ height: SUPER_H,+ transform: `translate(${-px}px, ${-py}px)`,+ willChange: "transform",+ }}+ >+ {CARDS.map((c, i) => (+ <Card key={i} card={c} accent={accentColor} index={i} frame={frame} />+ ))}+ </div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ background:+ "radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 80%, #000 100%)",+ pointerEvents: "none",+ }}+ />+ </div>+ );+}diff --git a/registry/remocn/kinetic-type-mask/config.ts b/registry/remocn/kinetic-type-mask/config.tsnew file mode 100644index 00000000..660bfca0--- /dev/null+++ b/registry/remocn/kinetic-type-mask/config.ts@@ -0,0 +1,16 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const kineticTypeMaskConfig: ComponentConfig = {+ componentName: "KineticTypeMask",+ importPath: "@/components/remocn/kinetic-type-mask",+ controls: {+ text: { type: "text", default: "NEXT", label: "Text" },+ holdFrames: { type: "number", default: 12, min: 0, max: 60, step: 1, label: "Hold frames" },+ transitionDuration: { type: "number", default: 24, min: 8, max: 60, step: 1, label: "Transition duration" },+ maxScale: { type: "number", default: 120, min: 20, max: 300, step: 5, label: "Max scale" },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/kinetic-type-mask/index.tsx b/registry/remocn/kinetic-type-mask/index.tsxnew file mode 100644index 00000000..96967c74--- /dev/null+++ b/registry/remocn/kinetic-type-mask/index.tsx@@ -0,0 +1,152 @@+"use client";++import { type ReactNode, useId } from "react";+import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";++export interface KineticTypeMaskProps {+ from?: ReactNode;+ to?: ReactNode;+ text?: string;+ transitionStart?: number;+ holdFrames?: number;+ transitionDuration?: number;+ maxScale?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPanel({ label, color }: { label: string; color: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: color,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.05em",+ }}+ >+ {label}+ </div>+ );+}++export function KineticTypeMask({+ from,+ to,+ text = "NEXT",+ transitionStart,+ holdFrames = 12,+ transitionDuration = 24,+ maxScale = 120,+ speed = 1,+ className,+}: KineticTypeMaskProps) {+ const frame = useCurrentFrame() * speed;+ const { width, height, durationInFrames } = useVideoConfig();++ const start = transitionStart ?? Math.floor(durationInFrames * 0.3);+ const scaleStart = start + holdFrames;++ const scale = interpolate(+ frame,+ [scaleStart, scaleStart + transitionDuration],+ [1, maxScale],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.7, 0, 0.84, 0),+ },+ );++ const id = useId().replace(/[:#]/g, "");++ const fromContent = from ?? <DefaultPanel label="Scene A" color="#0f172a" />;+ const toContent = to ?? <DefaultPanel label="Scene B" color="#f97316" />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "black",+ }}+ >+ <div style={{ position: "absolute", inset: 0 }}>{fromContent}</div>++ {scale < maxScale * 0.95 && (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "black",+ fontFamily: FONT_FAMILY,+ fontSize: height * 0.7,+ fontWeight: 900,+ transform: `scale(${scale})`,+ transformOrigin: "center center",+ willChange: "transform",+ }}+ >+ {text}+ </div>+ )}++ <div+ style={{+ position: "absolute",+ inset: 0,+ clipPath: `url(#${id})`,+ WebkitClipPath: `url(#${id})`,+ }}+ >+ <div style={{ position: "absolute", inset: 0 }}>{toContent}</div>+ </div>++ <svg+ width="100%"+ height="100%"+ viewBox={`0 0 ${width} ${height}`}+ style={{+ position: "absolute",+ inset: 0,+ pointerEvents: "none",+ }}+ >+ <defs>+ <clipPath id={id} clipPathUnits="userSpaceOnUse">+ <text+ x={width / 2}+ y={height / 2}+ textAnchor="middle"+ dominantBaseline="central"+ fontFamily={FONT_FAMILY}+ fontWeight={900}+ fontSize={height * 0.7}+ style={{+ transform: `scale(${scale})`,+ transformOrigin: `${width / 2}px ${height / 2}px`,+ }}+ >+ {text}+ </text>+ </clipPath>+ </defs>+ </svg>+ </div>+ );+}diff --git a/registry/remocn/live-code-compilation/config.ts b/registry/remocn/live-code-compilation/config.tsnew file mode 100644index 00000000..0bd02b28--- /dev/null+++ b/registry/remocn/live-code-compilation/config.ts@@ -0,0 +1,17 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const liveCodeCompilationConfig: ComponentConfig = {+ componentName: "LiveCodeCompilation",+ importPath: "@/components/remocn/live-code-compilation",+ controls: {+ accentColor: {+ type: "color",+ default: "#3b82f6",+ label: "Accent color",+ },+ },+ durationInFrames: 260,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/live-code-compilation/index.tsx b/registry/remocn/live-code-compilation/index.tsxnew file mode 100644index 00000000..4abc04ad--- /dev/null+++ b/registry/remocn/live-code-compilation/index.tsx@@ -0,0 +1,372 @@+"use client";++import { useCurrentFrame } from "remotion";++export interface LiveCodeCompilationProps {+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";+const MONO_FAMILY =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";++interface UIState {+ background?: string;+ color?: string;+ padding?: string;+ borderRadius?: string;+ fontWeight?: number;+ label?: string;+}++interface CodeEvent {+ code: string;+ ui: UIState;+}++const EVENTS: CodeEvent[] = [+ {+ code: "export function Button() {\n return (\n <button",+ ui: {},+ },+ { code: "\n style={{", ui: {} },+ {+ code: '\n background: "#3b82f6",',+ ui: { background: "#3b82f6" },+ },+ {+ code: '\n color: "white",',+ ui: { color: "white" },+ },+ {+ code: '\n padding: "12px 28px",',+ ui: { padding: "12px 28px" },+ },+ {+ code: '\n borderRadius: "999px",',+ ui: { borderRadius: "999px" },+ },+ {+ code: "\n fontWeight: 600,",+ ui: { fontWeight: 600 },+ },+ {+ code: "\n }}\n >\n Ship it\n </button>\n );\n}",+ ui: { label: "Ship it" },+ },+];++const CHARS_PER_FRAME = 1.6;+const DWELL_FRAMES = 5;+const INITIAL_OFFSET = 8;++interface TimelineEntry extends CodeEvent {+ start: number;+ end: number;+}++const TIMELINE: TimelineEntry[] = (() => {+ let cursor = INITIAL_OFFSET;+ return EVENTS.map((ev) => {+ const start = cursor;+ const end = start + Math.ceil(ev.code.length / CHARS_PER_FRAME);+ cursor = end + DWELL_FRAMES;+ return { ...ev, start, end };+ });+})();+const TIMELINE_END = TIMELINE[TIMELINE.length - 1].end;++function highlightLine(line: string, accentColor: string) {+ // very simple tokenizer: keywords, strings, props+ const tokens: { text: string; color: string }[] = [];+ const regex =+ /(\bexport\b|\bfunction\b|\breturn\b)|("[^"]*")|(\b[a-zA-Z_][a-zA-Z0-9_]*)(?=:)|(\{|\}|\(|\)|<|>|\/)|([0-9]+)/g;+ let lastIndex = 0;+ let m: RegExpExecArray | null = regex.exec(line);+ while (m !== null) {+ if (m.index > lastIndex) {+ tokens.push({+ text: line.slice(lastIndex, m.index),+ color: "#e4e4e7",+ });+ }+ if (m[1]) tokens.push({ text: m[1], color: "#c084fc" });+ else if (m[2]) tokens.push({ text: m[2], color: "#86efac" });+ else if (m[3]) tokens.push({ text: m[3], color: accentColor });+ else if (m[4]) tokens.push({ text: m[4], color: "#71717a" });+ else if (m[5]) tokens.push({ text: m[5], color: "#fbbf24" });+ lastIndex = regex.lastIndex;+ m = regex.exec(line);+ }+ if (lastIndex < line.length) {+ tokens.push({ text: line.slice(lastIndex), color: "#e4e4e7" });+ }+ return tokens;+}++export function LiveCodeCompilation({+ accentColor = "#3b82f6",+ speed = 1,+ className,+}: LiveCodeCompilationProps) {+ const frame = useCurrentFrame() * speed;++ // Build the visible code character-by-character from the auto-staggered+ // timeline. UI state only flips once a fragment is fully typed.+ let visibleCode = "";+ const ui: UIState = {};+ for (const t of TIMELINE) {+ if (frame < t.start) break;+ const elapsed = frame - t.start;+ const charsTyped = Math.min(+ t.code.length,+ Math.floor(elapsed * CHARS_PER_FRAME),+ );+ visibleCode += t.code.slice(0, charsTyped);+ if (frame >= t.end) Object.assign(ui, t.ui);+ }++ const lines = visibleCode.split("\n");+ const buttonLabel = ui.label ?? "Button";++ // Blinking caret while typing is still in progress.+ const cursorVisible =+ frame < TIMELINE_END && Math.floor(frame / 12) % 2 === 0;+ const lastLineIndex = lines.length - 1;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background: "#070708",+ overflow: "hidden",+ fontFamily: FONT_FAMILY,+ display: "flex",+ }}+ >+ {/* subtle backdrop gradient */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background:+ "radial-gradient(ellipse at 20% 30%, rgba(59,130,246,0.08), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(168,85,247,0.06), transparent 60%)",+ }}+ />++ {/* LEFT: Glass code window */}+ <div+ style={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ padding: 48,+ position: "relative",+ }}+ >+ <div+ style={{+ width: "100%",+ maxWidth: 560,+ position: "relative",+ borderRadius: 14,+ padding: 1,+ background:+ "linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.06) 100%)",+ boxShadow: "0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.4)",+ }}+ >+ <div+ style={{+ borderRadius: 13,+ background: "rgba(12,12,14,0.85)",+ backdropFilter: "blur(20px)",+ overflow: "hidden",+ }}+ >+ {/* Title bar */}+ <div+ style={{+ height: 38,+ display: "flex",+ alignItems: "center",+ padding: "0 16px",+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ gap: 8,+ }}+ >+ <div+ style={{+ width: 11,+ height: 11,+ borderRadius: 6,+ background: "#ff5f57",+ opacity: 0.6,+ }}+ />+ <div+ style={{+ width: 11,+ height: 11,+ borderRadius: 6,+ background: "#febc2e",+ opacity: 0.6,+ }}+ />+ <div+ style={{+ width: 11,+ height: 11,+ borderRadius: 6,+ background: "#28c840",+ opacity: 0.6,+ }}+ />+ <div+ style={{+ marginLeft: 12,+ fontSize: 12,+ color: "rgba(255,255,255,0.45)",+ fontFamily: MONO_FAMILY,+ }}+ >+ Button.tsx+ </div>+ </div>+ {/* Code body */}+ <div+ style={{+ padding: "20px 22px",+ fontFamily: MONO_FAMILY,+ fontSize: 14,+ lineHeight: 1.65,+ color: "#e4e4e7",+ minHeight: 360,+ boxShadow: "inset 0 1px 0 rgba(255,255,255,0.04)",+ }}+ >+ {lines.map((line, i) => {+ const tokens = highlightLine(line, accentColor);+ const isLast = i === lastLineIndex;+ return (+ <div key={i} style={{ display: "flex", whiteSpace: "pre" }}>+ <span+ style={{+ width: 28,+ color: "rgba(255,255,255,0.2)",+ userSelect: "none",+ flexShrink: 0,+ }}+ >+ {i + 1}+ </span>+ <span>+ {tokens.length === 0 ? (+ <span> </span>+ ) : (+ tokens.map((t, j) => (+ <span key={j} style={{ color: t.color }}>+ {t.text}+ </span>+ ))+ )}+ {isLast && cursorVisible && (+ <span+ style={{+ display: "inline-block",+ width: 8,+ height: 16,+ marginLeft: 1,+ verticalAlign: "text-bottom",+ background: accentColor,+ }}+ />+ )}+ </span>+ </div>+ );+ })}+ </div>+ </div>+ </div>+ </div>++ {/* RIGHT: Live preview */}+ <div+ style={{+ flex: 1,+ position: "relative",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ borderLeft: "1px solid rgba(255,255,255,0.05)",+ background:+ "repeating-conic-gradient(rgba(255,255,255,0.018) 0deg 90deg, transparent 90deg 180deg) 0 0 / 28px 28px",+ }}+ >+ {/* Preview label */}+ <div+ style={{+ position: "absolute",+ top: 24,+ left: 24,+ display: "flex",+ alignItems: "center",+ gap: 8,+ }}+ >+ <div+ style={{+ width: 8,+ height: 8,+ borderRadius: 4,+ background: "#22c55e",+ boxShadow: "0 0 8px #22c55e",+ }}+ />+ <div+ style={{+ fontSize: 11,+ fontFamily: MONO_FAMILY,+ color: "rgba(255,255,255,0.5)",+ textTransform: "uppercase",+ letterSpacing: "0.08em",+ }}+ >+ Preview · HMR+ </div>+ </div>++ {/* The button — all styles applied with no transition */}+ <button+ type="button"+ style={{+ background: ui.background ?? "rgba(255,255,255,0.06)",+ color: ui.color ?? "rgba(255,255,255,0.4)",+ padding: ui.padding ?? "10px 20px",+ borderRadius: ui.borderRadius ?? "4px",+ fontWeight: ui.fontWeight ?? 400,+ fontSize: 18,+ fontFamily: FONT_FAMILY,+ border: ui.background+ ? "none"+ : "1px dashed rgba(255,255,255,0.15)",+ cursor: "pointer",+ transition: "none",+ boxShadow: ui.background+ ? `0 10px 30px ${ui.background}55, 0 0 0 1px rgba(255,255,255,0.08)`+ : "none",+ }}+ >+ {buttonLabel}+ </button>+ </div>+ </div>+ );+}diff --git a/registry/remocn/pipeline-journey/config.ts b/registry/remocn/pipeline-journey/config.tsnew file mode 100644index 00000000..6f071b9e--- /dev/null+++ b/registry/remocn/pipeline-journey/config.ts@@ -0,0 +1,22 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const pipelineJourneyConfig: ComponentConfig = {+ componentName: "PipelineJourney",+ importPath: "@/components/remocn/pipeline-journey",+ controls: {+ cardLabel: {+ type: "text",+ default: "Build pipeline",+ label: "Card label",+ },+ accentColor: {+ type: "color",+ default: "#22c55e",+ label: "Accent color",+ },+ },+ durationInFrames: 200,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/pipeline-journey/index.tsx b/registry/remocn/pipeline-journey/index.tsxnew file mode 100644index 00000000..e3424595--- /dev/null+++ b/registry/remocn/pipeline-journey/index.tsx@@ -0,0 +1,422 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface PipelineJourneyProps {+ cardLabel?: string;+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";+const MONO_FAMILY =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";++const COLUMNS = [+ { id: "todo", title: "Todo", count: 3 },+ { id: "in_progress", title: "In Progress", count: 2 },+ { id: "done", title: "Done", count: 4 },+];++const COL_WIDTH = 320;+const COL_GAP = 40;+const BOARD_TOP = 120;+const BOARD_LEFT = 120;+const CARD_W = 280;+const CARD_H = 88;++function colCenter(index: number) {+ const x = BOARD_LEFT + index * (COL_WIDTH + COL_GAP) + COL_WIDTH / 2;+ const y = BOARD_TOP + 90;+ return { x, y };+}++function pseudoRandom(i: number) {+ const v = Math.sin(i * 12.9898) * 43758.5453;+ return v - Math.floor(v);+}++function PlaceholderCard({ opacity = 1 }: { opacity?: number }) {+ return (+ <div+ style={{+ width: CARD_W,+ height: CARD_H,+ borderRadius: 12,+ background: "rgba(255,255,255,0.04)",+ border: "1px solid rgba(255,255,255,0.08)",+ marginBottom: 12,+ padding: 14,+ display: "flex",+ flexDirection: "column",+ gap: 10,+ opacity,+ }}+ >+ <div+ style={{+ width: "70%",+ height: 10,+ borderRadius: 4,+ background: "rgba(255,255,255,0.12)",+ }}+ />+ <div+ style={{+ width: "45%",+ height: 8,+ borderRadius: 4,+ background: "rgba(255,255,255,0.08)",+ }}+ />+ <div style={{ flex: 1 }} />+ <div+ style={{+ width: 28,+ height: 28,+ borderRadius: 999,+ background: "rgba(255,255,255,0.12)",+ }}+ />+ </div>+ );+}++export function PipelineJourney({+ cardLabel = "Build pipeline",+ accentColor = "#22c55e",+ speed = 1,+ className,+}: PipelineJourneyProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ // Phases+ const flight1Start = 30;+ const flight1End = 70;+ const waitEnd = 110;+ const flight2Start = 110;+ const flight2End = 150;+ const confettiStart = 150;++ const todoCenter = colCenter(0);+ const progCenter = colCenter(1);+ const doneCenter = colCenter(2);++ // Card position interpolation+ let cx: number;+ let cy: number;+ let rotZ = 0;+ let scaleBoost = 1;+ let shadowAlpha = 0.25;+ let shadowBlur = 20;++ if (frame < flight1Start) {+ cx = todoCenter.x;+ cy = todoCenter.y;+ } else if (frame < flight1End) {+ const p = (frame - flight1Start) / (flight1End - flight1Start);+ cx = interpolate(p, [0, 1], [todoCenter.x, progCenter.x]);+ // arc+ const arc = Math.sin(p * Math.PI) * 80;+ cy = interpolate(p, [0, 1], [todoCenter.y, progCenter.y]) - arc;+ rotZ = Math.sin(p * Math.PI) * 3;+ scaleBoost = 1 + Math.sin(p * Math.PI) * 0.15;+ shadowAlpha = 0.25 + Math.sin(p * Math.PI) * 0.4;+ shadowBlur = 20 + Math.sin(p * Math.PI) * 60;+ } else if (frame < flight2Start) {+ cx = progCenter.x;+ cy = progCenter.y;+ } else if (frame < flight2End) {+ const p = (frame - flight2Start) / (flight2End - flight2Start);+ cx = interpolate(p, [0, 1], [progCenter.x, doneCenter.x]);+ const arc = Math.sin(p * Math.PI) * 80;+ cy = interpolate(p, [0, 1], [progCenter.y, doneCenter.y]) - arc;+ rotZ = Math.sin(p * Math.PI) * 3;+ scaleBoost = 1 + Math.sin(p * Math.PI) * 0.15;+ shadowAlpha = 0.25 + Math.sin(p * Math.PI) * 0.4;+ shadowBlur = 20 + Math.sin(p * Math.PI) * 60;+ } else {+ cx = doneCenter.x;+ cy = doneCenter.y;+ }++ // Landing micro-spring on each arrival+ const land1 = spring({+ frame: frame - flight1End,+ fps,+ config: { damping: 10, stiffness: 180, mass: 0.7 },+ durationInFrames: 18,+ });+ const land2 = spring({+ frame: frame - flight2End,+ fps,+ config: { damping: 10, stiffness: 180, mass: 0.7 },+ durationInFrames: 18,+ });++ let landingScale = 1;+ if (frame >= flight1End && frame < flight2Start) {+ landingScale = interpolate(land1, [0, 1], [0.92, 1]);+ } else if (frame >= flight2End) {+ landingScale = interpolate(land2, [0, 1], [0.92, 1]);+ }++ // Column flash on landing+ const progFlash = interpolate(+ frame,+ [flight1End, flight1End + 4, flight1End + 18],+ [0, 1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ const doneFlash = interpolate(+ frame,+ [flight2End, flight2End + 4, flight2End + 18],+ [0, 1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ // Timer visibility (during in_progress wait)+ const timerOpacity = interpolate(+ frame,+ [flight1End + 4, flight1End + 12, waitEnd - 8, waitEnd],+ [0, 1, 1, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ const timerSecs = Math.floor(+ interpolate(frame, [flight1End, waitEnd], [0, 42], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ }),+ );++ // Confetti particles+ const PARTICLE_COUNT = 36;+ const confettiFrame = frame - confettiStart;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background: "#09090b",+ fontFamily: FONT_FAMILY,+ color: "white",+ overflow: "hidden",+ }}+ >+ {/* Subtle grid bg */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ backgroundImage:+ "linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px)",+ backgroundSize: "40px 40px",+ }}+ />++ {/* Title */}+ <div+ style={{+ position: "absolute",+ top: 48,+ left: BOARD_LEFT,+ fontSize: 24,+ fontWeight: 600,+ letterSpacing: "-0.02em",+ }}+ >+ Sprint board+ </div>++ {/* Columns */}+ {COLUMNS.map((col, i) => {+ const flash =+ col.id === "in_progress"+ ? progFlash+ : col.id === "done"+ ? doneFlash+ : 0;+ return (+ <div+ key={col.id}+ style={{+ position: "absolute",+ top: BOARD_TOP,+ left: BOARD_LEFT + i * (COL_WIDTH + COL_GAP),+ width: COL_WIDTH,+ height: 480,+ borderRadius: 16,+ background: `rgba(255,255,255,${0.02 + flash * 0.08})`,+ border: `1px solid rgba(255,255,255,${0.06 + flash * 0.2})`,+ padding: 20,+ transition: "none",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ marginBottom: 18,+ }}+ >+ <div style={{ fontSize: 14, fontWeight: 600, opacity: 0.85 }}>+ {col.title}+ </div>+ <div+ style={{+ fontSize: 12,+ fontFamily: MONO_FAMILY,+ opacity: 0.5,+ padding: "2px 8px",+ borderRadius: 999,+ background: "rgba(255,255,255,0.06)",+ }}+ >+ {col.count}+ </div>+ </div>+ {Array.from({ length: col.count }).map((_, k) => (+ <PlaceholderCard key={k} opacity={0.55 + ((k * 13) % 30) / 100} />+ ))}+ </div>+ );+ })}++ {/* Flying card */}+ <div+ style={{+ position: "absolute",+ left: cx - CARD_W / 2,+ top: cy - CARD_H / 2,+ width: CARD_W,+ height: CARD_H,+ borderRadius: 14,+ background: "#18181b",+ border: `1px solid ${accentColor}`,+ boxShadow: `0 ${shadowBlur / 2}px ${shadowBlur}px rgba(0,0,0,${shadowAlpha}), 0 0 0 1px rgba(255,255,255,0.04) inset`,+ transform: `rotate(${rotZ}deg) scale(${scaleBoost * landingScale})`,+ transformOrigin: "center center",+ padding: 16,+ display: "flex",+ flexDirection: "column",+ gap: 10,+ willChange: "transform",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ }}+ >+ <div+ style={{+ fontFamily: MONO_FAMILY,+ fontSize: 11,+ opacity: 0.5,+ }}+ >+ REMO-128+ </div>+ <div+ style={{+ width: 8,+ height: 8,+ borderRadius: 999,+ background: accentColor,+ boxShadow: `0 0 12px ${accentColor}`,+ }}+ />+ </div>+ <div+ style={{+ fontSize: 16,+ fontWeight: 600,+ letterSpacing: "-0.01em",+ }}+ >+ {cardLabel}+ </div>+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ marginTop: "auto",+ }}+ >+ <div+ style={{+ fontFamily: MONO_FAMILY,+ fontSize: 12,+ opacity: timerOpacity,+ color: accentColor,+ }}+ >+ 00:{String(timerSecs).padStart(2, "0")}+ </div>+ <div+ style={{+ fontSize: 11,+ opacity: 0.4,+ }}+ >+ assignee+ </div>+ </div>+ </div>++ {/* Confetti */}+ {confettiFrame > 0 &&+ Array.from({ length: PARTICLE_COUNT }).map((_, i) => {+ const angle = pseudoRandom(i + 1) * Math.PI * 2;+ const dist = 60 + pseudoRandom(i + 99) * 220;+ const drift = pseudoRandom(i + 7) * 40 - 20;+ const sizeR = pseudoRandom(i + 3);+ const size = 6 + sizeR * 8;+ const colorPick = pseudoRandom(i + 5);+ const color =+ colorPick < 0.33+ ? accentColor+ : colorPick < 0.66+ ? "#fbbf24"+ : "#60a5fa";+ const lifespan = 50;+ const t = Math.min(confettiFrame / lifespan, 1);+ const eased = 1 - (1 - t) * (1 - t);+ const px = doneCenter.x + Math.cos(angle) * dist * eased + drift * t;+ const py =+ doneCenter.y ++ Math.sin(angle) * dist * eased ++ // gravity+ t * t * 220;+ const opacity = interpolate(t, [0, 0.7, 1], [1, 1, 0]);+ const rot = pseudoRandom(i + 11) * 360 + confettiFrame * 12;+ return (+ <div+ key={i}+ style={{+ position: "absolute",+ left: px - size / 2,+ top: py - size / 2,+ width: size,+ height: size * 0.6,+ background: color,+ borderRadius: 2,+ opacity,+ transform: `rotate(${rot}deg)`,+ willChange: "transform",+ }}+ />+ );+ })}+ </div>+ );+}diff --git a/registry/remocn/pricing-tier-focus/config.ts b/registry/remocn/pricing-tier-focus/config.tsnew file mode 100644index 00000000..038d9c42--- /dev/null+++ b/registry/remocn/pricing-tier-focus/config.ts@@ -0,0 +1,23 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const pricingTierFocusConfig: ComponentConfig = {+ componentName: "PricingTierFocus",+ importPath: "@/components/remocn/pricing-tier-focus",+ controls: {+ focusedTier: {+ type: "select",+ default: "1",+ options: ["0", "1", "2"],+ label: "Focused tier",+ },+ accentColor: {+ type: "color",+ default: "#22c55e",+ label: "Accent color",+ },+ },+ durationInFrames: 180,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/pricing-tier-focus/index.tsx b/registry/remocn/pricing-tier-focus/index.tsxnew file mode 100644index 00000000..479bd149--- /dev/null+++ b/registry/remocn/pricing-tier-focus/index.tsx@@ -0,0 +1,272 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface PricingTierFocusProps {+ focusedTier?: 0 | 1 | 2 | "0" | "1" | "2";+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++interface Tier {+ name: string;+ price: string;+ period: string;+ features: string[];+ cta: string;+}++const TIERS: Tier[] = [+ {+ name: "Free",+ price: "$0",+ period: "/mo",+ features: ["1 project", "Community support", "1 GB storage"],+ cta: "Get started",+ },+ {+ name: "Pro",+ price: "$24",+ period: "/mo",+ features: [+ "Unlimited projects",+ "Priority support",+ "100 GB storage",+ "Advanced analytics",+ ],+ cta: "Buy Pro",+ },+ {+ name: "Enterprise",+ price: "$99",+ period: "/mo",+ features: ["SSO & SAML", "Dedicated manager", "Unlimited storage"],+ cta: "Contact sales",+ },+];++export function PricingTierFocus({+ focusedTier = 1,+ accentColor = "#22c55e",+ speed = 1,+ className,+}: PricingTierFocusProps) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const focusedIdx = Number(focusedTier);+ const focusStart = 30;++ const focusProgress = spring({+ frame: frame - focusStart,+ fps,+ config: { mass: 1, damping: 18, stiffness: 90 },+ durationInFrames: 50,+ });++ const focusScale = interpolate(focusProgress, [0, 1], [1, 1.05]);+ const focusLift = interpolate(focusProgress, [0, 1], [0, -20]);+ const sideBrightness = interpolate(focusProgress, [0, 1], [1, 0.4]);+ const sideBlur = interpolate(focusProgress, [0, 1], [0, 4]);+ const sideScale = interpolate(focusProgress, [0, 1], [1, 0.95]);++ // Shimmer on Pro CTA — runs around frame 90+ const shimmerStart = 90;+ const shimmerPos = interpolate(+ frame,+ [shimmerStart, shimmerStart + 40],+ [-150, 250],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ background: "#0a0a0a",+ fontFamily: FONT_FAMILY,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ padding: 60,+ gap: 28,+ }}+ >+ {TIERS.map((tier, i) => {+ const isFocused = i === focusedIdx;+ const scale = isFocused ? focusScale : sideScale;+ const lift = isFocused ? focusLift : 0;+ const brightness = isFocused ? 1 : sideBrightness;+ const blurPx = isFocused ? 0 : sideBlur;+ const z = isFocused ? 10 : 1;+ const shadow = isFocused+ ? `0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px ${accentColor}55`+ : "0 8px 24px rgba(0,0,0,0.4)";++ return (+ <div+ key={tier.name}+ style={{+ position: "relative",+ flex: "1 1 0",+ maxWidth: 320,+ minHeight: 460,+ padding: 32,+ borderRadius: 20,+ background: "linear-gradient(180deg, #161616 0%, #0e0e0e 100%)",+ border: "1px solid rgba(255,255,255,0.08)",+ boxShadow: shadow,+ transform: `translateY(${lift}px) scale(${scale})`,+ filter: `brightness(${brightness}) blur(${blurPx}px)`,+ zIndex: z,+ display: "flex",+ flexDirection: "column",+ willChange: "transform, filter",+ }}+ >+ {isFocused && (+ <div+ style={{+ position: "absolute",+ top: 16,+ right: 16,+ padding: "4px 10px",+ borderRadius: 999,+ background: accentColor,+ color: "#0a0a0a",+ fontSize: 11,+ fontWeight: 700,+ letterSpacing: "0.04em",+ textTransform: "uppercase",+ }}+ >+ Popular+ </div>+ )}+ <div+ style={{+ fontSize: 14,+ fontWeight: 600,+ color: "rgba(255,255,255,0.6)",+ letterSpacing: "0.04em",+ textTransform: "uppercase",+ }}+ >+ {tier.name}+ </div>+ <div+ style={{+ marginTop: 12,+ display: "flex",+ alignItems: "baseline",+ gap: 4,+ }}+ >+ <div+ style={{+ fontSize: 56,+ fontWeight: 700,+ color: "white",+ letterSpacing: "-0.04em",+ lineHeight: 1,+ }}+ >+ {tier.price}+ </div>+ <div+ style={{+ fontSize: 16,+ color: "rgba(255,255,255,0.5)",+ fontWeight: 500,+ }}+ >+ {tier.period}+ </div>+ </div>+ <div+ style={{+ marginTop: 24,+ display: "flex",+ flexDirection: "column",+ gap: 12,+ flex: 1,+ }}+ >+ {tier.features.map((f) => (+ <div+ key={f}+ style={{+ display: "flex",+ alignItems: "center",+ gap: 10,+ fontSize: 14,+ color: "rgba(255,255,255,0.85)",+ }}+ >+ <div+ style={{+ width: 16,+ height: 16,+ borderRadius: 999,+ background: `${accentColor}22`,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: accentColor,+ fontSize: 11,+ fontWeight: 700,+ flexShrink: 0,+ }}+ >+ ✓+ </div>+ {f}+ </div>+ ))}+ </div>+ <div+ style={{+ marginTop: 24,+ position: "relative",+ height: 44,+ borderRadius: 12,+ background: isFocused ? accentColor : "rgba(255,255,255,0.08)",+ color: isFocused ? "#0a0a0a" : "white",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ fontSize: 14,+ fontWeight: 600,+ overflow: "hidden",+ border: isFocused ? "none" : "1px solid rgba(255,255,255,0.1)",+ }}+ >+ {tier.cta}+ {isFocused && (+ <div+ style={{+ position: "absolute",+ top: 0,+ left: 0,+ bottom: 0,+ width: 80,+ transform: `translateX(${shimmerPos}px) skewX(-20deg)`,+ background:+ "linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%)",+ pointerEvents: "none",+ }}+ />+ )}+ </div>+ </div>+ );+ })}+ </div>+ );+}diff --git a/registry/remocn/spatial-push/config.ts b/registry/remocn/spatial-push/config.tsnew file mode 100644index 00000000..048a29ee--- /dev/null+++ b/registry/remocn/spatial-push/config.ts@@ -0,0 +1,26 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const spatialPushConfig: ComponentConfig = {+ componentName: "SpatialPush",+ importPath: "@/components/remocn/spatial-push",+ controls: {+ direction: {+ type: "select",+ default: "up",+ options: ["up", "down", "left", "right"],+ label: "Direction",+ },+ transitionDuration: {+ type: "number",+ default: 30,+ min: 10,+ max: 80,+ step: 1,+ label: "Transition duration",+ },+ },+ durationInFrames: 90,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/spatial-push/index.tsx b/registry/remocn/spatial-push/index.tsxnew file mode 100644index 00000000..1c61c3eb--- /dev/null+++ b/registry/remocn/spatial-push/index.tsx@@ -0,0 +1,136 @@+"use client";++import type { ReactNode } from "react";+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface SpatialPushProps {+ from?: ReactNode;+ to?: ReactNode;+ direction?: "up" | "down" | "left" | "right";+ transitionStart?: number;+ transitionDuration?: number;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";++function DefaultPanel({ label, color }: { label: string; color: string }) {+ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ background: color,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "white",+ fontFamily: FONT_FAMILY,+ fontSize: 96,+ fontWeight: 700,+ letterSpacing: "-0.05em",+ }}+ >+ {label}+ </div>+ );+}++export function SpatialPush({+ from,+ to,+ direction = "up",+ transitionStart,+ transitionDuration = 30,+ speed = 1,+ className,+}: SpatialPushProps) {+ const frame = useCurrentFrame() * speed;+ const { fps, durationInFrames } = useVideoConfig();++ const start =+ typeof transitionStart === "number"+ ? transitionStart+ : Math.floor(durationInFrames * 0.4);++ const aProgress = interpolate(+ frame,+ [start, start + transitionDuration],+ [0, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ },+ );++ const aScale = interpolate(aProgress, [0, 1], [1, 0.92]);+ const aBrightness = interpolate(aProgress, [0, 1], [1, 0.5]);+ const aRadius = interpolate(aProgress, [0, 1], [0, 16]);++ const bSpring = spring({+ frame: frame - start,+ fps,+ config: { mass: 1.2, damping: 14, stiffness: 90 },+ durationInFrames: 40,+ });++ const bTransform =+ direction === "up"+ ? `translateY(${(1 - bSpring) * 100}%)`+ : direction === "down"+ ? `translateY(${(bSpring - 1) * 100}%)`+ : direction === "left"+ ? `translateX(${(1 - bSpring) * 100}%)`+ : `translateX(${(bSpring - 1) * 100}%)`;++ const bShadow =+ direction === "up"+ ? "0 -40px 100px rgba(0,0,0,0.8)"+ : direction === "down"+ ? "0 40px 100px rgba(0,0,0,0.8)"+ : direction === "left"+ ? "-40px 0 100px rgba(0,0,0,0.8)"+ : "40px 0 100px rgba(0,0,0,0.8)";++ const fromContent = from ?? <DefaultPanel label="Scene A" color="#0f172a" />;+ const toContent = to ?? <DefaultPanel label="Scene B" color="#22c55e" />;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "black",+ }}+ >+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: `scale(${aScale})`,+ filter: `brightness(${aBrightness})`,+ borderRadius: `${aRadius}px`,+ overflow: "hidden",+ willChange: "transform",+ }}+ >+ {fromContent}+ </div>+ <div+ style={{+ position: "absolute",+ inset: 0,+ transform: bTransform,+ boxShadow: bShadow,+ willChange: "transform",+ }}+ >+ {toContent}+ </div>+ </div>+ );+}diff --git a/registry/remocn/staggered-bento-grid/index.tsx b/registry/remocn/staggered-bento-grid/index.tsxindex 1c94ecca..e5c3bec8 100644--- a/registry/remocn/staggered-bento-grid/index.tsx+++ b/registry/remocn/staggered-bento-grid/index.tsx@@ -27,7 +27,9 @@ const DEFAULT_ITEMS: BentoItem[] = [{ title: "Animated", body: "Spring physics" },{ title: "Composable", body: "Drop-in blocks" },{ title: "Themed", body: "Tailwind ready" },+ { title: "Typed", body: "First-class TS" },{ title: "Open", body: "MIT licensed", span: 2 },+ { title: "Tiny", body: "Zero runtime cost" },];function Card({diff --git a/registry/remocn/terminal-to-browser-deploy/config.ts b/registry/remocn/terminal-to-browser-deploy/config.tsnew file mode 100644index 00000000..aac92d04--- /dev/null+++ b/registry/remocn/terminal-to-browser-deploy/config.ts@@ -0,0 +1,22 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const terminalToBrowserDeployConfig: ComponentConfig = {+ componentName: "TerminalToBrowserDeploy",+ importPath: "@/components/remocn/terminal-to-browser-deploy",+ controls: {+ siteUrl: {+ type: "text",+ default: "https://app.example.com",+ label: "Site URL",+ },+ accentColor: {+ type: "color",+ default: "#22c55e",+ label: "Accent color",+ },+ },+ durationInFrames: 240,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/terminal-to-browser-deploy/index.tsx b/registry/remocn/terminal-to-browser-deploy/index.tsxnew file mode 100644index 00000000..c3d6e69f--- /dev/null+++ b/registry/remocn/terminal-to-browser-deploy/index.tsx@@ -0,0 +1,421 @@+"use client";++import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++export interface TerminalToBrowserDeployProps {+ siteUrl?: string;+ accentColor?: string;+ speed?: number;+ className?: string;+}++const FONT_FAMILY =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";+const MONO_FAMILY =+ "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";++interface Line {+ text: string;+ start: number;+ type: "command" | "step" | "success";+}++function MacDots({ size = 12 }: { size?: number }) {+ return (+ <div style={{ display: "flex", gap: 8, alignItems: "center" }}>+ {["#ff5f57", "#febc2e", "#28c840"].map((c) => (+ <div+ key={c}+ style={{+ width: size,+ height: size,+ borderRadius: "50%",+ background: c,+ opacity: 0.85,+ }}+ />+ ))}+ </div>+ );+}++export function TerminalToBrowserDeploy({+ siteUrl = "https://app.example.com",+ accentColor = "#22c55e",+ speed = 1,+ className,+}: TerminalToBrowserDeployProps) {+ const frame = useCurrentFrame() * speed;+ const { fps, durationInFrames } = useVideoConfig();++ const lines: Line[] = [+ { text: "$ pnpm deploy", start: 10, type: "command" },+ { text: "→ Building project...", start: 35, type: "step" },+ { text: "→ Bundling assets...", start: 55, type: "step" },+ { text: "→ Optimizing images...", start: 75, type: "step" },+ { text: "→ Uploading...", start: 95, type: "step" },+ { text: `✓ Deployed to ${siteUrl}`, start: 120, type: "success" },+ ];++ // typewriter for each line+ const renderedLines = lines.map((line) => {+ const elapsed = frame - line.start;+ const charsPerFrame = 1.6;+ const visibleChars = Math.max(+ 0,+ Math.min(line.text.length, Math.floor(elapsed * charsPerFrame)),+ );+ return {+ ...line,+ visible: line.text.slice(0, visibleChars),+ isVisible: elapsed >= 0,+ };+ });++ // Terminal collapse start (after deploy line is fully typed)+ const collapseStart = 155;+ const collapseProgress = interpolate(+ frame,+ [collapseStart, collapseStart + 18],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },+ );+ const terminalScale = interpolate(collapseProgress, [0, 1], [1, 0.8]);+ const terminalBlur = interpolate(collapseProgress, [0, 1], [0, 10]);+ const terminalOpacity = interpolate(collapseProgress, [0, 1], [1, 0.35]);++ // Browser spring entry+ const browserSpring = spring({+ frame: frame - collapseStart - 4,+ fps,+ config: { mass: 1, damping: 14, stiffness: 110 },+ durationInFrames: 50,+ });+ const browserScale = browserSpring;+ const browserOpacity = interpolate(browserSpring, [0, 0.3, 1], [0, 1, 1], {+ extrapolateRight: "clamp",+ });++ // Cursor for typewriter effect on the active line+ let activeLine: (typeof renderedLines)[number] | undefined;+ for (let i = renderedLines.length - 1; i >= 0; i--) {+ const l = renderedLines[i];+ if (l.isVisible && l.visible.length < l.text.length) {+ activeLine = l;+ break;+ }+ }++ // approximate vertical position of URL line within terminal body+ // line height ~ 30, body padding-top 18, lines start at index 0..5+ const urlLineIndex = 5;+ const lineHeight = 30;+ const terminalBodyPaddingTop = 22;+ const urlLineCenterY =+ terminalBodyPaddingTop + urlLineIndex * lineHeight + 12;++ // Terminal box dimensions inside the 1280x720 frame+ const terminalWidth = 820;+ const terminalHeight = 360;+ const terminalLeft = (1280 - terminalWidth) / 2;+ const terminalTop = (720 - terminalHeight) / 2;+ const terminalHeaderHeight = 36;++ // The transform-origin for the browser window: the URL text inside the terminal body+ const originX = terminalLeft + 200;+ const originY = terminalTop + terminalHeaderHeight + urlLineCenterY;++ // Browser window dimensions+ const browserWidth = 980;+ const browserHeight = 560;++ return (+ <div+ className={className}+ style={{+ position: "absolute",+ inset: 0,+ overflow: "hidden",+ background: "#050505",+ fontFamily: FONT_FAMILY,+ }}+ >+ {/* subtle backdrop */}+ <div+ style={{+ position: "absolute",+ inset: 0,+ background:+ "radial-gradient(ellipse at center, #0f172a 0%, #050505 70%)",+ }}+ />++ {/* Terminal */}+ <div+ style={{+ position: "absolute",+ left: terminalLeft,+ top: terminalTop,+ width: terminalWidth,+ height: terminalHeight,+ borderRadius: 14,+ background: "rgba(15,15,17,0.96)",+ border: "1px solid rgba(255,255,255,0.08)",+ boxShadow:+ "0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)",+ overflow: "hidden",+ transform: `scale(${terminalScale})`,+ filter: `blur(${terminalBlur}px)`,+ opacity: terminalOpacity,+ transformOrigin: "center center",+ willChange: "transform, filter",+ }}+ >+ <div+ style={{+ height: terminalHeaderHeight,+ display: "flex",+ alignItems: "center",+ paddingLeft: 14,+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ background: "rgba(255,255,255,0.02)",+ }}+ >+ <MacDots />+ <div+ style={{+ flex: 1,+ textAlign: "center",+ color: "rgba(255,255,255,0.45)",+ fontFamily: MONO_FAMILY,+ fontSize: 12,+ marginRight: 56,+ }}+ >+ ~/project — zsh+ </div>+ </div>+ <div+ style={{+ padding: `${terminalBodyPaddingTop}px 22px`,+ fontFamily: MONO_FAMILY,+ fontSize: 16,+ lineHeight: `${lineHeight}px`,+ color: "rgba(255,255,255,0.85)",+ }}+ >+ {renderedLines.map((line, i) => {+ if (!line.isVisible) return null;+ const isActive = activeLine === line;+ const showCursor = isActive && Math.floor(frame / 12) % 2 === 0;+ const color =+ line.type === "success"+ ? accentColor+ : line.type === "command"+ ? "rgba(255,255,255,0.95)"+ : "rgba(255,255,255,0.7)";+ return (+ <div+ key={i}+ style={{+ color,+ whiteSpace: "pre",+ }}+ >+ {line.visible}+ {showCursor && (+ <span+ style={{+ display: "inline-block",+ width: 8,+ height: 18,+ background: "rgba(255,255,255,0.85)",+ verticalAlign: "text-bottom",+ marginLeft: 2,+ }}+ />+ )}+ </div>+ );+ })}+ </div>+ </div>++ {/* Browser window — emerges from URL line */}+ <div+ style={{+ position: "absolute",+ left: (1280 - browserWidth) / 2,+ top: (720 - browserHeight) / 2,+ width: browserWidth,+ height: browserHeight,+ borderRadius: 16,+ overflow: "hidden",+ background: "#0a0a0a",+ border: "1px solid rgba(255,255,255,0.1)",+ boxShadow:+ "0 50px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06)",+ transform: `scale(${browserScale})`,+ transformOrigin: `${((originX - (1280 - browserWidth) / 2) / browserWidth) * 100}% ${((originY - (720 - browserHeight) / 2) / browserHeight) * 100}%`,+ opacity: browserOpacity,+ willChange: "transform, opacity",+ }}+ >+ {/* Browser chrome */}+ <div+ style={{+ height: 44,+ display: "flex",+ alignItems: "center",+ gap: 14,+ paddingLeft: 16,+ paddingRight: 16,+ background: "rgba(20,20,22,0.95)",+ borderBottom: "1px solid rgba(255,255,255,0.06)",+ }}+ >+ <MacDots />+ <div+ style={{+ flex: 1,+ height: 26,+ borderRadius: 13,+ background: "rgba(255,255,255,0.06)",+ border: "1px solid rgba(255,255,255,0.08)",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: "rgba(255,255,255,0.7)",+ fontFamily: MONO_FAMILY,+ fontSize: 12,+ }}+ >+ {siteUrl}+ </div>+ <div style={{ width: 60 }} />+ </div>+ {/* Page */}+ <div+ style={{+ position: "absolute",+ inset: "44px 0 0 0",+ background:+ "linear-gradient(180deg, #0a0a0a 0%, #111118 60%, #0a0a0a 100%)",+ color: "white",+ padding: "60px 80px",+ display: "flex",+ flexDirection: "column",+ alignItems: "flex-start",+ gap: 24,+ }}+ >+ {/* nav */}+ <div+ style={{+ position: "absolute",+ top: 22,+ left: 80,+ right: 80,+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ fontFamily: FONT_FAMILY,+ fontSize: 14,+ color: "rgba(255,255,255,0.7)",+ }}+ >+ <div style={{ fontWeight: 600, color: "white" }}>Acme</div>+ <div style={{ display: "flex", gap: 24 }}>+ <span>Features</span>+ <span>Pricing</span>+ <span>Docs</span>+ </div>+ </div>++ {/* abstract shape */}+ <div+ style={{+ position: "absolute",+ right: 60,+ top: 120,+ width: 280,+ height: 280,+ borderRadius: "50%",+ background: `radial-gradient(circle at 30% 30%, ${accentColor}55, transparent 70%)`,+ filter: "blur(20px)",+ }}+ />+ <div+ style={{+ position: "absolute",+ right: 100,+ top: 160,+ width: 200,+ height: 200,+ borderRadius: 24,+ border: `1px solid ${accentColor}55`,+ transform: "rotate(12deg)",+ background:+ "linear-gradient(135deg, rgba(255,255,255,0.04), transparent)",+ }}+ />++ <div+ style={{+ fontFamily: FONT_FAMILY,+ fontSize: 14,+ color: accentColor,+ fontWeight: 500,+ marginTop: 50,+ }}+ >+ Now live+ </div>+ <div+ style={{+ fontFamily: FONT_FAMILY,+ fontSize: 72,+ fontWeight: 700,+ letterSpacing: "-0.04em",+ lineHeight: 1,+ maxWidth: 560,+ }}+ >+ Ship faster.+ </div>+ <div+ style={{+ fontFamily: FONT_FAMILY,+ fontSize: 18,+ color: "rgba(255,255,255,0.65)",+ maxWidth: 480,+ lineHeight: 1.5,+ }}+ >+ From commit to global edge in seconds. No config. No drama.+ </div>+ <button+ type="button"+ style={{+ marginTop: 8,+ padding: "14px 28px",+ borderRadius: 10,+ background: accentColor,+ color: "#0a0a0a",+ fontFamily: FONT_FAMILY,+ fontSize: 15,+ fontWeight: 600,+ border: "none",+ boxShadow: `0 10px 30px ${accentColor}40`,+ }}+ >+ Get started →+ </button>+ </div>+ </div>++ {/* prevent unused fps warning if duration computed */}+ <div style={{ display: "none" }}>{durationInFrames}</div>+ </div>+ );+}