Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: added slide/rise transition

kapishdima81b76c516ce8
diff --git a/bun.lock b/bun.lock
index a9eb4bed..2c256067 100644
--- a/bun.lock
+++ b/bun.lock
@@ -10,12 +10,12 @@
"@openpanel/nextjs": "^1.0.13",
"@openpanel/sdk": "^1.3.1",
"@paper-design/shaders-react": "0.0.76",
- "@remotion/bundler": "4.0.473",
- "@remotion/google-fonts": "4.0.473",
- "@remotion/paths": "4.0.473",
- "@remotion/player": "4.0.473",
- "@remotion/renderer": "4.0.473",
- "@remotion/transitions": "4.0.473",
+ "@remotion/bundler": "^4.0.499",
+ "@remotion/google-fonts": "^4.0.499",
+ "@remotion/paths": "^4.0.499",
+ "@remotion/player": "^4.0.499",
+ "@remotion/renderer": "^4.0.499",
+ "@remotion/transitions": "^4.0.499",
"@shadcn/react": "^0.1.0",
"@uidotdev/usehooks": "^2.4.1",
"class-variance-authority": "^0.7.1",
@@ -37,7 +37,7 @@
"react-dom": "19.2.4",
"react-resizable-panels": "^4.9.0",
"rehype-pretty-code": "^0.14.4",
- "remotion": "4.0.473",
+ "remotion": "^4.0.499",
"server-only": "^0.0.1",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
@@ -156,57 +156,57 @@
"@emnapi/wasi-threads": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w=="],
- "@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA=="],
+ "@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ=="],
- "@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-wqh0ByljabXLKHeWXYLqoJ5jKC4XBaw6Hk08OfMrCRd2nP2ZQ5eleDZC41XHyCNgktBGYMbqnrJKq/K/lzPMSQ=="],
+ "@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ=="],
- "@esbuild/android-arm64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-+WzIXQOSaGs33tLEgYPYe/yQHf0WTU0X42Jca3y8NWMbUVhp7rUnw+vAsRC/QiDrdD31IszMrZy+qwPOPjd+rw=="],
+ "@esbuild/android-arm64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg=="],
- "@esbuild/android-x64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "x64" }, "sha512-+VJggoaKhk2VNNqVL7f6S189UzShHC/mR9EE8rDdSkdpN0KflSwWY/gWjDrNxxisg8Fp1ZCD9jLMo4m0OUfeUA=="],
+ "@esbuild/android-x64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "x64" }, "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng=="],
- "@esbuild/darwin-arm64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-0T+A9WZm+bZ84nZBtk1ckYsOvyA3x7e2Acj1KdVfV4/2tdG4fzUp91YHx+GArWLtwqp77pBXVCPn2We7Letr0Q=="],
+ "@esbuild/darwin-arm64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q=="],
- "@esbuild/darwin-x64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-fyzLm/DLDl/84OCfp2f/XQ4flmORsjU7VKt8HLjvIXChJoFFOIL6pLJPH4Yhd1n1gGFF9mPwtlN5Wf82DZs+LQ=="],
+ "@esbuild/darwin-x64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ=="],
- "@esbuild/freebsd-arm64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-l9GeW5UZBT9k9brBYI+0WDffcRxgHQD8ShN2Ur4xWq/NFzUKm3k5lsH4PdaRgb2w7mI9u61nr2gI2mLI27Nh3Q=="],
+ "@esbuild/freebsd-arm64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw=="],
- "@esbuild/freebsd-x64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-BXoQai/A0wPO6Es3yFJ7APCiKGc1tdAEOgeTNy3SsB491S3aHn4S4r3e976eUnPdU+NbdtmBuLncYir2tMU9Nw=="],
+ "@esbuild/freebsd-x64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ=="],
- "@esbuild/linux-arm": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-CjaaREJagqJp7iTaNQjjidaNbCKYcd4IDkzbwwxtSvjI7NZm79qiHc8HqciMddQ6CKvJT6aBd8lO9kN/ZudLlw=="],
+ "@esbuild/linux-arm": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ=="],
- "@esbuild/linux-arm64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-RVyzfb3FWsGA55n6WY0MEIEPURL1FcbhFE6BffZEMEekfCzCIMtB5yyDcFnVbTnwk+CLAgTujmV/Lgvih56W+A=="],
+ "@esbuild/linux-arm64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g=="],
- "@esbuild/linux-ia32": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ia32" }, "sha512-KBnSTt1kxl9x70q+ydterVdl+Cn0H18ngRMRCEQfrbqdUuntQQ0LoMZv47uB97NljZFzY6HcfqEZ2SAyIUTQBQ=="],
+ "@esbuild/linux-ia32": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ia32" }, "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w=="],
- "@esbuild/linux-loong64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-zpSlUce1mnxzgBADvxKXX5sl8aYQHo2ezvMNI8I0lbblJtp8V4odlm3Yzlj7gPyt3T8ReksE6bK+pT3WD+aJRg=="],
+ "@esbuild/linux-loong64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg=="],
- "@esbuild/linux-mips64el": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-2jIfP6mmjkdmeTlsX/9vmdmhBmKADrWqN7zcdtHIeNSCH1SqIoNI63cYsjQR8J+wGa4Y5izRcSHSm8K3QWmk3w=="],
+ "@esbuild/linux-mips64el": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ=="],
- "@esbuild/linux-ppc64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-bc0FE9wWeC0WBm49IQMPSPILRocGTQt3j5KPCA8os6VprfuJ7KD+5PzESSrJ6GmPIPJK965ZJHTUlSA6GNYEhg=="],
+ "@esbuild/linux-ppc64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ=="],
- "@esbuild/linux-riscv64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-SQPZOwoTTT/HXFXQJG/vBX8sOFagGqvZyXcgLA3NhIqcBv1BJU1d46c0rGcrij2B56Z2rNiSLaZOYW5cUk7yLQ=="],
+ "@esbuild/linux-riscv64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ=="],
- "@esbuild/linux-s390x": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-SCfR0HN8CEEjnYnySJTd2cw0k9OHB/YFzt5zgJEwa+wL/T/raGWYMBqwDNAC6dqFKmJYZoQBRfHjgwLHGSrn3Q=="],
+ "@esbuild/linux-s390x": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag=="],
- "@esbuild/linux-x64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-us0dSb9iFxIi8srnpl931Nvs65it/Jd2a2K3qs7fz2WfGPHqzfzZTfec7oxZJRNPXPnNYZtanmRc4AL/JwVzHQ=="],
+ "@esbuild/linux-x64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA=="],
- "@esbuild/netbsd-arm64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-CR/RYotgtCKwtftMwJlUU7xCVNg3lMYZ0RzTmAHSfLCXw3NtZtNpswLEj/Kkf6kEL3Gw+BpOekRX0BYCtklhUw=="],
+ "@esbuild/netbsd-arm64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw=="],
- "@esbuild/netbsd-x64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "x64" }, "sha512-nU1yhmYutL+fQ71Kxnhg8uEOdC0pwEW9entHykTgEbna2pw2dkbFSMeqjjyHZoCmt8SBkOSvV+yNmm94aUrrqw=="],
+ "@esbuild/netbsd-x64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "x64" }, "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg=="],
- "@esbuild/openbsd-arm64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-cXb5vApOsRsxsEl4mcZ1XY3D4DzcoMxR/nnc4IyqYs0rTI8ZKmW6kyyg+11Z8yvgMfAEldKzP7AdP64HnSC/6g=="],
+ "@esbuild/openbsd-arm64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q=="],
- "@esbuild/openbsd-x64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "x64" }, "sha512-8wZM2qqtv9UP3mzy7HiGYNH/zjTA355mpeuA+859TyR+e+Tc08IHYpLJuMsfpDJwoLo1ikIJI8jC3GFjnRClzA=="],
+ "@esbuild/openbsd-x64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "x64" }, "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw=="],
- "@esbuild/openharmony-arm64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-FLGfyizszcef5C3YtoyQDACyg95+dndv79i2EekILBofh5wpCa1KuBqOWKrEHZg3zrL3t5ouE5jgr94vA+Wb2w=="],
+ "@esbuild/openharmony-arm64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg=="],
- "@esbuild/sunos-x64": ["@esbuild/[email protected]", "", { "os": "sunos", "cpu": "x64" }, "sha512-1ZgjUoEdHZZl/YlV76TSCz9Hqj9h9YmMGAgAPYd+q4SicWNX3G5GCyx9uhQWSLcbvPW8Ni7lj4gDa1T40akdlw=="],
+ "@esbuild/sunos-x64": ["@esbuild/[email protected]", "", { "os": "sunos", "cpu": "x64" }, "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ=="],
- "@esbuild/win32-arm64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-Q9StnDmQ/enxnpxCCLSg0oo4+34B9TdXpuyPeTedN/6+iXBJ4J+zwfQI28u/Jl40nOYAxGoNi7mFP40RUtkmUA=="],
+ "@esbuild/win32-arm64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA=="],
- "@esbuild/win32-ia32": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-zF3ag/gfiCe6U2iczcRzSYJKH1DCI+ByzSENHlM2FcDbEeo5Zd2C86Aq0tKUYAJJ1obRP84ymxIAksZUcdztHA=="],
+ "@esbuild/win32-ia32": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg=="],
- "@esbuild/win32-x64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-pEl1bO9mfAmIC+tW5btTmrKaujg3zGtUmWNdCw/xs70FBjwAL3o9OEKNHvNmnyylD6ubxUERiEhdsL0xBQ9efw=="],
+ "@esbuild/win32-x64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="],
"@floating-ui/core": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/utils": "^0.2.11" } }, "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ=="],
@@ -290,11 +290,11 @@
"@mdx-js/mdx": ["@mdx-js/[email protected]", "", { "dependencies": { "@types/estree": "^1.0.0", "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdx": "^2.0.0", "acorn": "^8.0.0", "collapse-white-space": "^2.0.0", "devlop": "^1.0.0", "estree-util-is-identifier-name": "^3.0.0", "estree-util-scope": "^1.0.0", "estree-walker": "^3.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "markdown-extensions": "^2.0.0", "recma-build-jsx": "^1.0.0", "recma-jsx": "^1.0.0", "recma-stringify": "^1.0.0", "rehype-recma": "^1.0.0", "remark-mdx": "^3.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "source-map": "^0.7.0", "unified": "^11.0.0", "unist-util-position-from-estree": "^2.0.0", "unist-util-stringify-position": "^4.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" } }, "sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ=="],
- "@mediabunny/aac-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-vLQw8cY7Me6pvTTMkMhOiH9UCuINzfTOETCeDxbGNeNfDqc/7QlxloUH1Ylp/Zz2ek0O8kc6YdygV2vWAPakrA=="],
+ "@mediabunny/aac-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-A5Se/LZd6RmYq/h36lBMSEsHvsyW8d0toR7FrAwpsFYbK+DVQYf90KiBT1Aw/mzLXx8/ypIOORJnd1sVZqOvJQ=="],
- "@mediabunny/flac-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-LfKbAMZVkxRS7PpEIVnWOY/l0KcHv+rjO7pYY3O0TPCZvbHWfrnQjn8JPacPIfuq6Yv7r4f8lhcl7yHSynoRkQ=="],
+ "@mediabunny/flac-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-4cfN03SbEoQaG+eBeYFUAb1R1ALaAHzf43dXFzQTr/oO5ueqzTgBoG3coKrIvBaAMU7Vv36mrBKLX8bvTppdAQ=="],
- "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-Bobi6AaQYEc7TWmPJ8Q0/hcUtBN7pLUC2qjoC7oZR4FcGqGztby6k7A1SWlmswoMOEIhYsOrgDaemrSDAC0QVQ=="],
+ "@mediabunny/mp3-encoder": ["@mediabunny/[email protected]", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-eBT/H30tTu8AmZXqZ5RTpJ9VmwVlwednajuOrrWp0GS6cbGXsGMQ60Qvr3ZMIE0QDiadlEzb8/ozR+doP+MC1g=="],
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/[email protected]", "", { "dependencies": { "@hono/node-server": "^1.19.9", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.2.1", "express-rate-limit": "^8.2.1", "hono": "^4.11.4", "jose": "^6.1.3", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.1" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1" }, "optionalPeers": ["@cfworker/json-schema"] }, "sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ=="],
@@ -422,79 +422,83 @@
"@radix-ui/rect": ["@radix-ui/[email protected]", "", {}, "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw=="],
- "@remotion/bundler": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/media-parser": "4.0.473", "@remotion/studio": "4.0.473", "@remotion/studio-shared": "4.0.473", "@remotion/timeline-utils": "4.0.473", "@rspack/core": "1.7.6", "@rspack/plugin-react-refresh": "1.6.1", "css-loader": "7.1.4", "esbuild": "0.28.0", "react-refresh": "0.18.0", "remotion": "4.0.473", "style-loader": "4.0.0", "webpack": "5.105.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-UOGKU3iSmU5mICCcW9qZx++sSBssjAZofX8UA3pbyKJIVvVfG+QznikA0fI4W+1/1l5zMyxd/fwMFbz8+q4u2A=="],
+ "@remotion/bundler": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/media-parser": "4.0.499", "@remotion/studio": "4.0.499", "@remotion/studio-shared": "4.0.499", "@remotion/timeline-utils": "4.0.499", "@rspack/core": "1.7.11", "@rspack/plugin-react-refresh": "1.6.1", "css-loader": "7.1.4", "esbuild": "0.28.1", "react-refresh": "0.18.0", "remotion": "4.0.499", "style-loader": "4.0.0", "webpack": "5.105.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-88C7WxlC9DSxEOSnJL/HV7Xl16OIKnEzl90BvIM083pNBA/laAEJvryaXmSQ3FuI5CSGuVA336YgboOWagqmAg=="],
- "@remotion/compositor-darwin-arm64": ["@remotion/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-cSKS6VPKpLlEs+W0TSgXbxzdHDFxj+ft1jeP/MhedtL3rcSDyjir8RTI8bqDgrcEF4km3Rcg0CxrGbYTKgUVVQ=="],
+ "@remotion/canvas-capture": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.50.8", "remotion": "4.0.499" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-S2Q5eqNnjkRmxm5FZMadI21bPuLyKa2+zRLh3c2EDjRS1C400rx19UCmG1Ne9W38ybInm/MohcLS3EkaNHZqrw=="],
- "@remotion/compositor-darwin-x64": ["@remotion/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-Sf0IHz/zXroP4UGZ0NkyVn0ICiOMeUj07i8nRoz0A95d4TDR3YKVThY4U16ElsaLSbHk3pMcobCxx1tscvtZYQ=="],
+ "@remotion/compositor-darwin-arm64": ["@remotion/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-7pBC1NwnzFFHRmCIx0DlRMb53SIwGb24Abx28f3wSdrgYVAU9A0Ema/Y+h0dZVGIwC3RO0iUQgs3h8ra7XVB6Q=="],
- "@remotion/compositor-linux-arm64-gnu": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-HeV247O9dwhSfXFYoA7Dd0zPmyn2grbrIhaYs2MJZxO6IHmEUk0gm9/drWyjDHy4e2WCg98uSlcycNOmWtG5ng=="],
+ "@remotion/compositor-darwin-x64": ["@remotion/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-gFGYRH7CRIqhOuxQDGnIoHCEMhUeu7zJWuA/fy0hPPnWayDMsWChfY9+yGHsWGBePbNdXEM2HBcuC4RxDLORtQ=="],
- "@remotion/compositor-linux-arm64-musl": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-7EGy2MtQch3yLzwxvWncz/3rmXOWQkWigCDL37I90aHhlf8JgrMZXo8dUtIoD0LP/zHWtFNBcJmgg9Ej+bHshA=="],
+ "@remotion/compositor-linux-arm64-gnu": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-aLSwT8857xWuPaYFDSOVPSVp6efXnPYS8MEUdKQdCoqXNpgufugCAGL/xzagPo2A3wD+Ocuzj6+bcsBna3ivMg=="],
- "@remotion/compositor-linux-x64-gnu": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-X5Gzod9Q8sTtzjc+hIYKw6PMaB3tY0ADx68j2z+Zm8nJanmkzLZEDyZvlMexmE4nkb7IdOkHzYGm9NpynbMH2A=="],
+ "@remotion/compositor-linux-arm64-musl": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-bC3/NocB8FUiieUBZtE2A19sr34cLDHo5r0Q1aUevsI/RpJkq9LYJzmifMgO+8OxVxv4nxg8cSryHrDpEsylZQ=="],
- "@remotion/compositor-linux-x64-musl": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-REyhvrjGYfFTxGaaRDP31zANM744JI7pKXCgTqXHZBCe8mCZjxZCxmwt9pNL2lJsQ+qLr9zai488Bbj/PUuB6g=="],
+ "@remotion/compositor-linux-x64-gnu": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-I9aOX1tpdSwi+jwYcZjg0V8jnp0eVKBWe6iaD3V85USrxxFu4LdvHwJ+Lh6kWC7L1mlrlrac9AGkZm70AoBvWQ=="],
- "@remotion/compositor-win32-x64-msvc": ["@remotion/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-J69HIENHpH1m8I85kTe111viqB5AGgKJdTCSKp4mGBxM95IL4nydzrYxVd91BvWjanQfVVq1C3voaF8YLwkT7A=="],
+ "@remotion/compositor-linux-x64-musl": ["@remotion/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-pDBDfyuaVBueuIqd88SSdCerSzixm3toZZfLbS4ACxLUqtGJshRcmuFeWiaUALSbtwa4KIPMPzgPGCu5cmnuRA=="],
- "@remotion/google-fonts": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.473" } }, "sha512-KmTjSpy43OKCLZaGC55fYU2pC+PmYOdR1l5RsJUMK9F5EK7qj8kkCrW3IHzbnJyuJIqu2n1bpkqZA74pH1+30Q=="],
+ "@remotion/compositor-win32-x64-msvc": ["@remotion/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-sOYpHz3LmW7u0JR3qg3FA2fTP07pEzY6lhKutwTUDAoQ7MJaHdRYBU7DGf/dpBbaGugQ36hi9GKh0jJLbt1aWw=="],
- "@remotion/licensing": ["@remotion/[email protected]", "", {}, "sha512-BBw6SuEWuUD/lYXbLKEC0TTUzW7aLsO0X72pG38W1dOUyfU2KZYYfWGZkd+ermZTWWJ8cW+mevIwloUGk7FRaQ=="],
+ "@remotion/drag-and-drop": ["@remotion/[email protected]", "", {}, "sha512-0BBcRlRvkfbTo/ZhLLCOlaXvtFGO4Am6M8YGemEjh/HS7wkIkftpWlLDEEJwNeAlWEa11/EYpgWxFGF3huYOBQ=="],
- "@remotion/media-parser": ["@remotion/[email protected]", "", {}, "sha512-jajhgumDSdnM/CUb3lZgae7D2pfioz9rczc6tLaRNP28IG3d2foQ0jP8INfCdMsOszCD0wKw4RHe0m5GKRxhTg=="],
+ "@remotion/google-fonts": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.499" } }, "sha512-CSCbNvNGLUFlZZiwQlz5FljLBxN5jKWbNU5KLekM4H/8lXsRjCUnd+yMdUaTGHZFFTwTzB/TPkmZPIhr++foMg=="],
- "@remotion/media-utils": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.45.0", "remotion": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-f4Ip10pkawlUBTunE++DZ6J/TrPtKalkxoTx7qQGBlhz3BcWRK7AbEGouZtcAmkLFVxq80hpH/1cBFOMF6FVfA=="],
+ "@remotion/licensing": ["@remotion/[email protected]", "", {}, "sha512-dKjaYAJsxCUXDvAjJW8bHIUe+dYAXEcq2M0RVrqdS1CEUZPUQXhzIbYILX+slcVb5c8/DD5t+edm7d2VSY81Tg=="],
- "@remotion/paths": ["@remotion/[email protected]", "", {}, "sha512-K30GZKW4/s9eKAWW2Zy0Q3IZIpNom+fZTgEmUaai5FX/T4jLIWAws1o1fa1b/ee32cxj9uH5SD0DlqTHZrjO4A=="],
+ "@remotion/media-parser": ["@remotion/[email protected]", "", {}, "sha512-3RX9OFko0gW1ixi87eoYx2FLOndVb4eo/KONIiq0yKwho1IMYAq8r8tIkqmSksVG0RlWqW4FwXa9kp9lhiqfDA=="],
- "@remotion/player": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-giJ8cIQEdVxftpcX4m+9jWYCbIvpcdKRGVUc3ownxYEsJ30WUSP2+TuQ6aqqLXFAfwhY/SdBVLfopylh3BgMXA=="],
+ "@remotion/media-utils": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.50.8", "remotion": "4.0.499" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-XqCX58ZwI80YM9CqzasKYeCVGRaINMhRvaCQ4H953PD+pRkTxk3bFcx97x4oj0Y0KjGDWnBvzsa5Tt0Jx7JUBA=="],
- "@remotion/renderer": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/licensing": "4.0.473", "@remotion/streaming": "4.0.473", "execa": "5.1.1", "remotion": "4.0.473", "source-map": "0.8.0-beta.0", "ws": "8.20.1" }, "optionalDependencies": { "@remotion/compositor-darwin-arm64": "4.0.473", "@remotion/compositor-darwin-x64": "4.0.473", "@remotion/compositor-linux-arm64-gnu": "4.0.473", "@remotion/compositor-linux-arm64-musl": "4.0.473", "@remotion/compositor-linux-x64-gnu": "4.0.473", "@remotion/compositor-linux-x64-musl": "4.0.473", "@remotion/compositor-win32-x64-msvc": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-WOOmT38O3ax78oDIE75FnsDi8eUMBKOdnqiXU3NeArNoA/xQZv7yDUgV3e1SxFaCHS7IbWHIATXUfVgS8TIXBA=="],
+ "@remotion/paths": ["@remotion/[email protected]", "", {}, "sha512-RVUzWEEJZui00REAeSDRHeAvtkRbtseR0K1lE08wzAilsIiMr0IYhpFS9I2wsQdC58NG+1d+sD58gzG7KDCZvQ=="],
- "@remotion/shapes": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/paths": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-UbAtC+oTjREB9jl6vJ6/C0U3vXd1gyTNLz/695OwevINg5yS5+Bx2LrKKnsJLJ5VMiC3W1sZfTOJ7OcOlA+FSQ=="],
+ "@remotion/player": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.499" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-3qEjNUj0KamSgWLXDhXnHdVMIx0EBsdr7XM5+QGldj1EiZH54vXVKJsWJj6SYfPbaskfEWI0wjKGGh0ml3vJrw=="],
- "@remotion/streaming": ["@remotion/[email protected]", "", {}, "sha512-JRXgqnzHbcaZU+LH3VK9KRNBHd7rhNnf34C3uUeFYFChRQhnmHWTSo7p/SDUhCpVh+hIHsS52xJz9JPwwy5gUw=="],
+ "@remotion/renderer": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/licensing": "4.0.499", "@remotion/streaming": "4.0.499", "execa": "5.1.1", "remotion": "4.0.499", "source-map": "0.8.0-beta.0", "ws": "8.21.0" }, "optionalDependencies": { "@remotion/compositor-darwin-arm64": "4.0.499", "@remotion/compositor-darwin-x64": "4.0.499", "@remotion/compositor-linux-arm64-gnu": "4.0.499", "@remotion/compositor-linux-arm64-musl": "4.0.499", "@remotion/compositor-linux-x64-gnu": "4.0.499", "@remotion/compositor-linux-x64-musl": "4.0.499", "@remotion/compositor-win32-x64-msvc": "4.0.499" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-KqzYTBIYVWuqKd5tfYaBq9CWKRYZJq6/PL5++/20dQaTSHQQEMTpyyGrOs0RsyCiy8Ofr8eYB765mIeIxulS4Q=="],
- "@remotion/studio": ["@remotion/[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.31", "@remotion/media-utils": "4.0.473", "@remotion/player": "4.0.473", "@remotion/renderer": "4.0.473", "@remotion/studio-shared": "4.0.473", "@remotion/timeline-utils": "4.0.473", "@remotion/web-renderer": "4.0.473", "@remotion/zod-types": "4.0.473", "mediabunny": "1.45.0", "memfs": "3.4.3", "open": "8.4.2", "remotion": "4.0.473", "semver": "7.5.3", "zod": "4.3.6" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-d7FnevW0TGhoJovdLs/Mi8kmthj800QL5gSxDXlpoznymeT41CdRRgiQoXGM2f43r7WyoX0bvE2i9AxIogJoWg=="],
+ "@remotion/shapes": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/paths": "4.0.499", "remotion": "4.0.499" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-BiPPosvImIyzmWU7a0+9Xg00MIHrGwRO4NvYf/KKQEeLJVzTbKrZeVnhLRla9ihsF2cyz/k2Vf/Fgpnpadmpew=="],
- "@remotion/studio-shared": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.473" } }, "sha512-nOONVvgEMw0lL7oPobmXAguvKVgVnV6MAwOfB5ZvjJrkLorFFePZ8ryhoftpRVrn3hGU3ZgQM2Zbb2eiaQPycg=="],
+ "@remotion/streaming": ["@remotion/[email protected]", "", {}, "sha512-PYIZc7KNJyG+qvKYzftrPbfVJw5B31F+6Uage0Qf54c+cpa69Us/kFK8quNbd/zZcwxvGvCR+fCkn41TJ53FfQ=="],
- "@remotion/timeline-utils": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.45.0" } }, "sha512-DrEvnOY97lBlMVUJkU997Ip70Z1hkggXVoiZZk7udTIpkrbhEfI4GrdOd/HOMCTtniepkGH8kXmk6Aqv99Q0uA=="],
+ "@remotion/studio": ["@remotion/[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.31", "@remotion/canvas-capture": "4.0.499", "@remotion/drag-and-drop": "4.0.499", "@remotion/media-utils": "4.0.499", "@remotion/player": "4.0.499", "@remotion/renderer": "4.0.499", "@remotion/studio-shared": "4.0.499", "@remotion/timeline-utils": "4.0.499", "@remotion/web-renderer": "4.0.499", "@remotion/zod-types": "4.0.499", "mediabunny": "1.50.8", "memfs": "3.4.3", "open": "8.4.2", "remotion": "4.0.499", "semver": "7.5.3", "zod": "4.4.3" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-oW5hvpwZmstFY9zQZuqAjoAUfujoZna2T9Eq636RwhzDqTaCa3zvV8ojrPfAgFOl8XEFwHLK+UPxAijzOXVYMg=="],
- "@remotion/transitions": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/paths": "4.0.473", "@remotion/shapes": "4.0.473", "remotion": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-n7CGFGZCsSgRxbKAjfU2bpUqDz01vaDkdQzu6VOtpcqYN01NMR4lkZZzQNcsBky4H1+CZ3Oy+ubom4Qc5VH9tA=="],
+ "@remotion/studio-shared": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/drag-and-drop": "4.0.499", "remotion": "4.0.499" } }, "sha512-wGMhqAk8t4UtFneYY8mkUQEWFM95ACQ0Tf87Oh1rPV3RVSN49irQLcBK1eQ8kDM9I9G3oFGQdMYS/6BA8dHnWw=="],
- "@remotion/web-renderer": ["@remotion/[email protected]", "", { "dependencies": { "@mediabunny/aac-encoder": "1.45.0", "@mediabunny/flac-encoder": "1.45.0", "@mediabunny/mp3-encoder": "1.45.0", "@remotion/licensing": "4.0.473", "mediabunny": "1.45.0", "remotion": "4.0.473" }, "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" } }, "sha512-WTyFdBdqsmmqrMpW1k6Uhcze2z8tZvKc15BYu1FwmDgdQ1QeaAMgEsyp5qRLzKZ/000XafK4q8bUjdEQoudc8A=="],
+ "@remotion/timeline-utils": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.50.8" } }, "sha512-1ml1W9ia/Aaqauqjj7XRMbY3IMIybzZKZJ7C5tm+Dm8lq2QmCH5QQHi84ToLLVOF8T6m/n+wIZXyhUsNQLh94g=="],
- "@remotion/zod-types": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.473" }, "peerDependencies": { "zod": "4.3.6" } }, "sha512-hAUla1gXVe6afzoRACiDp2L58pgGOfS5pxAG9wPHLv2Br16K6K/ToGZYLwxwugUxmZdMNPGOCkR3pWK5x7O5HQ=="],
+ "@remotion/transitions": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/paths": "4.0.499", "@remotion/shapes": "4.0.499", "remotion": "4.0.499" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-+k7b/DgDOGrGUXCSTdakgBHowiZ/m5jUrflp3MaWEoW/SrKtgAodrzjABL7CGUB5YJ+InJdowFXm6HX0IGkvlQ=="],
+
+ "@remotion/web-renderer": ["@remotion/[email protected]", "", { "dependencies": { "@mediabunny/aac-encoder": "1.50.8", "@mediabunny/flac-encoder": "1.50.8", "@mediabunny/mp3-encoder": "1.50.8", "@remotion/licensing": "4.0.499", "mediabunny": "1.50.8", "remotion": "4.0.499" }, "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" } }, "sha512-wjxJ1wLrzLxO0nTu/1IdRVd3J1kipzatkfkaXwre8gdEwVTg10XD33niufGuD35ykCH4LGOCmkMlhRcXopJ1lA=="],
+
+ "@remotion/zod-types": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.499" } }, "sha512-UyKMhwnS9T6NgHUznscZ4+pPkvjEIqfd6gEVqW6JkM3C7OcZfOBRcF7FWZZq96eyTIxJHLxCUDdlAZr8JcRlTA=="],
"@rrweb/types": ["@rrweb/[email protected]", "", {}, "sha512-RbnDgKxA/odwB1R4gF7eUUj+rdSrq6ROQJsnMw7MIsGzlbSYvJeZN8YY4XqU0G6sKJvXI6bSzk7w/G94jNwzhw=="],
"@rrweb/utils": ["@rrweb/[email protected]", "", {}, "sha512-MTQOmhPRe39C0fYaCnnVYOufQsyGzwNXpUStKiyFSfGLUJrzuwhbRoUAKR5w6W2j5XuA0bIz3ZDIBztkquOhLw=="],
- "@rspack/binding": ["@rspack/[email protected]", "", { "optionalDependencies": { "@rspack/binding-darwin-arm64": "1.7.6", "@rspack/binding-darwin-x64": "1.7.6", "@rspack/binding-linux-arm64-gnu": "1.7.6", "@rspack/binding-linux-arm64-musl": "1.7.6", "@rspack/binding-linux-x64-gnu": "1.7.6", "@rspack/binding-linux-x64-musl": "1.7.6", "@rspack/binding-wasm32-wasi": "1.7.6", "@rspack/binding-win32-arm64-msvc": "1.7.6", "@rspack/binding-win32-ia32-msvc": "1.7.6", "@rspack/binding-win32-x64-msvc": "1.7.6" } }, "sha512-/NrEcfo8Gx22hLGysanrV6gHMuqZSxToSci/3M4kzEQtF5cPjfOv5pqeLK/+B6cr56ul/OmE96cCdWcXeVnFjQ=="],
+ "@rspack/binding": ["@rspack/[email protected]", "", { "optionalDependencies": { "@rspack/binding-darwin-arm64": "1.7.11", "@rspack/binding-darwin-x64": "1.7.11", "@rspack/binding-linux-arm64-gnu": "1.7.11", "@rspack/binding-linux-arm64-musl": "1.7.11", "@rspack/binding-linux-x64-gnu": "1.7.11", "@rspack/binding-linux-x64-musl": "1.7.11", "@rspack/binding-wasm32-wasi": "1.7.11", "@rspack/binding-win32-arm64-msvc": "1.7.11", "@rspack/binding-win32-ia32-msvc": "1.7.11", "@rspack/binding-win32-x64-msvc": "1.7.11" } }, "sha512-2MGdy2s2HimsDT444Bp5XnALzNRxuBNc7y0JzyuqKbHBywd4x2NeXyhWXXoxufaCFu5PBc9Qq9jyfjW2Aeh06Q=="],
- "@rspack/binding-darwin-arm64": ["@rspack/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-NZ9AWtB1COLUX1tA9HQQvWpTy07NSFfKBU8A6ylWd5KH8AePZztpNgLLAVPTuNO4CZXYpwcoclf8jG/luJcQdQ=="],
+ "@rspack/binding-darwin-arm64": ["@rspack/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig=="],
- "@rspack/binding-darwin-x64": ["@rspack/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-J2g6xk8ZS7uc024dNTGTHxoFzFovAZIRixUG7PiciLKTMP78svbSSWrmW6N8oAsAkzYfJWwQpVgWfFNRHvYxSw=="],
+ "@rspack/binding-darwin-x64": ["@rspack/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA=="],
- "@rspack/binding-linux-arm64-gnu": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-eQfcsaxhFrv5FmtaA7+O1F9/2yFDNIoPZzV/ZvqvFz5bBXVc4FAm/1fVpBg8Po/kX1h0chBc7Xkpry3cabFW8w=="],
+ "@rspack/binding-linux-arm64-gnu": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA=="],
- "@rspack/binding-linux-arm64-musl": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-DfQXKiyPIl7i1yECHy4eAkSmlUzzsSAbOjgMuKn7pudsWf483jg0UUYutNgXSlBjc/QSUp7906Cg8oty9OfwPA=="],
+ "@rspack/binding-linux-arm64-musl": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw=="],
- "@rspack/binding-linux-x64-gnu": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-NdA+2X3lk2GGrMMnTGyYTzM3pn+zNjaqXqlgKmFBXvjfZqzSsKq3pdD1KHZCd5QHN+Fwvoszj0JFsquEVhE1og=="],
+ "@rspack/binding-linux-x64-gnu": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ=="],
- "@rspack/binding-linux-x64-musl": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-rEy6MHKob02t/77YNgr6dREyJ0e0tv1X6Xsg8Z5E7rPXead06zefUbfazj4RELYySWnM38ovZyJAkPx/gOn3VA=="],
+ "@rspack/binding-linux-x64-musl": ["@rspack/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg=="],
- "@rspack/binding-wasm32-wasi": ["@rspack/[email protected]", "", { "dependencies": { "@napi-rs/wasm-runtime": "1.0.7" }, "cpu": "none" }, "sha512-YupOrz0daSG+YBbCIgpDgzfMM38YpChv+afZpaxx5Ml7xPeAZIIdgWmLHnQ2rts73N2M1NspAiBwV00Xx0N4Vg=="],
+ "@rspack/binding-wasm32-wasi": ["@rspack/[email protected]", "", { "dependencies": { "@napi-rs/wasm-runtime": "1.0.7" }, "cpu": "none" }, "sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ=="],
- "@rspack/binding-win32-arm64-msvc": ["@rspack/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-INj7aVXjBvlZ84kEhSK4kJ484ub0i+BzgnjDWOWM1K+eFYDZjLdAsQSS3fGGXwVc3qKbPIssFfnftATDMTEJHQ=="],
+ "@rspack/binding-win32-arm64-msvc": ["@rspack/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA=="],
- "@rspack/binding-win32-ia32-msvc": ["@rspack/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-lXGvC+z67UMcw58In12h8zCa9IyYRmuptUBMItQJzu+M278aMuD1nETyGLL7e4+OZ2lvrnnBIcjXN1hfw2yRzw=="],
+ "@rspack/binding-win32-ia32-msvc": ["@rspack/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw=="],
- "@rspack/binding-win32-x64-msvc": ["@rspack/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-zeUxEc0ZaPpmaYlCeWcjSJUPuRRySiSHN23oJ2Xyw0jsQ01Qm4OScPdr0RhEOFuK/UE+ANyRtDo4zJsY52Hadw=="],
+ "@rspack/binding-win32-x64-msvc": ["@rspack/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q=="],
- "@rspack/core": ["@rspack/[email protected]", "", { "dependencies": { "@module-federation/runtime-tools": "0.22.0", "@rspack/binding": "1.7.6", "@rspack/lite-tapable": "1.1.0" }, "peerDependencies": { "@swc/helpers": ">=0.5.1" }, "optionalPeers": ["@swc/helpers"] }, "sha512-Iax6UhrfZqJajA778c1d5DBFbSIqPOSrI34kpNIiNpWd8Jq7mFIa+Z60SQb5ZQDZuUxcCZikjz5BxinFjTkg7Q=="],
+ "@rspack/core": ["@rspack/[email protected]", "", { "dependencies": { "@module-federation/runtime-tools": "0.22.0", "@rspack/binding": "1.7.11", "@rspack/lite-tapable": "1.1.0" }, "peerDependencies": { "@swc/helpers": ">=0.5.1" }, "optionalPeers": ["@swc/helpers"] }, "sha512-rsD9b+Khmot5DwCMiB3cqTQo53ioPG3M/A7BySu8+0+RS7GCxKm+Z+mtsjtG/vsu4Tn2tcqCdZtA3pgLoJB+ew=="],
"@rspack/lite-tapable": ["@rspack/[email protected]", "", {}, "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw=="],
@@ -852,7 +856,7 @@
"esast-util-from-js": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "acorn": "^8.0.0", "esast-util-from-estree": "^2.0.0", "vfile-message": "^4.0.0" } }, "sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw=="],
- "esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.0", "@esbuild/android-arm": "0.28.0", "@esbuild/android-arm64": "0.28.0", "@esbuild/android-x64": "0.28.0", "@esbuild/darwin-arm64": "0.28.0", "@esbuild/darwin-x64": "0.28.0", "@esbuild/freebsd-arm64": "0.28.0", "@esbuild/freebsd-x64": "0.28.0", "@esbuild/linux-arm": "0.28.0", "@esbuild/linux-arm64": "0.28.0", "@esbuild/linux-ia32": "0.28.0", "@esbuild/linux-loong64": "0.28.0", "@esbuild/linux-mips64el": "0.28.0", "@esbuild/linux-ppc64": "0.28.0", "@esbuild/linux-riscv64": "0.28.0", "@esbuild/linux-s390x": "0.28.0", "@esbuild/linux-x64": "0.28.0", "@esbuild/netbsd-arm64": "0.28.0", "@esbuild/netbsd-x64": "0.28.0", "@esbuild/openbsd-arm64": "0.28.0", "@esbuild/openbsd-x64": "0.28.0", "@esbuild/openharmony-arm64": "0.28.0", "@esbuild/sunos-x64": "0.28.0", "@esbuild/win32-arm64": "0.28.0", "@esbuild/win32-ia32": "0.28.0", "@esbuild/win32-x64": "0.28.0" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw=="],
+ "esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.1", "@esbuild/android-arm": "0.28.1", "@esbuild/android-arm64": "0.28.1", "@esbuild/android-x64": "0.28.1", "@esbuild/darwin-arm64": "0.28.1", "@esbuild/darwin-x64": "0.28.1", "@esbuild/freebsd-arm64": "0.28.1", "@esbuild/freebsd-x64": "0.28.1", "@esbuild/linux-arm": "0.28.1", "@esbuild/linux-arm64": "0.28.1", "@esbuild/linux-ia32": "0.28.1", "@esbuild/linux-loong64": "0.28.1", "@esbuild/linux-mips64el": "0.28.1", "@esbuild/linux-ppc64": "0.28.1", "@esbuild/linux-riscv64": "0.28.1", "@esbuild/linux-s390x": "0.28.1", "@esbuild/linux-x64": "0.28.1", "@esbuild/netbsd-arm64": "0.28.1", "@esbuild/netbsd-x64": "0.28.1", "@esbuild/openbsd-arm64": "0.28.1", "@esbuild/openbsd-x64": "0.28.1", "@esbuild/openharmony-arm64": "0.28.1", "@esbuild/sunos-x64": "0.28.1", "@esbuild/win32-arm64": "0.28.1", "@esbuild/win32-ia32": "0.28.1", "@esbuild/win32-x64": "0.28.1" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw=="],
"escalade": ["[email protected]", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],
@@ -1168,7 +1172,7 @@
"media-typer": ["[email protected]", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="],
- "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-oK3sMMYbucoF6LUX62L/2M9d+p9ve6KDQgL87kNfhsB0/XmTe9iRLUcgQgg9Gpgvi8Sb96zYfOUL6i17y0bdNg=="],
+ "mediabunny": ["[email protected]", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-LgykLyQzhdpo0V2yw3UXmOpj+b4JAGdpHBwsPE6kjSt8Za0d1VllD+FV7EGHBcdV4+oHUAo+yrqbVAWxNSDCPQ=="],
"memfs": ["[email protected]", "", { "dependencies": { "fs-monkey": "1.0.3" } }, "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg=="],
@@ -1430,7 +1434,7 @@
"remark-stringify": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-to-markdown": "^2.0.0", "unified": "^11.0.0" } }, "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw=="],
- "remotion": ["[email protected]", "", { "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-Li2u4cVxlbxWgxQPn5oBpUlmNKYFpLUmpE9OHMP7QurvOMfvVK1tcC7utxVEwYFZf18tXwqIPBwmuFvdzMu+YA=="],
+ "remotion": ["[email protected]", "", { "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-QX5B1XDFBQpr8mYUBqhgCrH0cQJmqfI7zA46k9CsZhri/H9quXObYQBgeNDcxUhoulVvOOjVQqp5d0RAwB94HA=="],
"require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
@@ -1638,7 +1642,7 @@
"wrappy": ["[email protected]", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="],
- "ws": ["[email protected]", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w=="],
+ "ws": ["[email protected]", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g=="],
"wsl-utils": ["[email protected]", "", { "dependencies": { "is-wsl": "^3.1.0", "powershell-utils": "^0.1.0" } }, "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg=="],
@@ -1678,6 +1682,8 @@
"@remotion/studio/semver": ["[email protected]", "", { "dependencies": { "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" } }, "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ=="],
+ "@remotion/studio/zod": ["[email protected]", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="],
+
"@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/[email protected]", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.1", "tslib": "^2.4.0" }, "bundled": true }, "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA=="],
"@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw=="],
diff --git a/components/docs/examples/slide-swap-example.tsx b/components/docs/examples/slide-swap-example.tsx
new file mode 100644
index 00000000..b5c243c2
--- /dev/null
+++ b/components/docs/examples/slide-swap-example.tsx
@@ -0,0 +1,112 @@
+"use client";
+
+import { AbsoluteFill } from "remotion";
+import { type SlideAxis, SlideSwapScenes } from "@/registry/remocn/slide-swap";
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function Scene({ title, note }: { title: string; note: string }) {
+ return (
+ <AbsoluteFill
+ style={{
+ alignItems: "center",
+ justifyContent: "center",
+ gap: 18,
+ }}
+ >
+ <span
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 88,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ color: "#f2f2f2",
+ }}
+ >
+ {title}
+ </span>
+ <span
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 26,
+ fontWeight: 400,
+ color: "rgba(242,242,242,0.5)",
+ }}
+ >
+ {note}
+ </span>
+ </AbsoluteFill>
+ );
+}
+
+interface SlideSwapExampleProps {
+ axis?: string;
+ inDistance?: number;
+ outDistance?: number;
+ slideFrames?: number;
+}
+
+export function SlideSwapExampleScene({
+ axis = "x",
+ inDistance = 0.28,
+ outDistance = 0.1,
+ slideFrames = 30,
+}: SlideSwapExampleProps) {
+ return (
+ <SlideSwapScenes
+ loop
+ axis={axis as SlideAxis}
+ config={{ inDistance, outDistance, slideFrames }}
+ scenes={[
+ {
+ name: "a",
+ content: (
+ <Scene title="Shove" note="the old scene leaves under power" />
+ ),
+ },
+ {
+ name: "b",
+ content: (
+ <Scene title="Spring" note="the new one brakes into place" />
+ ),
+ },
+ {
+ name: "c",
+ content: (
+ <Scene
+ title="No overlap"
+ note="one canvas, two scenes, never both"
+ />
+ ),
+ },
+ ]}
+ />
+ );
+}
+
+export const slideSwapExampleCode = (
+ values: Record<string, unknown>,
+): string => {
+ const axis = (values.axis as string) ?? "x";
+ const inDistance = (values.inDistance as number) ?? 0.28;
+ const outDistance = (values.outDistance as number) ?? 0.1;
+ const slideFrames = (values.slideFrames as number) ?? 30;
+ return `import { SlideSwapScenes } from "@/components/remocn/slide-swap";
+
+export const MyVideo = () => (
+ <SlideSwapScenes
+ axis="${axis}"
+ config={{
+ inDistance: ${inDistance},
+ outDistance: ${outDistance},
+ slideFrames: ${slideFrames},
+ }}
+ scenes={[
+ { name: "a", durationInFrames: 70, content: <SceneA /> },
+ { name: "b", durationInFrames: 70, content: <SceneB /> },
+ { name: "c", durationInFrames: 70, content: <SceneC /> },
+ ]}
+ />
+);`;
+};
diff --git a/components/docs/examples/spring-settle-example.tsx b/components/docs/examples/spring-settle-example.tsx
new file mode 100644
index 00000000..0ccf5156
--- /dev/null
+++ b/components/docs/examples/spring-settle-example.tsx
@@ -0,0 +1,149 @@
+"use client";
+
+import { AbsoluteFill } from "remotion";
+import {
+ SpringSettleItem,
+ SpringSettleScenes,
+} from "@/registry/remocn/spring-settle";
+
+const FONT_FAMILY =
+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
+
+function Scene({
+ title,
+ note,
+ accent,
+}: {
+ title: string;
+ note: string;
+ accent: string;
+}) {
+ return (
+ <AbsoluteFill
+ style={{
+ alignItems: "center",
+ justifyContent: "center",
+ gap: 20,
+ }}
+ >
+ <SpringSettleItem
+ index={0}
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 88,
+ fontWeight: 600,
+ letterSpacing: "-0.03em",
+ color: "#f2f2f2",
+ }}
+ >
+ {title}
+ </SpringSettleItem>
+ <SpringSettleItem
+ index={1}
+ style={{
+ fontFamily: FONT_FAMILY,
+ fontSize: 26,
+ fontWeight: 400,
+ color: "rgba(242,242,242,0.5)",
+ }}
+ >
+ {note}
+ </SpringSettleItem>
+ <SpringSettleItem index={2} style={{ marginTop: 8 }}>
+ <div style={{ width: 120, height: 3, background: accent }} />
+ </SpringSettleItem>
+ </AbsoluteFill>
+ );
+}
+
+interface SpringSettleExampleProps {
+ enterScale?: number;
+ enterStagger?: number;
+ exitScale?: number;
+ exitFrames?: number;
+}
+
+export function SpringSettleExampleScene({
+ enterScale = 1.24,
+ enterStagger = 3,
+ exitScale = 0.84,
+ exitFrames = 6,
+}: SpringSettleExampleProps) {
+ return (
+ <SpringSettleScenes
+ loop
+ config={{ enterScale, enterStagger, exitScale, exitFrames }}
+ scenes={[
+ {
+ name: "a",
+ bg: "#141318",
+ content: (
+ <Scene
+ title="Shrink"
+ note="the scene leaves as one group"
+ accent="#6c6ae8"
+ />
+ ),
+ },
+ {
+ name: "b",
+ bg: "#1a1922",
+ content: (
+ <Scene
+ title="Hold"
+ note="one empty frame, the stage changes colour"
+ accent="#e8776c"
+ />
+ ),
+ },
+ {
+ name: "c",
+ bg: "#12171a",
+ content: (
+ <Scene
+ title="Land"
+ note="items settle in, staggered, from above"
+ accent="#6ce8b0"
+ />
+ ),
+ },
+ ]}
+ />
+ );
+}
+
+export const springSettleExampleCode = (
+ values: Record<string, unknown>,
+): string => {
+ const enterScale = (values.enterScale as number) ?? 1.24;
+ const enterStagger = (values.enterStagger as number) ?? 3;
+ const exitScale = (values.exitScale as number) ?? 0.84;
+ const exitFrames = (values.exitFrames as number) ?? 6;
+ return `import {
+ SpringSettleScenes,
+ SpringSettleItem,
+} from "@/components/remocn/spring-settle";
+
+const Scene = ({ title, note }: { title: string; note: string }) => (
+ <AbsoluteFill style={{ alignItems: "center", justifyContent: "center" }}>
+ <SpringSettleItem index={0}>{title}</SpringSettleItem>
+ <SpringSettleItem index={1}>{note}</SpringSettleItem>
+ </AbsoluteFill>
+);
+
+export const MyVideo = () => (
+ <SpringSettleScenes
+ config={{
+ enterScale: ${enterScale},
+ enterStagger: ${enterStagger},
+ exitScale: ${exitScale},
+ exitFrames: ${exitFrames},
+ }}
+ scenes={[
+ { name: "a", bg: "#141318", durationInFrames: 70, content: <Scene title="Shrink" note="…" /> },
+ { name: "b", bg: "#1a1922", durationInFrames: 70, content: <Scene title="Hold" note="…" /> },
+ { name: "c", bg: "#12171a", durationInFrames: 70, content: <Scene title="Land" note="…" /> },
+ ]}
+ />
+);`;
+};
diff --git a/content/changelog/2026-07-25-scene-sequencers.mdx b/content/changelog/2026-07-25-scene-sequencers.mdx
new file mode 100644
index 00000000..657cd5bb
--- /dev/null
+++ b/content/changelog/2026-07-25-scene-sequencers.mdx
@@ -0,0 +1,23 @@
+---
+title: Scene sequencers, and Remotion off the pin
+date: 2026-07-25
+---
+
+Two grammars for moving between scenes that don't go through `TransitionSeries` at all. Instead of dropping a presentation between two sequences, a sequencer takes the whole run of scenes and owns the boundary — which is what lets a cut hold the stage empty for a frame, or hand it over with the content still moving.
+
+<ChangelogPreview name="spring-settle" />
+
+### New components
+
+- [Spring Settle](/docs/transitions/spring-settle) — the outgoing scene shrinks away as one group, the stage holds empty for a beat while the background colour changes, then the next scene's items land staggered from above-1 scale. The group transform is the point: scaling elements individually makes multi-line text spread apart as it shrinks.
+- [Slide Swap](/docs/transitions/slide-swap) — the outgoing content is shoved off on an accelerating curve and is gone before the next frame; the incoming springs in from the opposite edge and brakes into place without bouncing. Horizontal or vertical, on one constant canvas.
+- Scene Motion — a small module of the curves scene content is built from, installed alongside Spring Settle. An exponential travel curve, a separate short opacity ramp, three spring easings, and a compressing stagger with deterministic jitter.
+
+### Improvements
+
+- Spring Settle's stagger compresses instead of stepping linearly, and carries a deterministic jitter, so a column of items no longer lands on a machine cadence. `enterStaggerPower: 1` with `enterStaggerJitter: 0` restores the plain linear behaviour.
+- Both sequencers render transparent unless you give them a background, so a shader or a `Backdrop` can sit behind them.
+
+### Fixes
+
+- Remotion is no longer pinned to an exact version. All seven `remotion` and `@remotion/*` packages now track `^4.0.499` together, which unblocks APIs added after 4.0.473 — `Easing.spring` among them.
diff --git a/content/docs/components.mdx b/content/docs/components.mdx
index 0a93b7b5..8cb88315 100644
--- a/content/docs/components.mdx
+++ b/content/docs/components.mdx
@@ -502,6 +502,27 @@ Scene transitions, camera moves, and stylized wipes.
]}
/>
+### Scene Sequencers
+
+Sequencers rather than presentations — they own the whole run of scenes and the boundary between them.
+
+<ComponentCardGrid
+ items={[
+ {
+ name: "SlideSwapScenes",
+ description: "Shove one scene off the canvas and spring the next in from the opposite edge",
+ status: "stable",
+ href: "/docs/transitions/slide-swap",
+ },
+ {
+ name: "SpringSettleScenes",
+ description: "Shrink a scene away as one group, hold the stage empty for a beat, then land the next from above",
+ status: "stable",
+ href: "/docs/transitions/spring-settle",
+ },
+ ]}
+/>
+
## Effects
Physical overlays and hand-made motion.
diff --git a/content/docs/transitions/index.mdx b/content/docs/transitions/index.mdx
index 271326cc..a616a981 100644
--- a/content/docs/transitions/index.mdx
+++ b/content/docs/transitions/index.mdx
@@ -3,7 +3,7 @@ title: Transitions
description: Scene transitions built as presentations for TransitionSeries
---
-Every transition here is a presentation for `@remotion/transitions` — pass it to a `TransitionSeries.Transition` between two sequences and control the pace with `linearTiming` or `springTiming`.
+Most transitions here are presentations for `@remotion/transitions` — pass one to a `TransitionSeries.Transition` between two sequences and control the pace with `linearTiming` or `springTiming`. The sequencers at the bottom work differently: they own the whole run of scenes themselves.
## Camera Motion
@@ -121,3 +121,24 @@ Kinetic, interface-flavored transitions — typed wipes, scattering icons, and m
},
]}
/>
+
+## Scene Sequencers
+
+Not presentations. Each of these takes the whole list of scenes and runs the timeline itself, so the boundary is a property of the film rather than something dropped between two sequences. Scenes never overlap and the stage is continuous, which is what makes a run of them read as one cut instead of a slideshow.
+
+<ComponentCardGrid
+ items={[
+ {
+ name: "SlideSwapScenes",
+ description: "Shove one scene off the canvas and spring the next in from the opposite edge",
+ status: "stable",
+ href: "/docs/transitions/slide-swap",
+ },
+ {
+ name: "SpringSettleScenes",
+ description: "Shrink a scene away as one group, hold the stage empty for a beat, then land the next from above",
+ status: "stable",
+ href: "/docs/transitions/spring-settle",
+ },
+ ]}
+/>
diff --git a/content/docs/transitions/meta.json b/content/docs/transitions/meta.json
index fd413450..1afec29e 100644
--- a/content/docs/transitions/meta.json
+++ b/content/docs/transitions/meta.json
@@ -18,6 +18,8 @@
"page-turn",
"ascii-dissolve",
"caret-wipe",
- "icon-scatter"
+ "icon-scatter",
+ "slide-swap",
+ "spring-settle"
]
}
diff --git a/content/docs/transitions/slide-swap.mdx b/content/docs/transitions/slide-swap.mdx
new file mode 100644
index 00000000..62284baa
--- /dev/null
+++ b/content/docs/transitions/slide-swap.mdx
@@ -0,0 +1,180 @@
+---
+title: Slide Swap
+description: Shove one scene off the canvas and spring the next in from the opposite edge
+---
+
+<ComponentPreview name="slide-swap" />
+
+## Installation
+
+<InstallBlock name="slide-swap" />
+
+## Usage
+
+`SlideSwapScenes` is a sequencer, not a `TransitionSeries` presentation. It holds a list of scenes on one canvas and moves the content between them — nothing about the canvas itself ever changes.
+
+Two scenes never overlap. The outgoing content leaves inside the last `outFrames` of its own slot, on an accelerating power curve with an accelerating fade underneath it, and is fully gone before the next scene's first frame. The incoming content arrives on that very next frame, driven by a real spring — it accelerates out of rest, crosses, and brakes into place. The spring is overshoot-clamped, so it never bounces past its resting spot.
+
+```tsx
+import { SlideSwapScenes } from "@/components/remocn/slide-swap";
+
+export const MyVideo = () => (
+ <SlideSwapScenes
+ scenes={[
+ { name: "hook", durationInFrames: 80, content: <Hook /> },
+ { name: "claim", durationInFrames: 70, content: <Claim /> },
+ { name: "price", durationInFrames: 90, content: <Price /> },
+ ]}
+ />
+);
+```
+
+The composition needs to be as long as the sequencer: the total is the sum of every scene's `durationInFrames`, falling back to `config.sceneFrames` for scenes that don't set one.
+
+## Axis
+
+`axis="x"` shoves the outgoing scene to the left and brings the next in from the right. `axis="y"` is the same physics turned 90 degrees — the outgoing scene is pushed up, the next rises from the bottom. Distances are fractions of the stage dimension along that axis, so the same numbers read identically in portrait and landscape.
+
+## Pre-roll your scenes
+
+A slide hands the stage over with no overlap, which means a scene whose first reveal starts at its own frame 0 arrives **empty** and rides in as a blank card — the exact slideshow feel this grammar exists to avoid. Lead the scene's internal clock so its opening element is already on screen and moving when the scene slides in:
+
+```tsx
+const Claim = ({ start, lead = 18 }: { start: number; lead?: number }) => {
+ const f = useCurrentFrame() - start + lead;
+ return <YourContent frame={f} />;
+};
+```
+
+Roughly half the `slideFrames` window is a good starting lead.
+
+## Background
+
+The component paints nothing by default — pass `bg` when you want it to own the canvas colour, or leave it off and put a `Backdrop` behind it. Because the canvas is constant across the whole sequence, there is no colour crossfade to worry about; if you need the stage colour to change between scenes, use [Spring Settle](/docs/transitions/spring-settle), whose gap frame is built for exactly that.
+
+## Building your own sequencer
+
+`slideInStyle` and `slideOutStyle` return the transform and opacity for a content group, so you can drive the grammar from your own timeline instead of `SlideSwapScenes`:
+
+```tsx
+import {
+ slideInStyle,
+ slideOutStyle,
+ slideSwapTimeline,
+} from "@/components/remocn/slide-swap";
+
+const { index, local, dwellFrames, phase } = slideSwapTimeline(frame, scenes);
+
+const style =
+ phase === "exit"
+ ? slideOutStyle(local - (dwellFrames - 22), width)
+ : slideInStyle(local + 1, width, fps);
+```
+
+`slideInStyle` expects `e` to be `1` on the boundary frame, not `0` — the incoming scene is already moving on the frame it first appears.
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "scenes",
+ type: "SlideSwapSceneDef[]",
+ description: "The scenes, in order. Each has content, an optional name, and an optional durationInFrames that overrides config.sceneFrames.",
+ },
+ {
+ name: "axis",
+ type: '"x" | "y"',
+ default: '"x"',
+ description: "Horizontal shove, or vertical — the outgoing scene up and the next one from the bottom.",
+ },
+ {
+ name: "bg",
+ type: "string",
+ description: "Canvas colour. Left off, the sequencer renders transparent.",
+ },
+ {
+ name: "config",
+ type: "Partial<SlideSwapConfig>",
+ description: "Overrides for the grammar's timing and distances.",
+ },
+ {
+ name: "loop",
+ type: "boolean",
+ default: "false",
+ description: "Cycle through the scenes forever instead of holding the last one.",
+ },
+ {
+ name: "style",
+ type: "CSSProperties",
+ description: "Merged into the outer AbsoluteFill.",
+ },
+ ]}
+/>
+
+## Config
+
+<PropsTable
+ rows={[
+ {
+ name: "sceneFrames",
+ type: "number",
+ default: "70",
+ description: "Fallback length for scenes that don't set durationInFrames.",
+ },
+ {
+ name: "slideFrames",
+ type: "number",
+ default: "30",
+ description: "The enter window. The spring should be settled inside it.",
+ },
+ {
+ name: "inDistance",
+ type: "number",
+ default: "0.28",
+ description: "How far off-stage the incoming content starts, as a fraction of the stage dimension along the axis.",
+ },
+ {
+ name: "inDamping",
+ type: "number",
+ default: "60",
+ description: "Damping of the incoming spring.",
+ },
+ {
+ name: "inStiffness",
+ type: "number",
+ default: "300",
+ description: "Stiffness of the incoming spring.",
+ },
+ {
+ name: "inMass",
+ type: "number",
+ default: "0.5",
+ description: "Mass of the incoming spring.",
+ },
+ {
+ name: "inFadeFrames",
+ type: "number",
+ default: "24",
+ description: "Fade-in length. Deliberately shorter than the travel, so opacity and transform never share a curve.",
+ },
+ {
+ name: "outFrames",
+ type: "number",
+ default: "22",
+ description: "The exit window at the end of the scene's own slot.",
+ },
+ {
+ name: "outDistance",
+ type: "number",
+ default: "0.1",
+ description: "How far the outgoing content travels. Short on purpose — the fade does most of the work.",
+ },
+ {
+ name: "outPower",
+ type: "number",
+ default: "5",
+ description: "Power of the accelerating shove. Higher means the content sits still longer, then leaves harder.",
+ },
+ ]}
+/>
diff --git a/content/docs/transitions/spring-settle.mdx b/content/docs/transitions/spring-settle.mdx
new file mode 100644
index 00000000..741d775c
--- /dev/null
+++ b/content/docs/transitions/spring-settle.mdx
@@ -0,0 +1,218 @@
+---
+title: Spring Settle
+description: Shrink a scene away as one group, hold the stage empty for a beat, then land the next one from above
+---
+
+<ComponentPreview name="spring-settle" />
+
+## Installation
+
+<InstallBlock name="spring-settle" />
+
+## Usage
+
+`SpringSettleScenes` is a sequencer, not a `TransitionSeries` presentation. Each boundary runs in three parts:
+
+1. **Exit** — the whole outgoing scene shrinks toward `exitScale` around the stage centre and fades on an accelerating curve, gone in `exitFrames`.
+2. **Gap** — `gapFrames` of empty stage. The background colour crossfades here and only here, so the change lands instantly on an empty frame instead of muddying two scenes together.
+3. **Enter** — the incoming items start bigger than 1 and transparent, then settle to rest on a stiff spring, staggered.
+
+Scenes hold perfectly still between boundaries. If you want them to breathe, put [Drift](/docs/layout/drift) inside a scene.
+
+```tsx
+import {
+ SpringSettleScenes,
+ SpringSettleItem,
+} from "@/components/remocn/spring-settle";
+
+const Claim = () => (
+ <AbsoluteFill style={{ alignItems: "center", justifyContent: "center" }}>
+ <SpringSettleItem index={0}>
+ <h1>Half the price</h1>
+ </SpringSettleItem>
+ <SpringSettleItem index={1}>
+ <p>The new default model</p>
+ </SpringSettleItem>
+ </AbsoluteFill>
+);
+
+export const MyVideo = () => (
+ <SpringSettleScenes
+ scenes={[
+ { name: "hook", bg: "#fbfbfa", durationInFrames: 90, content: <Hook /> },
+ { name: "claim", bg: "#141318", durationInFrames: 80, content: <Claim /> },
+ ]}
+ />
+);
+```
+
+The composition length is the sum of every scene's `durationInFrames` **plus** `gapFrames` per scene — the gap is part of each slot, not a boundary between them.
+
+## The group exit matters
+
+The exit transform is applied to the scene as a whole, never per element, and that is not an implementation detail. Scaling elements individually makes a multi-line text block visually spread apart as it shrinks: glyphs get smaller but line boxes don't, so the leading grows while the type shrinks. One transform over the whole group keeps every gap proportional.
+
+The same rule applies to `SpringSettleItem`. A multi-line paragraph belongs in **one** item — split it across two and the lines will drift apart as they land.
+
+## Stagger
+
+Items land in `index` order, but the spacing between them compresses rather than stepping linearly: later items bunch up, and a small deterministic jitter breaks the machine cadence without breaking render determinism. `enterStagger` sets the base spacing, `enterStaggerPower` the compression, `enterStaggerJitter` the wobble. Set the power to `1` and the jitter to `0` for a plain linear stagger.
+
+The stagger comes from [Scene Motion](#scene-motion), which installs alongside this component.
+
+## Background
+
+`bg` is per scene and optional. Give every scene a colour and the sequencer owns the stage, crossfading inside each gap. Leave it off everywhere and the sequencer renders transparent, so a `Backdrop` or a shader behind it shows through — you just lose the colour change, since there is nothing to fade between.
+
+## Building your own sequencer
+
+`springSettleExitStyle` returns the group transform for the exit, and `SpringSettleEnter` is the clock provider that `SpringSettleItem` reads. Together they let you drive the grammar from your own timeline:
+
+```tsx
+import {
+ SpringSettleEnter,
+ springSettleExitStyle,
+ springSettleTimeline,
+} from "@/components/remocn/spring-settle";
+
+const { index, local, dwellFrames } = springSettleTimeline(frame, scenes);
+
+<AbsoluteFill style={springSettleExitStyle(local, dwellFrames)}>
+ <SpringSettleEnter local={local}>{scenes[index].content}</SpringSettleEnter>
+</AbsoluteFill>;
+```
+
+`springSettlePhase` labels the current frame `enter`, `dwell`, `exit`, or `gap` if you need to branch on it.
+
+## Scene Motion
+
+This component installs `@remocn/scene-motion`, a small module of the curves scene content is built from. It is worth using directly inside your scenes:
+
+- `EXPO` — the travel curve. About 80 percent of the distance in the first 20 percent of the time, then settling. Reads far more deliberate than a cubic.
+- `FADE` — the short opacity ramp, deliberately not the transform's curve.
+- `SETTLE`, `SETTLE_SOFT`, `SETTLE_MARK` — spring easings. `SETTLE_SOFT` is looser, for a child that should trail its parent; `SETTLE_MARK` is the one place a touch of overshoot is allowed, for a single mark landing.
+- `stagger(index, base, power, jitter)` and `fadeIn(frame, at, frames)`.
+- `CLAMP` — the `extrapolateLeft`/`extrapolateRight` pair, since almost every scene interpolation wants it.
+
+The rule they encode: two properties of the same element never share a curve or a length. Opacity rides a short quad ramp, transform rides a long exponential or a damped spring roughly three times its length. That is the difference between "a slide faded in" and "something arrived".
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "scenes",
+ type: "SpringSettleSceneDef[]",
+ description: "The scenes, in order. Each has content, an optional name, an optional bg, and an optional durationInFrames that overrides config.sceneFrames.",
+ },
+ {
+ name: "config",
+ type: "Partial<SpringSettleConfig>",
+ description: "Overrides for the grammar's timing, scales, and stagger.",
+ },
+ {
+ name: "loop",
+ type: "boolean",
+ default: "false",
+ description: "Cycle through the scenes forever instead of holding the last one.",
+ },
+ {
+ name: "style",
+ type: "CSSProperties",
+ description: "Merged into the outer AbsoluteFill.",
+ },
+ ]}
+/>
+
+`SpringSettleItem` takes an `index` (default `0`), a `style` merged onto its wrapper, and its children. Outside a `SpringSettleEnter` it renders a plain wrapper, so a scene stays usable on its own.
+
+## Config
+
+<PropsTable
+ rows={[
+ {
+ name: "sceneFrames",
+ type: "number",
+ default: "70",
+ description: "Fallback length for scenes that don't set durationInFrames.",
+ },
+ {
+ name: "gapFrames",
+ type: "number",
+ default: "1",
+ description: "Empty frames between one scene's exit and the next scene's enter.",
+ },
+ {
+ name: "enterScale",
+ type: "number",
+ default: "1.24",
+ description: "The scale incoming items start at before settling to 1.",
+ },
+ {
+ name: "enterFadeFrames",
+ type: "number",
+ default: "5",
+ description: "Fade-in length for an incoming item. Much shorter than the spring, on purpose.",
+ },
+ {
+ name: "enterStagger",
+ type: "number",
+ default: "3",
+ description: "Base frames between item landings.",
+ },
+ {
+ name: "enterStaggerPower",
+ type: "number",
+ default: "0.8",
+ description: "Compression of the stagger. Below 1, later items bunch up; 1 is a plain linear stagger.",
+ },
+ {
+ name: "enterStaggerJitter",
+ type: "number",
+ default: "1",
+ description: "Deterministic wobble in frames, to break the machine cadence. 0 turns it off.",
+ },
+ {
+ name: "springDamping",
+ type: "number",
+ default: "30",
+ description: "Damping of the landing spring.",
+ },
+ {
+ name: "springStiffness",
+ type: "number",
+ default: "320",
+ description: "Stiffness of the landing spring.",
+ },
+ {
+ name: "springMass",
+ type: "number",
+ default: "1",
+ description: "Mass of the landing spring.",
+ },
+ {
+ name: "exitFrames",
+ type: "number",
+ default: "6",
+ description: "How long the outgoing scene takes to shrink and fade away.",
+ },
+ {
+ name: "exitScale",
+ type: "number",
+ default: "0.84",
+ description: "The scale the outgoing scene shrinks toward.",
+ },
+ {
+ name: "exitPower",
+ type: "number",
+ default: "5",
+ description: "Power of the accelerating exit. Higher means the scene holds longer, then leaves harder.",
+ },
+ {
+ name: "bgFadeFrames",
+ type: "number",
+ default: "4",
+ description: "Background crossfade length, centred in the gap.",
+ },
+ ]}
+/>
diff --git a/package.json b/package.json
index f247af53..278eb57f 100644
--- a/package.json
+++ b/package.json
@@ -25,12 +25,12 @@
"@openpanel/nextjs": "^1.0.13",
"@openpanel/sdk": "^1.3.1",
"@paper-design/shaders-react": "0.0.76",
- "@remotion/bundler": "4.0.473",
- "@remotion/google-fonts": "4.0.473",
- "@remotion/paths": "4.0.473",
- "@remotion/player": "4.0.473",
- "@remotion/renderer": "4.0.473",
- "@remotion/transitions": "4.0.473",
+ "@remotion/bundler": "^4.0.499",
+ "@remotion/google-fonts": "^4.0.499",
+ "@remotion/paths": "^4.0.499",
+ "@remotion/player": "^4.0.499",
+ "@remotion/renderer": "^4.0.499",
+ "@remotion/transitions": "^4.0.499",
"@shadcn/react": "^0.1.0",
"@uidotdev/usehooks": "^2.4.1",
"class-variance-authority": "^0.7.1",
@@ -52,7 +52,7 @@
"react-dom": "19.2.4",
"react-resizable-panels": "^4.9.0",
"rehype-pretty-code": "^0.14.4",
- "remotion": "4.0.473",
+ "remotion": "^4.0.499",
"server-only": "^0.0.1",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
diff --git a/registry-artifacts/registry.json b/registry-artifacts/registry.json
index 7553804c..22b9c199 100644
--- a/registry-artifacts/registry.json
+++ b/registry-artifacts/registry.json
@@ -1587,6 +1587,49 @@
],
"type": "registry:component"
},
+ {
+ "name": "scene-motion",
+ "title": "Scene Motion",
+ "description": "The motion vocabulary scene content is built from: an exponential travel curve, a separate opacity ramp, three spring easings, and a compressing stagger.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/scene-motion/index.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn/scene-motion.ts"
+ }
+ ],
+ "type": "registry:lib"
+ },
+ {
+ "name": "slide-swap",
+ "title": "Slide Swap",
+ "description": "A scene sequencer where the outgoing content is shoved off on an accelerating curve and the next springs in from the opposite edge, on one canvas, with no overlap.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/slide-swap/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/slide-swap.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "spring-settle",
+ "title": "Spring Settle",
+ "description": "A scene sequencer where the outgoing scene shrinks away as one group, the stage holds empty for a beat, and the next scene's items land staggered from above-1 scale.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/scene-motion"],
+ "files": [
+ {
+ "path": "registry/remocn/spring-settle/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spring-settle.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
{
"name": "remocn-ui",
"title": "remocn UI Core",
diff --git a/registry-artifacts/scene-motion.json b/registry-artifacts/scene-motion.json
new file mode 100644
index 00000000..a237d8c5
--- /dev/null
+++ b/registry-artifacts/scene-motion.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "scene-motion",
+ "title": "Scene Motion",
+ "description": "The motion vocabulary scene content is built from: an exponential travel curve, a separate opacity ramp, three spring easings, and a compressing stagger.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/scene-motion/index.ts",
+ "content": "import { Easing, interpolate, random } from \"remotion\";\n\nexport const CLAMP = {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n} as const;\n\nexport const EXPO = Easing.bezier(0.16, 1, 0.3, 1);\n\nexport const FADE = Easing.out(Easing.quad);\n\nexport const SETTLE = Easing.spring({ damping: 18, stiffness: 120, mass: 1 });\n\nexport const SETTLE_SOFT = Easing.spring({\n damping: 26,\n stiffness: 90,\n mass: 1,\n});\n\nexport const SETTLE_MARK = Easing.spring({\n damping: 13,\n stiffness: 140,\n mass: 1,\n});\n\nexport const stagger = (\n index: number,\n base = 5,\n power = 0.8,\n jitter = 1.5,\n seed = \"remocn-stagger\",\n): number =>\n Math.max(\n 0,\n index ** power * base + (random(`${seed}-${index}`) - 0.5) * 2 * jitter,\n );\n\nexport const fadeIn = (frame: number, at: number, frames = 7): number =>\n interpolate(frame, [at, at + frames], [0, 1], { ...CLAMP, easing: FADE });\n",
+ "type": "registry:lib",
+ "target": "lib/remocn/scene-motion.ts"
+ }
+ ],
+ "type": "registry:lib"
+}
diff --git a/registry-artifacts/slide-swap.json b/registry-artifacts/slide-swap.json
new file mode 100644
index 00000000..230cca77
--- /dev/null
+++ b/registry-artifacts/slide-swap.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "slide-swap",
+ "title": "Slide Swap",
+ "description": "A scene sequencer where the outgoing content is shoved off on an accelerating curve and the next springs in from the opposite edge, on one canvas, with no overlap.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/slide-swap/index.tsx",
+ "content": "\"use client\";\n\nimport type { CSSProperties, ReactNode } from \"react\";\nimport {\n AbsoluteFill,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport type SlideSwapConfig = {\n sceneFrames: number;\n slideFrames: number;\n inDistance: number;\n inDamping: number;\n inStiffness: number;\n inMass: number;\n inFadeFrames: number;\n outFrames: number;\n outDistance: number;\n outPower: number;\n};\n\nexport const SLIDE_SWAP_DEFAULTS: SlideSwapConfig = {\n sceneFrames: 70,\n slideFrames: 30,\n inDistance: 0.28,\n inDamping: 60,\n inStiffness: 300,\n inMass: 0.5,\n inFadeFrames: 24,\n outFrames: 22,\n outDistance: 0.1,\n outPower: 5,\n};\n\nexport type SlideAxis = \"x\" | \"y\";\n\nconst translate = (axis: SlideAxis, v: number) =>\n axis === \"x\" ? `translateX(${v}px)` : `translateY(${v}px)`;\n\nexport const slideInStyle = (\n e: number,\n size: number,\n fps: number,\n config?: Partial<SlideSwapConfig>,\n axis: SlideAxis = \"x\",\n): CSSProperties => {\n const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };\n if (e >= cfg.slideFrames) return {};\n const p = spring({\n frame: Math.max(e, 0),\n fps,\n config: {\n damping: cfg.inDamping,\n stiffness: cfg.inStiffness,\n mass: cfg.inMass,\n overshootClamping: true,\n },\n });\n const tFade = Math.min(Math.max(e / cfg.inFadeFrames, 0), 1);\n return {\n transform: translate(axis, cfg.inDistance * size * (1 - p)),\n opacity: 1 - (1 - tFade) * (1 - tFade),\n willChange: \"transform, opacity\",\n };\n};\n\nexport const slideOutStyle = (\n e: number,\n size: number,\n config?: Partial<SlideSwapConfig>,\n axis: SlideAxis = \"x\",\n): CSSProperties => {\n const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };\n if (e <= 0) return {};\n const t = Math.min(e / cfg.outFrames, 1);\n return {\n transform: translate(axis, -cfg.outDistance * size * t ** cfg.outPower),\n opacity: 1 - t * t,\n willChange: \"transform, opacity\",\n };\n};\n\nexport type SlideSwapSceneDef = {\n name?: string;\n durationInFrames?: number;\n content: ReactNode;\n};\n\nexport type SlideSwapPhase = \"slide\" | \"dwell\" | \"exit\";\n\nexport type SlideSwapTimeline = {\n index: number;\n local: number;\n dwellFrames: number;\n phase: SlideSwapPhase;\n};\n\nexport const slideSwapTimeline = (\n frame: number,\n scenes: SlideSwapSceneDef[],\n config?: Partial<SlideSwapConfig>,\n opts?: { loop?: boolean },\n): SlideSwapTimeline => {\n const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };\n const lens = scenes.map((s) => s.durationInFrames ?? cfg.sceneFrames);\n const total = lens.reduce((a, b) => a + b, 0);\n let w = opts?.loop\n ? ((frame % total) + total) % total\n : Math.min(frame, total - 1);\n let index = 0;\n while (index < scenes.length - 1 && w >= lens[index]) {\n w -= lens[index];\n index += 1;\n }\n const local = Math.min(w, lens[index] - 1);\n const dwellFrames = lens[index];\n const exits = index < scenes.length - 1 || Boolean(opts?.loop);\n const enters = index > 0 || Boolean(opts?.loop);\n const phase: SlideSwapPhase =\n exits && local >= dwellFrames - cfg.outFrames\n ? \"exit\"\n : enters && local + 1 < cfg.slideFrames\n ? \"slide\"\n : \"dwell\";\n return { index, local, dwellFrames, phase };\n};\n\nexport interface SlideSwapScenesProps {\n scenes: SlideSwapSceneDef[];\n bg?: string;\n axis?: SlideAxis;\n config?: Partial<SlideSwapConfig>;\n loop?: boolean;\n style?: CSSProperties;\n}\n\nexport function SlideSwapScenes({\n scenes,\n bg,\n axis = \"x\",\n config,\n loop = false,\n style,\n}: SlideSwapScenesProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };\n const size = axis === \"x\" ? width : height;\n\n const { index, local, dwellFrames, phase } = slideSwapTimeline(\n frame,\n scenes,\n cfg,\n { loop },\n );\n const cur = scenes[index];\n const enters = index > 0 || loop;\n\n const sceneStyle =\n phase === \"exit\"\n ? slideOutStyle(local - (dwellFrames - cfg.outFrames), size, cfg, axis)\n : enters\n ? slideInStyle(local + 1, size, fps, cfg, axis)\n : undefined;\n\n return (\n <AbsoluteFill style={{ background: bg, ...style }}>\n <AbsoluteFill style={sceneStyle}>{cur.content}</AbsoluteFill>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/slide-swap.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/registry-artifacts/spring-settle.json b/registry-artifacts/spring-settle.json
new file mode 100644
index 00000000..6be7edcd
--- /dev/null
+++ b/registry-artifacts/spring-settle.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "spring-settle",
+ "title": "Spring Settle",
+ "description": "A scene sequencer where the outgoing scene shrinks away as one group, the stage holds empty for a beat, and the next scene's items land staggered from above-1 scale.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/scene-motion"],
+ "files": [
+ {
+ "path": "registry/remocn/spring-settle/index.tsx",
+ "content": "\"use client\";\n\nimport type { CSSProperties, ReactNode } from \"react\";\nimport { createContext, useContext } from \"react\";\nimport {\n AbsoluteFill,\n interpolate,\n interpolateColors,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { CLAMP, FADE, stagger } from \"@/lib/remocn/scene-motion\";\n\nexport type SpringSettleConfig = {\n sceneFrames: number;\n gapFrames: number;\n enterScale: number;\n enterFadeFrames: number;\n enterStagger: number;\n enterStaggerPower: number;\n enterStaggerJitter: number;\n springDamping: number;\n springStiffness: number;\n springMass: number;\n exitFrames: number;\n exitScale: number;\n exitPower: number;\n bgFadeFrames: number;\n};\n\nexport const SPRING_SETTLE_DEFAULTS: SpringSettleConfig = {\n sceneFrames: 70,\n gapFrames: 1,\n enterScale: 1.24,\n enterFadeFrames: 5,\n enterStagger: 3,\n enterStaggerPower: 0.8,\n enterStaggerJitter: 1,\n springDamping: 30,\n springStiffness: 320,\n springMass: 1,\n exitFrames: 6,\n exitScale: 0.84,\n exitPower: 5,\n bgFadeFrames: 4,\n};\n\nexport type SpringSettleSceneDef = {\n name?: string;\n bg?: string;\n durationInFrames?: number;\n content: ReactNode;\n};\n\nexport type SpringSettlePhase = \"enter\" | \"dwell\" | \"exit\" | \"gap\";\n\nexport type SpringSettleTimeline = {\n index: number;\n local: number;\n dwellFrames: number;\n};\n\ntype SceneClock = {\n local: number;\n cfg: SpringSettleConfig;\n fps: number;\n};\n\nconst SceneCtx = createContext<SceneClock | null>(null);\n\nconst resolveConfig = (\n config?: Partial<SpringSettleConfig>,\n): SpringSettleConfig => ({ ...SPRING_SETTLE_DEFAULTS, ...config });\n\nconst dwellOf = (scene: SpringSettleSceneDef, cfg: SpringSettleConfig) =>\n scene.durationInFrames ?? cfg.sceneFrames;\n\nexport const springSettleTimeline = (\n frame: number,\n scenes: SpringSettleSceneDef[],\n config?: Partial<SpringSettleConfig>,\n opts?: { loop?: boolean },\n): SpringSettleTimeline => {\n const cfg = resolveConfig(config);\n const lens = scenes.map((s) => dwellOf(s, cfg) + cfg.gapFrames);\n const total = lens.reduce((a, b) => a + b, 0);\n let w = opts?.loop ? ((frame % total) + total) % total : frame;\n let index = 0;\n while (index < scenes.length - 1 && w >= lens[index]) {\n w -= lens[index];\n index += 1;\n }\n const local = Math.min(w, lens[index] - 1);\n return { index, local, dwellFrames: dwellOf(scenes[index], cfg) };\n};\n\nexport const springSettlePhase = (\n timeline: SpringSettleTimeline,\n fps: number,\n config?: Partial<SpringSettleConfig>,\n): SpringSettlePhase => {\n const cfg = resolveConfig(config);\n const { local, dwellFrames } = timeline;\n if (local >= dwellFrames) return \"gap\";\n if (local >= dwellFrames - cfg.exitFrames) return \"exit\";\n const settled =\n spring({\n frame: local,\n fps,\n config: {\n damping: cfg.springDamping,\n stiffness: cfg.springStiffness,\n mass: cfg.springMass,\n },\n }) > 0.985;\n return settled ? \"dwell\" : \"enter\";\n};\n\nexport const springSettleExitStyle = (\n local: number,\n dwellFrames: number,\n config?: Partial<SpringSettleConfig>,\n): CSSProperties => {\n const cfg = resolveConfig(config);\n const tExit = interpolate(\n local,\n [dwellFrames - cfg.exitFrames, dwellFrames],\n [0, 1],\n CLAMP,\n );\n if (tExit <= 0) return {};\n const eExit = tExit ** cfg.exitPower;\n return {\n transform: `scale(${1 - (1 - cfg.exitScale) * eExit})`,\n opacity: 1 - eExit,\n willChange: \"transform, opacity\",\n };\n};\n\nexport interface SpringSettleEnterProps {\n local: number;\n config?: Partial<SpringSettleConfig>;\n children: ReactNode;\n}\n\nexport function SpringSettleEnter({\n local,\n config,\n children,\n}: SpringSettleEnterProps) {\n const { fps } = useVideoConfig();\n return (\n <SceneCtx.Provider value={{ local, cfg: resolveConfig(config), fps }}>\n {children}\n </SceneCtx.Provider>\n );\n}\n\nexport interface SpringSettleItemProps {\n index?: number;\n style?: CSSProperties;\n children: ReactNode;\n}\n\nexport function SpringSettleItem({\n index = 0,\n style,\n children,\n}: SpringSettleItemProps) {\n const clock = useContext(SceneCtx);\n if (!clock) {\n return <div style={style}>{children}</div>;\n }\n const { local, cfg, fps } = clock;\n const tEnter =\n local -\n stagger(\n index,\n cfg.enterStagger,\n cfg.enterStaggerPower,\n cfg.enterStaggerJitter,\n );\n const enterP = spring({\n frame: tEnter,\n fps,\n config: {\n damping: cfg.springDamping,\n stiffness: cfg.springStiffness,\n mass: cfg.springMass,\n },\n });\n const scaleEnter = interpolate(enterP, [0, 1], [cfg.enterScale, 1]);\n const opacityEnter = interpolate(tEnter, [0, cfg.enterFadeFrames], [0, 1], {\n ...CLAMP,\n easing: FADE,\n });\n return (\n <div\n style={{\n ...style,\n transform: `scale(${scaleEnter})`,\n opacity: opacityEnter,\n willChange: \"transform, opacity\",\n }}\n >\n {children}\n </div>\n );\n}\n\nconst wrapSigned = (d: number, total: number) =>\n (((d % total) + total * 1.5) % total) - total / 2;\n\nexport interface SpringSettleScenesProps {\n scenes: SpringSettleSceneDef[];\n config?: Partial<SpringSettleConfig>;\n loop?: boolean;\n style?: CSSProperties;\n}\n\nexport function SpringSettleScenes({\n scenes,\n config,\n loop = false,\n style,\n}: SpringSettleScenesProps) {\n const frame = useCurrentFrame();\n const cfg = resolveConfig(config);\n\n const lens = scenes.map((s) => dwellOf(s, cfg) + cfg.gapFrames);\n const total = lens.reduce((a, b) => a + b, 0);\n const { index, local, dwellFrames } = springSettleTimeline(\n frame,\n scenes,\n cfg,\n { loop },\n );\n\n const n = scenes.length;\n const cur = scenes[index];\n const prev = loop ? scenes[(index - 1 + n) % n] : scenes[index - 1];\n const next = loop ? scenes[(index + 1) % n] : scenes[index + 1];\n\n const w = loop ? ((frame % total) + total) % total : frame;\n const slotStart = w - local;\n const half = Math.max(cfg.bgFadeFrames, 0.001) / 2;\n let bg = cur.bg;\n if (prev?.bg && cur.bg) {\n let d = w - (slotStart - cfg.gapFrames / 2);\n if (loop) d = wrapSigned(d, total);\n if (Math.abs(d) <= half) {\n bg = interpolateColors(d, [-half, half], [prev.bg, cur.bg]);\n }\n }\n if (next?.bg && cur.bg && bg === cur.bg) {\n let d = w - (slotStart + dwellFrames + cfg.gapFrames / 2);\n if (loop) d = wrapSigned(d, total);\n if (Math.abs(d) <= half) {\n bg = interpolateColors(d, [-half, half], [cur.bg, next.bg]);\n }\n }\n\n return (\n <AbsoluteFill style={{ background: bg, ...style }}>\n {local < dwellFrames ? (\n <AbsoluteFill style={springSettleExitStyle(local, dwellFrames, cfg)}>\n <SpringSettleEnter local={local} config={cfg}>\n {cur.content}\n </SpringSettleEnter>\n </AbsoluteFill>\n ) : null}\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/spring-settle.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 0b7fc432..449a4e59 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -90,10 +90,12 @@ import { shimmerSweepConfig } from "@/registry/remocn/shimmer-sweep/config";
import { shortSlideDownConfig } from "@/registry/remocn/short-slide-down/config";
import { shortSlideRightConfig } from "@/registry/remocn/short-slide-right/config";
import { simulatedCursorConfig } from "@/registry/remocn/simulated-cursor/config";
+import { slideSwapConfig } from "@/registry/remocn/slide-swap/config";
import { slotMachineRollConfig } from "@/registry/remocn/slot-machine-roll/config";
import { smokeDissolveConfig } from "@/registry/remocn/smoke-dissolve/config";
import { softBlurInConfig } from "@/registry/remocn/soft-blur-in/config";
import { springScaleInConfig } from "@/registry/remocn/spring-scale-in/config";
+import { springSettleConfig } from "@/registry/remocn/spring-settle/config";
import { staggeredFadeUpConfig } from "@/registry/remocn/staggered-fade-up/config";
import { strikethroughReplaceConfig } from "@/registry/remocn/strikethrough-replace/config";
import { swirlDissolveConfig } from "@/registry/remocn/swirl-dissolve/config";
@@ -1415,6 +1417,20 @@ const registry: Record<string, RegistryEntry> = {
})),
config: zoomBlurConfig,
},
+ "slide-swap": {
+ load: () =>
+ import("@/components/docs/examples/slide-swap-example").then((m) => ({
+ default: m.SlideSwapExampleScene,
+ })),
+ config: slideSwapConfig,
+ },
+ "spring-settle": {
+ load: () =>
+ import("@/components/docs/examples/spring-settle-example").then((m) => ({
+ default: m.SpringSettleExampleScene,
+ })),
+ config: springSettleConfig,
+ },
"warp-dissolve": {
load: () =>
import("@/components/docs/examples/warp-dissolve-example").then((m) => ({
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 6dd74abf..72174826 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1586,6 +1586,49 @@
"target": "components/remocn/reel.tsx"
}
]
+ },
+ {
+ "name": "scene-motion",
+ "type": "registry:lib",
+ "title": "Scene Motion",
+ "description": "The motion vocabulary scene content is built from: an exponential travel curve, a separate opacity ramp, three spring easings, and a compressing stagger.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "scene-motion/index.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn/scene-motion.ts"
+ }
+ ]
+ },
+ {
+ "name": "slide-swap",
+ "type": "registry:component",
+ "title": "Slide Swap",
+ "description": "A scene sequencer where the outgoing content is shoved off on an accelerating curve and the next springs in from the opposite edge, on one canvas, with no overlap.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "slide-swap/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/slide-swap.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spring-settle",
+ "type": "registry:component",
+ "title": "Spring Settle",
+ "description": "A scene sequencer where the outgoing scene shrinks away as one group, the stage holds empty for a beat, and the next scene's items land staggered from above-1 scale.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/scene-motion"],
+ "files": [
+ {
+ "path": "spring-settle/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spring-settle.tsx"
+ }
+ ]
}
]
}
diff --git a/registry/remocn/scene-motion/index.ts b/registry/remocn/scene-motion/index.ts
new file mode 100644
index 00000000..283331e3
--- /dev/null
+++ b/registry/remocn/scene-motion/index.ts
@@ -0,0 +1,39 @@
+import { Easing, interpolate, random } from "remotion";
+
+export const CLAMP = {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+} as const;
+
+export const EXPO = Easing.bezier(0.16, 1, 0.3, 1);
+
+export const FADE = Easing.out(Easing.quad);
+
+export const SETTLE = Easing.spring({ damping: 18, stiffness: 120, mass: 1 });
+
+export const SETTLE_SOFT = Easing.spring({
+ damping: 26,
+ stiffness: 90,
+ mass: 1,
+});
+
+export const SETTLE_MARK = Easing.spring({
+ damping: 13,
+ stiffness: 140,
+ mass: 1,
+});
+
+export const stagger = (
+ index: number,
+ base = 5,
+ power = 0.8,
+ jitter = 1.5,
+ seed = "remocn-stagger",
+): number =>
+ Math.max(
+ 0,
+ index ** power * base + (random(`${seed}-${index}`) - 0.5) * 2 * jitter,
+ );
+
+export const fadeIn = (frame: number, at: number, frames = 7): number =>
+ interpolate(frame, [at, at + frames], [0, 1], { ...CLAMP, easing: FADE });
diff --git a/registry/remocn/slide-swap/config.ts b/registry/remocn/slide-swap/config.ts
new file mode 100644
index 00000000..f0f5fcdc
--- /dev/null
+++ b/registry/remocn/slide-swap/config.ts
@@ -0,0 +1,45 @@
+import { slideSwapExampleCode } from "@/components/docs/examples/slide-swap-example";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const slideSwapConfig: ComponentConfig = {
+ componentName: "SlideSwapScenes",
+ importPath: "@/components/remocn/slide-swap",
+ controls: {
+ axis: {
+ type: "select",
+ default: "x",
+ options: ["x", "y"],
+ label: "Axis",
+ },
+ inDistance: {
+ type: "number",
+ default: 0.28,
+ min: 0.05,
+ max: 0.8,
+ step: 0.01,
+ label: "Enter distance",
+ },
+ outDistance: {
+ type: "number",
+ default: 0.1,
+ min: 0,
+ max: 0.5,
+ step: 0.01,
+ label: "Exit distance",
+ },
+ slideFrames: {
+ type: "number",
+ default: 30,
+ min: 12,
+ max: 60,
+ step: 1,
+ label: "Enter window",
+ },
+ },
+ durationInFrames: 210,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+ snippet: slideSwapExampleCode,
+};
diff --git a/registry/remocn/slide-swap/index.tsx b/registry/remocn/slide-swap/index.tsx
new file mode 100644
index 00000000..a45d3fef
--- /dev/null
+++ b/registry/remocn/slide-swap/index.tsx
@@ -0,0 +1,173 @@
+"use client";
+
+import type { CSSProperties, ReactNode } from "react";
+import {
+ AbsoluteFill,
+ spring,
+ useCurrentFrame,
+ useVideoConfig,
+} from "remotion";
+
+export type SlideSwapConfig = {
+ sceneFrames: number;
+ slideFrames: number;
+ inDistance: number;
+ inDamping: number;
+ inStiffness: number;
+ inMass: number;
+ inFadeFrames: number;
+ outFrames: number;
+ outDistance: number;
+ outPower: number;
+};
+
+export const SLIDE_SWAP_DEFAULTS: SlideSwapConfig = {
+ sceneFrames: 70,
+ slideFrames: 30,
+ inDistance: 0.28,
+ inDamping: 60,
+ inStiffness: 300,
+ inMass: 0.5,
+ inFadeFrames: 24,
+ outFrames: 22,
+ outDistance: 0.1,
+ outPower: 5,
+};
+
+export type SlideAxis = "x" | "y";
+
+const translate = (axis: SlideAxis, v: number) =>
+ axis === "x" ? `translateX(${v}px)` : `translateY(${v}px)`;
+
+export const slideInStyle = (
+ e: number,
+ size: number,
+ fps: number,
+ config?: Partial<SlideSwapConfig>,
+ axis: SlideAxis = "x",
+): CSSProperties => {
+ const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };
+ if (e >= cfg.slideFrames) return {};
+ const p = spring({
+ frame: Math.max(e, 0),
+ fps,
+ config: {
+ damping: cfg.inDamping,
+ stiffness: cfg.inStiffness,
+ mass: cfg.inMass,
+ overshootClamping: true,
+ },
+ });
+ const tFade = Math.min(Math.max(e / cfg.inFadeFrames, 0), 1);
+ return {
+ transform: translate(axis, cfg.inDistance * size * (1 - p)),
+ opacity: 1 - (1 - tFade) * (1 - tFade),
+ willChange: "transform, opacity",
+ };
+};
+
+export const slideOutStyle = (
+ e: number,
+ size: number,
+ config?: Partial<SlideSwapConfig>,
+ axis: SlideAxis = "x",
+): CSSProperties => {
+ const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };
+ if (e <= 0) return {};
+ const t = Math.min(e / cfg.outFrames, 1);
+ return {
+ transform: translate(axis, -cfg.outDistance * size * t ** cfg.outPower),
+ opacity: 1 - t * t,
+ willChange: "transform, opacity",
+ };
+};
+
+export type SlideSwapSceneDef = {
+ name?: string;
+ durationInFrames?: number;
+ content: ReactNode;
+};
+
+export type SlideSwapPhase = "slide" | "dwell" | "exit";
+
+export type SlideSwapTimeline = {
+ index: number;
+ local: number;
+ dwellFrames: number;
+ phase: SlideSwapPhase;
+};
+
+export const slideSwapTimeline = (
+ frame: number,
+ scenes: SlideSwapSceneDef[],
+ config?: Partial<SlideSwapConfig>,
+ opts?: { loop?: boolean },
+): SlideSwapTimeline => {
+ const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };
+ const lens = scenes.map((s) => s.durationInFrames ?? cfg.sceneFrames);
+ const total = lens.reduce((a, b) => a + b, 0);
+ let w = opts?.loop
+ ? ((frame % total) + total) % total
+ : Math.min(frame, total - 1);
+ let index = 0;
+ while (index < scenes.length - 1 && w >= lens[index]) {
+ w -= lens[index];
+ index += 1;
+ }
+ const local = Math.min(w, lens[index] - 1);
+ const dwellFrames = lens[index];
+ const exits = index < scenes.length - 1 || Boolean(opts?.loop);
+ const enters = index > 0 || Boolean(opts?.loop);
+ const phase: SlideSwapPhase =
+ exits && local >= dwellFrames - cfg.outFrames
+ ? "exit"
+ : enters && local + 1 < cfg.slideFrames
+ ? "slide"
+ : "dwell";
+ return { index, local, dwellFrames, phase };
+};
+
+export interface SlideSwapScenesProps {
+ scenes: SlideSwapSceneDef[];
+ bg?: string;
+ axis?: SlideAxis;
+ config?: Partial<SlideSwapConfig>;
+ loop?: boolean;
+ style?: CSSProperties;
+}
+
+export function SlideSwapScenes({
+ scenes,
+ bg,
+ axis = "x",
+ config,
+ loop = false,
+ style,
+}: SlideSwapScenesProps) {
+ const frame = useCurrentFrame();
+ const { width, height, fps } = useVideoConfig();
+ const cfg = { ...SLIDE_SWAP_DEFAULTS, ...config };
+ const size = axis === "x" ? width : height;
+
+ const { index, local, dwellFrames, phase } = slideSwapTimeline(
+ frame,
+ scenes,
+ cfg,
+ { loop },
+ );
+ const cur = scenes[index];
+ const enters = index > 0 || loop;
+
+ const sceneStyle =
+ phase === "exit"
+ ? slideOutStyle(local - (dwellFrames - cfg.outFrames), size, cfg, axis)
+ : enters
+ ? slideInStyle(local + 1, size, fps, cfg, axis)
+ : undefined;
+
+ return (
+ <AbsoluteFill style={{ background: bg, ...style }}>
+ <AbsoluteFill style={sceneStyle}>{cur.content}</AbsoluteFill>
+ </AbsoluteFill>
+ );
+}
diff --git a/registry/remocn/spring-settle/config.ts b/registry/remocn/spring-settle/config.ts
new file mode 100644
index 00000000..c9390451
--- /dev/null
+++ b/registry/remocn/spring-settle/config.ts
@@ -0,0 +1,47 @@
+import { springSettleExampleCode } from "@/components/docs/examples/spring-settle-example";
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const springSettleConfig: ComponentConfig = {
+ componentName: "SpringSettleScenes",
+ importPath: "@/components/remocn/spring-settle",
+ controls: {
+ enterScale: {
+ type: "number",
+ default: 1.24,
+ min: 1,
+ max: 1.8,
+ step: 0.02,
+ label: "Enter scale",
+ },
+ enterStagger: {
+ type: "number",
+ default: 3,
+ min: 0,
+ max: 10,
+ step: 0.5,
+ label: "Stagger",
+ },
+ exitScale: {
+ type: "number",
+ default: 0.84,
+ min: 0.5,
+ max: 1,
+ step: 0.02,
+ label: "Exit scale",
+ },
+ exitFrames: {
+ type: "number",
+ default: 6,
+ min: 2,
+ max: 24,
+ step: 1,
+ label: "Exit frames",
+ },
+ },
+ durationInFrames: 213,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#141318" },
+ snippet: springSettleExampleCode,
+};
diff --git a/registry/remocn/spring-settle/index.tsx b/registry/remocn/spring-settle/index.tsx
new file mode 100644
index 00000000..c3dfd0fa
--- /dev/null
+++ b/registry/remocn/spring-settle/index.tsx
@@ -0,0 +1,275 @@
+"use client";
+
+import type { CSSProperties, ReactNode } from "react";
+import { createContext, useContext } from "react";
+import {
+ AbsoluteFill,
+ interpolate,
+ interpolateColors,
+ spring,
+ useCurrentFrame,
+ useVideoConfig,
+} from "remotion";
+import { CLAMP, FADE, stagger } from "@/lib/remocn/scene-motion";
+
+export type SpringSettleConfig = {
+ sceneFrames: number;
+ gapFrames: number;
+ enterScale: number;
+ enterFadeFrames: number;
+ enterStagger: number;
+ enterStaggerPower: number;
+ enterStaggerJitter: number;
+ springDamping: number;
+ springStiffness: number;
+ springMass: number;
+ exitFrames: number;
+ exitScale: number;
+ exitPower: number;
+ bgFadeFrames: number;
+};
+
+export const SPRING_SETTLE_DEFAULTS: SpringSettleConfig = {
+ sceneFrames: 70,
+ gapFrames: 1,
+ enterScale: 1.24,
+ enterFadeFrames: 5,
+ enterStagger: 3,
+ enterStaggerPower: 0.8,
+ enterStaggerJitter: 1,
+ springDamping: 30,
+ springStiffness: 320,
+ springMass: 1,
+ exitFrames: 6,
+ exitScale: 0.84,
+ exitPower: 5,
+ bgFadeFrames: 4,
+};
+
+export type SpringSettleSceneDef = {
+ name?: string;
+ bg?: string;
+ durationInFrames?: number;
+ content: ReactNode;
+};
+
+export type SpringSettlePhase = "enter" | "dwell" | "exit" | "gap";
+
+export type SpringSettleTimeline = {
+ index: number;
+ local: number;
+ dwellFrames: number;
+};
+
+type SceneClock = {
+ local: number;
+ cfg: SpringSettleConfig;
+ fps: number;
+};
+
+const SceneCtx = createContext<SceneClock | null>(null);
+
+const resolveConfig = (
+ config?: Partial<SpringSettleConfig>,
+): SpringSettleConfig => ({ ...SPRING_SETTLE_DEFAULTS, ...config });
+
+const dwellOf = (scene: SpringSettleSceneDef, cfg: SpringSettleConfig) =>
+ scene.durationInFrames ?? cfg.sceneFrames;
+
+export const springSettleTimeline = (
+ frame: number,
+ scenes: SpringSettleSceneDef[],
+ config?: Partial<SpringSettleConfig>,
+ opts?: { loop?: boolean },
+): SpringSettleTimeline => {
+ const cfg = resolveConfig(config);
+ const lens = scenes.map((s) => dwellOf(s, cfg) + cfg.gapFrames);
+ const total = lens.reduce((a, b) => a + b, 0);
+ let w = opts?.loop ? ((frame % total) + total) % total : frame;
+ let index = 0;
+ while (index < scenes.length - 1 && w >= lens[index]) {
+ w -= lens[index];
+ index += 1;
+ }
+ const local = Math.min(w, lens[index] - 1);
+ return { index, local, dwellFrames: dwellOf(scenes[index], cfg) };
+};
+
+export const springSettlePhase = (
+ timeline: SpringSettleTimeline,
+ fps: number,
+ config?: Partial<SpringSettleConfig>,
+): SpringSettlePhase => {
+ const cfg = resolveConfig(config);
+ const { local, dwellFrames } = timeline;
+ if (local >= dwellFrames) return "gap";
+ if (local >= dwellFrames - cfg.exitFrames) return "exit";
+ const settled =
+ spring({
+ frame: local,
+ fps,
+ config: {
+ damping: cfg.springDamping,
+ stiffness: cfg.springStiffness,
+ mass: cfg.springMass,
+ },
+ }) > 0.985;
+ return settled ? "dwell" : "enter";
+};
+
+export const springSettleExitStyle = (
+ local: number,
+ dwellFrames: number,
+ config?: Partial<SpringSettleConfig>,
+): CSSProperties => {
+ const cfg = resolveConfig(config);
+ const tExit = interpolate(
+ local,
+ [dwellFrames - cfg.exitFrames, dwellFrames],
+ [0, 1],
+ CLAMP,
+ );
+ if (tExit <= 0) return {};
+ const eExit = tExit ** cfg.exitPower;
+ return {
+ transform: `scale(${1 - (1 - cfg.exitScale) * eExit})`,
+ opacity: 1 - eExit,
+ willChange: "transform, opacity",
+ };
+};
+
+export interface SpringSettleEnterProps {
+ local: number;
+ config?: Partial<SpringSettleConfig>;
+ children: ReactNode;
+}
+
+export function SpringSettleEnter({
+ local,
+ config,
+ children,
+}: SpringSettleEnterProps) {
+ const { fps } = useVideoConfig();
+ return (
+ <SceneCtx.Provider value={{ local, cfg: resolveConfig(config), fps }}>
+ {children}
+ </SceneCtx.Provider>
+ );
+}
+
+export interface SpringSettleItemProps {
+ index?: number;
+ style?: CSSProperties;
+ children: ReactNode;
+}
+
+export function SpringSettleItem({
+ index = 0,
+ style,
+ children,
+}: SpringSettleItemProps) {
+ const clock = useContext(SceneCtx);
+ if (!clock) {
+ return <div style={style}>{children}</div>;
+ }
+ const { local, cfg, fps } = clock;
+ const tEnter =
+ local -
+ stagger(
+ index,
+ cfg.enterStagger,
+ cfg.enterStaggerPower,
+ cfg.enterStaggerJitter,
+ );
+ const enterP = spring({
+ frame: tEnter,
+ fps,
+ config: {
+ damping: cfg.springDamping,
+ stiffness: cfg.springStiffness,
+ mass: cfg.springMass,
+ },
+ });
+ const scaleEnter = interpolate(enterP, [0, 1], [cfg.enterScale, 1]);
+ const opacityEnter = interpolate(tEnter, [0, cfg.enterFadeFrames], [0, 1], {
+ ...CLAMP,
+ easing: FADE,
+ });
+ return (
+ <div
+ style={{
+ ...style,
+ transform: `scale(${scaleEnter})`,
+ opacity: opacityEnter,
+ willChange: "transform, opacity",
+ }}
+ >
+ {children}
+ </div>
+ );
+}
+
+const wrapSigned = (d: number, total: number) =>
+ (((d % total) + total * 1.5) % total) - total / 2;
+
+export interface SpringSettleScenesProps {
+ scenes: SpringSettleSceneDef[];
+ config?: Partial<SpringSettleConfig>;
+ loop?: boolean;
+ style?: CSSProperties;
+}
+
+export function SpringSettleScenes({
+ scenes,
+ config,
+ loop = false,
+ style,
+}: SpringSettleScenesProps) {
+ const frame = useCurrentFrame();
+ const cfg = resolveConfig(config);
+
+ const lens = scenes.map((s) => dwellOf(s, cfg) + cfg.gapFrames);
+ const total = lens.reduce((a, b) => a + b, 0);
+ const { index, local, dwellFrames } = springSettleTimeline(
+ frame,
+ scenes,
+ cfg,
+ { loop },
+ );
+
+ const n = scenes.length;
+ const cur = scenes[index];
+ const prev = loop ? scenes[(index - 1 + n) % n] : scenes[index - 1];
+ const next = loop ? scenes[(index + 1) % n] : scenes[index + 1];
+
+ const w = loop ? ((frame % total) + total) % total : frame;
+ const slotStart = w - local;
+ const half = Math.max(cfg.bgFadeFrames, 0.001) / 2;
+ let bg = cur.bg;
+ if (prev?.bg && cur.bg) {
+ let d = w - (slotStart - cfg.gapFrames / 2);
+ if (loop) d = wrapSigned(d, total);
+ if (Math.abs(d) <= half) {
+ bg = interpolateColors(d, [-half, half], [prev.bg, cur.bg]);
+ }
+ }
+ if (next?.bg && cur.bg && bg === cur.bg) {
+ let d = w - (slotStart + dwellFrames + cfg.gapFrames / 2);
+ if (loop) d = wrapSigned(d, total);
+ if (Math.abs(d) <= half) {
+ bg = interpolateColors(d, [-half, half], [cur.bg, next.bg]);
+ }
+ }
+
+ return (
+ <AbsoluteFill style={{ background: bg, ...style }}>
+ {local < dwellFrames ? (
+ <AbsoluteFill style={springSettleExitStyle(local, dwellFrames, cfg)}>
+ <SpringSettleEnter local={local} config={cfg}>
+ {cur.content}
+ </SpringSettleEnter>
+ </AbsoluteFill>
+ ) : null}
+ </AbsoluteFill>
+ );
+}
diff --git a/tsconfig.json b/tsconfig.json
index f3b7fd50..f6bedaa8 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -24,6 +24,7 @@
"@/lib/remocn-ui": ["./registry/remocn-ui/core/index.ts"],
"@/lib/remocn-ui/*": ["./registry/remocn-ui/core/*"],
"@/lib/remocn/stop-motion": ["./registry/remocn/stop-motion/index.ts"],
+ "@/lib/remocn/scene-motion": ["./registry/remocn/scene-motion/index.ts"],
"@/components/remocn/brush": ["./registry/remocn/brush/index.tsx"],
"@/components/remocn/handwrite": [
"./registry/remocn/handwrite/index.tsx"