Swirl
Concentric bands swirling around a center point
Installation
$ pnpm dlx shadcn@latest add @remocn/shader-swirlUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ShaderSwirl } from "@/components/remocn/shader-swirl";
const ShaderSwirlScene = () => (
<ShaderSwirl speed={1} bandCount={4} twist={0.1} />
);
export const RemotionRoot = () => (
<Composition
id="ShaderSwirl"
component={ShaderSwirlScene}
durationInFrames={150}
fps={30}
width={1280}
height={720}
/>
);Presets
Ready-made looks, each a standalone registry item that pulls in shader-swirl as a dependency. Install one and drop it in like the base shader. Props you pass override the preset, and speed scales the preset's own pace instead of replacing it.
import { ShaderSwirlCandy } from "@/components/remocn/shader-swirl-candy";
export const Background = () => <ShaderSwirlCandy />;Credits
Shader by paper-design/shaders.