Skip to main content

Rotating Starburst

A <Solid> background with a slowly rotating starburst() effect.

Preview

Use it

Copy the source code into your Remotion project. The file exports the Element component. Preview dimensions, frame rate, and duration are supplied by the gallery.

Source

rotating-starburst.tsx
import {starburst} from '@remotion/starburst'; import React from 'react'; import {interpolate, Solid, useCurrentFrame} from 'remotion'; export const RotatingStarburst: React.FC = () => { const frame = useCurrentFrame(); return ( <Solid color="#dff4ff" width={1920} height={1080} effects={[ starburst({ rays: 28, colors: ['#dff4ff', '#7cc6ff'], rotation: interpolate(frame, [0, 2000], [0, 360]), origin: [0.5, 0.5], }), ]} /> ); };