Integration
Getting embed parameters
Embedding in your page
Available templates
| Template | Description |
|---|---|
PARTICLE_IMPACT | Particle system visualizing CO2 volume — fewer particles = lower impact |
GRADIENT_SCORE | Dynamic gradient background that shifts based on sustainability score |
WAVE_COMPARISON | Wave effect comparing two products |
ORB_DASHBOARD | Floating orb with rotating metrics |
Data mapping
| Variable | Type | Description |
|---|---|---|
co2Score | Float | CO2 equivalent value |
mkiScore | Float | MKI score |
scoreCategory | String | low, medium, high — controls visual intensity |
primaryColor | String | Hex color for the visual effect |
particleCount | Int | Number of particles (derived from impact) |
animationSpeed | Float | Animation speed multiplier |
Performance
Unicorn Studio uses WebGL. For optimal performance:- Set a fixed container height to prevent layout shifts
- Use
loading="lazy"for below-the-fold scenes - The SDK automatically falls back to a static image on unsupported browsers