X-ray Spotlight
X-ray · layers
Parameters
How this effect works
There are two copies of the same page stacked on top of each other: the finished design below, and its "skeleton" above — same layout, but styled as a wireframe (transparent boxes, dashed outlines, a blueprint grid, and a tag label on every element saying what it really is). The X-ray layer is fully there the whole time; you just can't see it, because a mask-image with a radial gradient makes it visible only inside a circle around the cursor. Moving the lens costs one CSS property per frame — the browser does all the clipping on the GPU.
The edge softness is simply where the gradient fades from opaque to transparent: 0 gives a surgical porthole, 40+ gives a dreamy torchlight. The lens glides after the cursor with a small chase-lerp, which is what makes it feel like a physical instrument instead of a div glued to the mouse. This effect is a TinkerFX signature: it's our whole philosophy — every polished thing is understandable underneath — turned into a toy.