Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/cosmic-developer/llms.txt
Use this file to discover all available pages before exploring further.
AuroraBackground wraps four large, softly blurred Framer Motion div elements in the portfolio’s signature accent palette to simulate the sweeping glow of the aurora borealis across the night sky. Each blob drifts, breathes, and pulses independently through a looping animation, giving the background a sense of life without distracting from the content above it.
Usage
Mount<AuroraBackground /> once at the app root, directly after <StarfieldBackground />. It requires no props.
How It Works
The component renders a fixed, full-viewport container (fixed inset-0 overflow-hidden) set to opacity-60 mix-blend-screen. Inside it sit four absolutely positioned motion.div blobs. Each blob is a large rounded-full div with a heavy CSS blur filter applied, producing the diffused glow effect.
The four aurora blobs
| Blob | Color token | Blur | Position | Animation duration |
|---|---|---|---|---|
| Teal orb | bg-aurora-teal/30 | blur-[120px] | Top-left (-10% / -10%) | 20 s |
| Magenta orb | bg-aurora-magenta/20 | blur-[150px] | Top-right (20% / -10%) | 25 s |
| Green orb | bg-aurora-green/20 | blur-[130px] | Bottom-center (-20% / 20%) | 22 s |
| Violet orb | bg-aurora-violet/20 | blur-[100px] | Center (40% / 40%) | 18 s |
repeat: Infinity and ease: "easeInOut", keyframing through x, y, and scale values so the blobs drift across one another and swell gently over time.
Framer Motion keyframe loop
Every blob uses an
animate prop with array values for x, y, and scale — e.g. x: ["0%", "20%", "0%"]. Framer Motion interpolates between each keyframe and loops back to the start, producing a seamless drift with no abrupt jumps.Staggered delays
Each blob carries a different
delay value (0 s, 2 s, 5 s, 1 s), so they never all peak at the same position simultaneously. This staggering prevents the colours from blending into a single muddy hue.Color References
The aurora blobs use Tailwind color tokens defined in the project’s theme. Here are the exact values alongside their usage:Z-Index Layering
The container div uses-z-10, which places it:
AuroraBackground sits above the starfield deliberately. The two layers blend together at their boundary — the aurora’s soft glow illuminates the stars around it, just as real atmospheric light scatters across the night sky.Customization
Blob colours
Swap any
bg-aurora-* class for another theme token or an arbitrary value like bg-[#ff6b35]/20 to shift the palette.Blur intensity
Increase
blur-[120px] for a more diffused, wider glow; decrease it for tighter, more defined light pools. Values range from blur-[100px] to blur-[150px] in the source.Animation speed
Change the
duration inside each blob’s transition object. Lower values produce faster, more energetic movement; higher values create a slow, meditative drift.Opacity
The container has
opacity-60. Raising it toward opacity-100 makes the aurora more vivid; lowering it toward opacity-30 produces a subtler tint.