Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/fortune-seeker/llms.txt
Use this file to discover all available pages before exploring further.
CandleFlame is a small, self-contained ambient decoration rendered in fixed position at the bottom corners of every page via the Layout component. It depicts a realistically flickering candle — wax body, wick, and a layered animated flame — that continuously animates without any user interaction. Its position prop lets you place the candle in either the bottom-right or bottom-left corner of the viewport.
Props
Determines which corner of the viewport the candle occupies. Defaults to
"bottom-right". The Layout component renders one candle at each corner by passing "bottom-left" and "bottom-right" respectively.Usage Example
Behavior & Animation
Structure
The candle is composed of three layers stacked inside a2rem × 3rem relative container:
- Wax body — A
1rem × 1.5remrectangle with agray-300-to-gray-600vertical gradient and slightly rounded top corners, anchored to the bottom of the container. - Wick — A thin
2px × 0.5remobsidian strip rising from the top center of the wax body. - Flame — A
1rem × 2remFramer Motiondivpositioned above the wick, usingorigin-bottomso it pivots realistically from its base.
Flame Animation
The flamediv continuously loops with repeatType: "mirror" at a 0.5s duration using easeInOut. On each cycle it:
- Scales vertically between
1.0,1.1,0.9,1.05, and back to1.0, producing a realistic elongation-and-compression flicker. - Scales horizontally between
1.0,0.9,1.1,0.95, and back to1.0— the inverse of the vertical scale — so the flame narrows when tall and widens when short. - Rotates between
−2°,2°,−1°,3°, and0°, giving the impression of a gentle ambient air current.
| Layer | Description |
|---|---|
| Gold blur halo | A gold semi-transparent div with blur-md, scaled to 150% and raised 0.5rem, creating the warm outer glow. |
| Gradient flame body | A rounded shape with border-radius: 50% 50% 20% 20% gradient from blue-500 (base) through gold to transparent (tip), with a 1px blur for softness. |
| White hot core | A small 0.5rem × 0.75rem white rounded pill centered at the base of the flame, simulating the hottest part of the combustion zone. |
pointer-events-none at z-index: 0 and opacity: 80% so it sits unobtrusively behind interactive content.
CandleFlame is already included in Layout at both bottom corners. You only need to import and use it directly if you are building a custom layout or a standalone page outside the standard Fortune Seeker shell.