About Ambient Effects
Ambient background effects use CSS animations and pseudo-elements to create subtle, continuous motion in your backgrounds. All effects are GPU-accelerated for smooth 60fps performance and automatically layer content on top using z-index positioning.
will-change: transform and
only animate transform and opacity properties for optimal GPU acceleration.
Rotating Gradients
Gentle rotating radial and linear gradients that create a sense of subtle motion
Rotate Glow
A single radial gradient rotating slowly
<div class="bg-ambient-rotate-glow">
<h1>Your Content Here</h1>
</div>
Rotate Dual
Two overlapping gradients rotating in opposite directions
<div class="bg-ambient-rotate-dual">
<h1>Your Content Here</h1>
</div>
Rotate Spotlight
Off-center rotating light beam effect
<div class="bg-ambient-rotate-spotlight">
<h1>Your Content Here</h1>
</div>
Floating Shapes
Soft gradient shapes that drift and morph across the background
Float Blobs
Morphing gradient circles that drift around
<div class="bg-ambient-float-blobs">
<h1>Your Content Here</h1>
</div>
Float Orbs
Multiple floating semi-transparent orbs
<div class="bg-ambient-float-orbs">
<h1>Your Content Here</h1>
</div>
Float Particles
Tiny dots drifting upward like dust motes
<div class="bg-ambient-float-particles">
<h1>Your Content Here</h1>
</div>
Wave & Ripple Effects
Flowing patterns and expanding ripples for dynamic backgrounds
Wave
Subtle sine wave undulation across the background
<div class="bg-ambient-wave">
<h1>Your Content Here</h1>
</div>
Ripple
Concentric rings expanding outward from center
<div class="bg-ambient-ripple">
<h1>Your Content Here</h1>
</div>
Aurora
Northern lights style flowing colours
<div class="bg-ambient-aurora">
<h1>Your Content Here</h1>
</div>
Modifiers
Adjust speed and intensity of ambient effects to suit your design
Speed Modifiers
Control animation speed with modifier classes
.bg-ambient-slow
.bg-ambient-normal
.bg-ambient-fast
<div class="bg-ambient-rotate-glow bg-ambient-slow">Slow</div>
<div class="bg-ambient-rotate-glow bg-ambient-normal">Normal</div>
<div class="bg-ambient-rotate-glow bg-ambient-fast">Fast</div>
Intensity Modifiers
Control effect opacity for subtle or intense effects
.bg-ambient-subtle
.bg-ambient-intense
<div class="bg-ambient-aurora bg-ambient-subtle">Subtle</div>
<div class="bg-ambient-aurora bg-ambient-intense">Intense</div>
Combining Modifiers
Speed and intensity modifiers can be combined
<div class="bg-ambient-aurora bg-ambient-fast bg-ambient-intense">
<h1>Your Content Here</h1>
</div>
Usage Guide
How It Works
- All effects use
::beforeor::afterpseudo-elements - Content automatically sits on top via
z-index: 1 - Parent element must have
position: relative(automatically applied) - Parent element gets
overflow: hiddento contain effects
Best Practices
- Use subtle effects for content-heavy sections
- Increase intensity for hero sections and CTAs
- Combine with dark backgrounds for best visibility
- Test on mobile devices for performance