Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/developer-dossier/llms.txt
Use this file to discover all available pages before exploring further.
RedactedReveal wraps any inline text children and applies a two-layer Framer Motion animation that looks like a classified document having its redaction bar removed. On scroll, a solid black overlay wipes away left-to-right to expose the text underneath, immediately followed by a neon lime sweep that blazes across the newly revealed word like a highlighter — then vanishes — leaving the text fully legible. It is used sparingly in the About page bio to add dramatic weight to key phrases.
How the Animation Works
The component renders three stacked layers inside aposition: relative inline-block wrapper:
-
Text layer (
z-0): thechildrenare rendered at the bottom of the stack intext-tinted, always present in the DOM but initially hidden behind the overlays above. -
Black redaction overlay (
z-10,bg-ink): amotion.spanthat starts covering the text entirely usingclipPath: inset(0 0 0 0). On scroll, it transitions toclipPath: inset(0 0 0 100%), which collapses the clip region from the left — revealing the text beneath in a left-to-right wipe over0.6s. -
Lime sweep overlay (
z-20,bg-lime): a secondmotion.spanpositioned on top of the black layer. It starts atwidth: 100%aligned to the left edge and simultaneously shrinks towidth: 0%while itsleftposition advances to100%— creating a bright neon highlight that races across the word and disappears, as if a highlighter pen just swept over it.
duration: 0.6, delay: 0.2, and ease: "easeInOut" transition, keeping them in precise sync. The viewport: { once: true, margin: "-100px" } option fires the animation just before the element reaches the visible viewport edge, so it never triggers prematurely at the top of a long page.
Props
The inline text content to be revealed. Typically a word or short phrase embedded inside a paragraph. The children are rendered at
z-0 beneath both animation overlays and exposed when the wipe completes.Usage
About Page Bio
RedactedReveal is an inline component (display: inline-block). It adds mx-1 horizontal margin so revealed words sit with natural spacing within surrounding sentence text — no extra padding or wrapper spans needed at the call site.