Click-to-Reveal Overlay with lc_action_* and lc_target_*

lc_action_ and lc_target_ work together to create an interactive click-to-reveal experience inside SVG slides. An lc_action_* element renders as a clickable underlined label. When clicked, the matching lc_target_* group opens in a frosted-glass modal overlay, with optional narration text read aloud via TTS.


Naming Convention

Both elements share a prefix and an identifier that link them together:

<prefix>_lc_action_<identifier>   β€” clickable label
<prefix>_lc_target_<identifier>   β€” hidden group revealed in modal
Part Description Example
<prefix> Arbitrary grouping name (e.g. chart name) chart1, wow, slide
<identifier> Shared key that pairs the action with its target revenue, details, trend

The prefix and identifier must match exactly for the system to pair the action with its target.

Pairing examples:

Action ID Target ID
chart1_lc_action_revenue chart1_lc_target_revenue
wow_lc_action_details wow_lc_target_details
slide_lc_action_info slide_lc_target_info

Element Identification

  • lc_action_* β€” a <text> or <rect> element. Text elements get a dotted underline; rect elements also get a hyperlink icon.
  • lc_target_* β€” a <g> (group) element, hidden by default and revealed in the modal when the matching action is clicked. The override value becomes the narration text spoken via TTS.
  • lc_glass_* β€” a <rect> placed inside the lc_target_* group that defines the overlay’s position and size. Give it a fill color to set the backdrop tint (defaults to black at 25% opacity).

Input Format

lc_action_* β€” Label Text

The override value sets the display text on the clickable label. If no override is set, the original SVG text is used.

"Learn more"

lc_target_* β€” Narration Text

The override value is the narration text displayed and spoken in the modal.

"Revenue grew 12% YoY due to new enterprise accounts."

With Liquid variables:

"The {{metric_name}} showed a {{change_pct}}% change compared to {{previous_period}}."

If no narration text is set, the default message is:

Click on the X in the top-right corner to continue.

Important Notes:

  • Presentation playback pauses when the overlay opens and resumes when it closes
  • Close the overlay by clicking the X button, pressing Escape, or clicking outside the card
  • Multiple independent action/target pairs can coexist on a single slide
  • If no matching target is found for an action, no overlay opens
  • The lc_glass_* element is not visible in the overlay β€” it is only used for positioning

Compatibility: lc_action_* works with <text> and <rect> elements. lc_target_* works with <g> (group) elements.

Example Usage

Example 1: Basic Revenue Detail

Action element:

ID: chart1_lc_action_revenue
Text: "Learn more"

Target element:

ID: chart1_lc_target_revenue
Value: "Revenue grew 12% YoY due to new enterprise accounts."

Clicking β€œLearn more” pauses playback and opens a glass overlay showing the revenue content, while narrating the explanation.

Example 2: Multiple Pairs on One Slide

Action: wow_lc_action_details  β†’ Target: wow_lc_target_details
Action: wow_lc_action_trend    β†’ Target: wow_lc_target_trend

Each pair works independently β€” clicking one action opens only its corresponding target overlay.

Example 3: No Narration Text

Action: slide_lc_action_info
Target: slide_lc_target_info   (no override value set)

The glass overlay opens with the target content. The default narration β€œClick on the X in the top-right corner to continue.” is spoken.

Designer Guidelines

  • Use a <text> element for simple link-style labels β€” the player adds a dotted underline automatically
  • Use a <rect> element for button-style actions β€” the player creates a text label with a hyperlink icon and truncates long labels to fit
  • Place an lc_glass_* rect inside the target group to define the overlay position and size
  • Add content elements (text, charts, shapes) inside the target group β€” these appear in the modal
  • On desktop, design for the full slide viewBox dimensions; on mobile, consider a taller, narrower glass rect

Highlight Integration

  • lc_action_* follows the standard highlight system β€” fully visible when highlighted, dimmed when not
  • lc_target_* is always skipped in highlighting β€” it remains hidden and is only rendered via the glass overlay

This site uses Just the Docs, a documentation theme for Jekyll.