Skip to content

Convection

A background of rising heat drawn only as contour lines.

$149 once · every Pro piece

Customize

A single-pass WebGL shader evaluates a domain-warped noise field that drifts slowly upward and draws each level as a 1px line, white at 9%, black between. The field runs warm toward the bottom edge, where the top band of lines takes the accent ramp; the pointer adds a local heat source that bends the contours around it. Falls back to a few static hairlines without WebGL.

Install

npx shadcn@latest add @obsyde/convection

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Convection } from '@/components/obsyde/ember/convection/Convection';

export function Example() {
  return (
    <Convection />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/convection/Convection.tsxcomponent
  • ember/convection/convection-demo.cssstyles
  • ember/convection/convection.cssstyles
  • ember/convection/ConvectionDemo.tsxdemo
  • ember/effects-kit/kit.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
speedSpeednumber1
densityContour levelsnumber14
interactiveInteractivebooleantrue