Skip to content

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

1.7 KB
Raw Blame
---
title: Candy
description: Swirl preset. Pastel pink, lilac and sky-blue spiral, soft and sweet
component: shader-swirl-candy
vibe: playful
length: 150
useWhen:
  - "A sweet, pastel opener for a playful consumer product."
  - "The frame is light, so dark foreground text and UI stay readable on top."
  - "You want a finished Swirl look without tuning the palette and parameters yourself."
avoidWhen:
  - "The video must use your brand colors — start from `shader-swirl` and set `colors`."
  - "You want a darker, contrasting mood from the same shader — use `shader-swirl-hypno`."
askedAs:
  - "candy swirl pastel"
  - "pink lilac blue spiral"
  - "I want a sweet pastel spiral in pink, lilac and sky blue"
  - "playful opener for a consumer product with light colors"
  - "soft cotton candy vortex"
  - "bubblegum pastel swirl"
---

<ComponentPreview name="shader-swirl-candy" />

<InstallBlock name="shader-swirl-candy" />

Installs [Swirl](/docs/shaders/components/shader-swirl) as a dependency. This file only fixes its look: the preset object at the top holds every value, so edit it in place to make the preset your own.

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ShaderSwirlCandy } from "@/components/remocn/shader-swirl-candy";

export const RemotionRoot = () => (
  <Composition
    id="ShaderSwirlCandy"
    component={ShaderSwirlCandy}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);
```

ShaderSwirlCandy takes the same props as `ShaderSwirl`. Props you pass override the preset, except `speed`, which scales the preset's own pace: `speed={2}` is twice as fast as the preset, whatever its base speed.

## Credits

Shader by [paper-design/shaders](https://github.com/paper-design/shaders).