Skip to content

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

2.0 KB
Raw Blame
---
title: Gem Smoke
description: Animated color fields flowing behind and inside a glassy logo silhouette
component: shader-gem-smoke
vibe: premium
length: 150
useWhen:
  - "Brand or logo reveals that want smoke living inside and around a mark."
  - "You have a static brand asset (SVG/PNG) to feed as `image` and want it treated as a glassy silhouette."
  - "A premium product intro wants color fields flowing through a recognizable shape."
avoidWhen:
  - "You have no logo or mark to feed as `image` — use `shader-smoke-ring` or `shader-neuro-noise` for a shapeless field instead."
  - "The brand mark should stay static and legible — the smoke will distort its read."
askedAs:
  - "smoke inside logo"
  - "logo filled with color flow"
  - "I want my logo shape to be glassy with colored fog moving in and around it"
  - "brand reveal where a static svg looks like crystal with swirling color"
  - "hero for a mark with living gradient inside the silhouette"
  - "logo silhouette as a window onto flowing color"
---

<ComponentPreview name="shader-gem-smoke" />

<InstallBlock name="shader-gem-smoke" />

## Usage

Feed it a brand mark via `image` — a URL, e.g. `staticFile("symbol.svg")`. The
shape is processed once and cached, so smoke lives behind and inside the glassy
silhouette and every frame renders the same smoke at the same time.

```tsx
// src/Root.tsx
import { Composition, staticFile } from "remotion";
import { ShaderGemSmoke } from "@/components/remocn/shader-gem-smoke";

const ShaderGemSmokeScene = () => (
  <ShaderGemSmoke
    image={staticFile("symbol.svg")}
    speed={1}
    colorBack="#0a0a10"
    size={0.8}
  />
);

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

Driven deterministically by the current frame (`frame` from
`useCurrentFrame()`), so renders stay identical. Any other `GemSmoke` prop is
forwarded through.

## Credits

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