unslopkit

Components / Tooltips and popovers

Price tag hotspots

Dots on a picture that each pull out a paper price tag with the name, the price, and what is left. For shop the look and labelled diagrams.

Tall mug$28 · 6 left Bud vase$34 · 3 left Noodle bowl$42 · 2 left
Autumn firing, ash glaze. Point at a dot for the price.
Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-tooltip-price-tag">
<figure class="look">
  <div class="scene">
    <svg viewBox="0 0 280 130" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 113h264M44 113v10M236 113v10"/><path d="M30 62h38v44a6 6 0 0 1-6 6H36a6 6 0 0 1-6-6z"/><path d="M68 72h5a9 11 0 0 1 0 22h-5"/><path d="M115 32c0 14-17 26-17 48 0 18 10 32 22 32s22-14 22-32c0-22-17-34-17-48z"/><path d="M120 32V12M120 22c7-1 10-5 10-11"/><path d="M196 84h60c0 16-12 28-30 28s-30-12-30-28z"/></svg>
    <span class="spot" style="--x: 17.5%; --y: 66%"><button type="button" aria-label="Tall mug" aria-describedby="ukc-tooltip-price-tag-mug"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button><span class="tag" role="tooltip" id="ukc-tooltip-price-tag-mug"><b>Tall mug</b><span>$28 · 6 left</span></span></span>
    <span class="spot show" style="--x: 43%; --y: 47%"><button type="button" aria-label="Bud vase" aria-describedby="ukc-tooltip-price-tag-vase"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button><span class="tag" role="tooltip" id="ukc-tooltip-price-tag-vase"><b>Bud vase</b><span>$34 · 3 left</span></span></span>
    <span class="spot flip" style="--x: 80.5%; --y: 75%"><button type="button" aria-label="Noodle bowl" aria-describedby="ukc-tooltip-price-tag-bowl"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button><span class="tag" role="tooltip" id="ukc-tooltip-price-tag-bowl"><b>Noodle bowl</b><span>$42 · 2 left</span></span></span>
  </div>
  <figcaption>Autumn firing, ash glaze. Point at a dot for the price.</figcaption>
</figure>
</div>

More tooltips and popovers

All 26
  • Loaves sold per hour
    • Today
    • Last Saturday
    1. 7:00 to 8:00Today12Last Sat102 more than last week
    2. 8:00 to 9:00Today31Last Sat265 more than last week
    3. 9:00 to 10:00Today44Last Sat359 more than last week
    4. 10:00 to 11:00Today38Last Sat413 fewer than last week
    5. 11:00 to 12:00Today52Last Sat4012 more than last week
    6. 12:00 to 13:00Today47Last Sat3611 more than last week
    7. 13:00 to 14:00Today29Last Sat301 fewer than last week
    8. 14:00 to 15:00Today18Last Sat224 fewer than last week

    Line chart crosshair

  • Low Tide, mix v3

    4:12 · 24 bit WAV

    Share

    Share this mix

    Who can listen

    Link stops working on 12 December

    Share popover

  • Link preview card

  • Lane rates per mile, week 48
    LaneFuelRate
    Reno to Boise$0.42$2.10
    Reno to Fresno$0.42Ines Cabral Tue 24 NovUp 30 cents. Chain controls on Donner Pass add about two hours each way.
    Reno to Salt Lake$0.47Marek Dvorak Mon 23 NovHeld flat. Two carriers still want backhauls out of Utah.
    Reno to Portland$0.44$2.30

    Cell note

    1. Tove Lindahl 06:02

      High water is 6:10 on Saturday. Slip by 5:45?

    2. Ravi Nair 06:05

      I have the launch key. Who took the cox box home after Tuesday?

    Message hover actions

    1. 0:00 to 2:14WrenClose by, in the bramble at the gate
    2. 2:14 to 3:50BlackbirdLoud on the left, top of the alder
    3. 3:50 to 5:30Reed warblerChattering low in the reeds
    4. 5:30 to 6:40CuckooFar off, across the water

    Dawn chorus, Holme Marsh

    1:07 / 6:40 · 3 May, 04:52

    Scrubber preview