.glass-panel carries a cursor-tracked sheen in its ::after: a soft circle
of light positioned by --talos-mx and --talos-my and brightened by
--talos-sheen. CSS alone never writes the position, so without help the
light sits centred. <talos-sheen> is the hand on that dial: it listens to the
pointer and writes the three properties on whichever panel is under it. It adds
no new visual; it turns on one that was designed in.
The sheen is an affordance, not telemetry. It says “this surface is under the
pointer”, the same claim as cursor: pointer, and pointer position is the
only datum it reflects.
Tracking panels
eu-west-3
182 ms
0
<talos-sheen>
<div class="glass-panel">
<div class="glass-panel-content">…</div>
</div>
<div class="glass-panel">
<div class="glass-panel-content">…</div>
</div>
</talos-sheen>
Move the pointer across the panels: the light follows it inside the panel it is
over and fades when it leaves. One delegated listener on the host covers any
number of panels, including panels added later, so nothing rebinds. The
@property registration of the three custom properties lets the browser ease
the spotlight, so raw pointer coordinates still read as a smooth trail.
Under prefers-reduced-motion: reduce the position still tracks but the
brightness stays at 0: no glow ramps up for users who opted out of motion.
Custom selector
.sheen-target
plain .glass-panel
<talos-sheen selector=".sheen-target">
<div class="glass-panel sheen-target">…</div> <!-- lit -->
<div class="glass-panel">…</div> <!-- stays dark -->
</talos-sheen>
selector picks which descendants track (default .glass-panel). The target
must still draw the sheen, which .glass-panel does; a surface without that
::after receives the properties and shows nothing. radius is informational:
the circle’s size is owned by the CSS (240px).
With interactive panels
.interactive-panel raises --talos-sheen to 1 on :hover by itself, so its
light appears without <talos-sheen>, but centred. Wrap interactive panels in
<talos-sheen> to make the light follow the pointer. See
Glass panel.
Attributes
Generated from custom-elements.json in the installed package.
Shared attributes (state, format, static…) behave as the
instrument contract describes.
| Attribute | Type | Default | Description |
|---|---|---|---|
selector | string | .glass-panel | which descendants to track. |
radius | string | — | sheen ramp-down, px (informational; CSS owns the size) Read on render, not observed: set it before the element connects. |