🦃 Thanksgiving pricing is live: save $50 on Starwind Pro lifetime access.

Heatmap

Free

Sends glowing waves of heat colors through a logo, with inner and outer glow, contour heat, and grain. Adapted from Heatmap by Paper Shaders (shaders.paper.design) under the Apache 2.0 license.

Upgrade to Pro
Loading code...

Starwind Dependencies

Sign in to view code and copy install commands.

Sign in

This component requires Starwind Pro.

Get lifetime access to all premium components, updates, and priority support.

Upgrade to Pro

Failed to load code. Please try again.

Code

Usage
<ShaderHeatmap
  heatColor1="#11206a"
  heatColor2="#1f3ba2"
  heatColor3="#2f63e7"
  heatColor4="#6bd7ff"
  heatColor5="#ffe679"
  heatColor6="#ff991e"
  heatColor7="#ff4c00"
  backgroundColor="#000000"
  heatColorCount={7}
  logoSrc="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='465' height='427' viewBox='21 28 465 427'%3E %3Cpath fill='%23000' d='M274 38 318 171h-25l-19-52-18 52h-26z'/%3E %3Cpath fill='%23000' d='m356 286 43 137-116-84 21-16 41 31-11-53z'/%3E %3Cpath fill='%23000' d='M31 185h445L115 445l234-217z'/%3E%3C/svg%3E"
  contourHeat={0.5}
  grainNoise={0}
  innerGlow={0.5}
  outerGlow={0.5}
  waveAngle={0}
  heatSpeed={1}
  graphicScale={0.75}
  graphicRotation={0}
  graphicOffsetX={0}
  graphicOffsetY={0}
/>

Props

proptypedefaultdescription
logoSrc string required Logo URL. Use an SVG or PNG with a transparent background. The URL must be same-origin or served with CORS headers. Required, because the effect needs a shape.
logoLabel string "" Accessible name for the logo. Leave it empty when the effect is decorative.
heatColorCount number 7 Number of active heat colors, from 1 to 7.
heatColor1 string #11206a Heat color 1 as a CSS color.
heatColor2 string #1f3ba2 Heat color 2 as a CSS color.
heatColor3 string #2f63e7 Heat color 3 as a CSS color.
heatColor4 string #6bd7ff Heat color 4 as a CSS color.
heatColor5 string #ffe679 Heat color 5 as a CSS color.
heatColor6 string #ff991e Heat color 6 as a CSS color.
heatColor7 string #ff4c00 Heat color 7 as a CSS color.
backgroundColor string #000000 Color behind the logo. Accepts any CSS color.
contourHeat number 0.5 Heat near the logo edges. Range 0 to 1.
waveAngle number 0 Direction of the heat waves in degrees. Needs inner or outer glow above 0. Range 0 to 360.
grainNoise number 0 Grain over the whole graphic. Range 0 to 1.
innerGlow number 0.5 Size of the heated area inside the logo. Range 0 to 1.
outerGlow number 0.5 Size of the heated area outside the logo. Range 0 to 1.
heatSpeed number 1 Animation speed. 0 stops the animation. Range 0 to 2.
graphicScale number 0.75 Overall zoom level of the graphic.
graphicRotation number 0 Rotation of the graphic in degrees.
graphicOffsetX number 0 Horizontal offset of the graphic center.
graphicOffsetY number 0 Vertical offset of the graphic center.
graphicFit "none" | "contain" | "cover" contain How the graphic fits the box.
opacity number 1 Sets the opacity of the whole block.
maxDpr number 1.5 Caps device pixel ratio for sharper output without runaway GPU cost.
maxFps 30 | 45 | 60 60 Caps the animation frame rate for performance-sensitive pages.