Skip to content

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

1.9 KB
Raw Blame
---
title: Nebula
description: Grain Gradient preset. Magenta and cyan glow blooming from the corners of deep space
component: shader-grain-gradient-nebula
vibe: tech
length: 150
useWhen:
  - "A cosmic, mysterious intro for AI or space-themed products."
  - "Foreground is light text or a bright product shot that needs a dark field around it."
  - "You want a finished Grain Gradient look without tuning the palette and parameters yourself."
avoidWhen:
  - "The video must use your brand colors — start from `shader-grain-gradient` and set `colors`."
  - "You want a lighter, contrasting mood from the same shader — use `shader-grain-gradient-blush`."
askedAs:
  - "space nebula background"
  - "magenta cyan cosmic glow"
  - "I want deep space with magenta and cyan light blooming from the corners"
  - "mysterious cosmic intro for an AI product"
  - "dark grainy galaxy backdrop for bright text"
  - "purple blue starless nebula haze"
---

<ComponentPreview name="shader-grain-gradient-nebula" />

<InstallBlock name="shader-grain-gradient-nebula" />

Installs [Grain Gradient](/docs/shaders/components/shader-grain-gradient) 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 { ShaderGrainGradientNebula } from "@/components/remocn/shader-grain-gradient-nebula";

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

ShaderGrainGradientNebula takes the same props as `ShaderGrainGradient`. 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).