yagnikbarasiya2306@gmail.com

Web · Elastic tooltip

Tether

A tooltip hung on an elastic string.

A tooltip that hangs from its target on an elastic string. It grows out of the element, trails a beat behind when the target moves, and the string sways before everything settles.

Platform
Any modern browser · any framework
Size
3.8 KB gzip
Dependencies
None
Licence
MIT · free for client work

Demo

A recording of the demo. Open it in a new tab

What it does

  1. 01

    The bubble follows its anchor on a spring; the string is a live curve

  2. 02

    Picks the side with room and flips when the viewport runs out

  3. 03

    Hover, focus, pinned and interactive modes

  4. 04

    Wired with aria-describedby; Escape closes it

Use it

Get the filesbash
git clone https://github.com/YagnikBarasiya23/tether-tooltip.git
# copy tether.js and tether.css into your project
Examplehtml
<link rel="stylesheet" href="tether.css">
<button data-tether="Insert link · ⌘K" aria-label="Link">↗</button>

<script type="module">
  import Tether from './tether.js';

  Tether.mountAll(); // every [data-tether]; data-placement sets the side
</script>

Every option, the technique behind the motion and the accessibility notes are in the README on GitHub

More components

All 10
  • Web

    05 · Product image zoom

    Loupe

    A lens that glides after your pointer.

    • 4.7 KB gzip
    • No dependencies
    • Free · MIT
  • Flutter

    06 · Arc gauge

    Arcline

    Progress that springs, not ticks.

    • Single Dart file
    • No dependencies
    • Free · MIT

Get in touch

Open for freelance projects, contract roles and collaborations — mobile apps and full-stack products in particular. WhatsApp gets the fastest reply.

Based in
Rajkot, Gujarat, India
Elsewhere