Pop-up tooltip
Tooltip emergente · Tooltip pop · Animated tooltip · Spring tooltip · Fumetto informativo animato
Hovering an icon makes a small label pop out of its arrow with a slight bounce, vanishing as soon as the cursor moves on. It explains controls without cluttering the interface.
- Era
- 2016 – today
- Use
- Mainstream
Live demo
View code
<main>
<div class="bar">
<button class="b1"><svg viewBox="0 0 24 24"><path d="M4 20l4-1 11-11-3-3L5 16z"/></svg><span class="tip">Matita <kbd>P</kbd></span></button>
<button class="b2"><svg viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/></svg><span class="tip">Rettangolo <kbd>R</kbd></span></button>
<button class="b3"><svg viewBox="0 0 24 24"><path d="M6 4v16M18 4v16M6 12h12"/></svg><span class="tip">Testo <kbd>T</kbd></span></button>
<button class="b4"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/><path d="M12 8v4l3 2"/></svg><span class="tip">Cronologia <kbd>H</kbd></span></button>
</div>
<i class="cur"></i>
</main> body{margin:0;height:100vh;display:grid;place-items:center;background:#F5F5F7;font-family:Inter,sans-serif}
main{position:relative;padding-top:60px}
.bar{display:flex;gap:6px;background:#fff;padding:7px;border-radius:14px;border:1px solid #D1D1D6;box-shadow:0 10px 28px -14px #1C1C1E55}
button{position:relative;width:44px;height:44px;border:0;border-radius:10px;background:none;display:grid;place-items:center;cursor:pointer}
button svg{width:22px;height:22px;fill:none;stroke:#1C1C1E;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
button:hover{background:#F5F5F7}
.tip{position:absolute;bottom:calc(100% + 10px);left:50%;translate:-50% 0;white-space:nowrap;background:#1C1C1E;color:#fff;font-size:12.5px;font-weight:500;padding:6px 8px 6px 10px;border-radius:8px;display:flex;gap:8px;align-items:center;transform-origin:50% 100%;opacity:0;scale:.8;pointer-events:none}
.tip::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-top-color:#1C1C1E}
kbd{font:600 11px Inter,sans-serif;background:#ffffff26;border-radius:4px;padding:1px 5px;color:#FF9F0A}
button:hover .tip{opacity:1;scale:1;transition:opacity .15s .3s,scale .25s .3s cubic-bezier(.34,1.56,.64,1)}
.cur{position:absolute;left:0;top:0;width:14px;height:20px;pointer-events:none;opacity:0;background:#1C1C1E;clip-path:polygon(0 0,0 85%,30% 65%,50% 100%,65% 92%,47% 60%,85% 60%);filter:drop-shadow(0 0 1px #fff)}
@media (prefers-reduced-motion:no-preference){
.cur{opacity:1;animation:cur 8s cubic-bezier(.6,0,.3,1) infinite}
.b1 .tip{animation:t1 8s infinite}.b2 .tip{animation:t2 8s infinite}.b3 .tip{animation:t3 8s infinite}.b4 .tip{animation:t4 8s infinite}
.b1{animation:h1 8s infinite}.b2{animation:h2 8s infinite}.b3{animation:h3 8s infinite}.b4{animation:h4 8s infinite}
@keyframes cur{0%{transform:translate(-30px,150px)}8%,22%{transform:translate(26px,92px)}28%,42%{transform:translate(76px,92px)}48%,62%{transform:translate(126px,92px)}68%,84%{transform:translate(176px,92px)}100%{transform:translate(240px,160px)}}
@keyframes t1{0%,11%{opacity:0;scale:.8}13%{opacity:1;scale:1.07}15%,22%{opacity:1;scale:1}24%,100%{opacity:0;scale:.9}}
@keyframes t2{0%,28%{opacity:0;scale:.8}30%{opacity:1;scale:1.07}32%,42%{opacity:1;scale:1}44%,100%{opacity:0;scale:.9}}
@keyframes t3{0%,48%{opacity:0;scale:.8}50%{opacity:1;scale:1.07}52%,62%{opacity:1;scale:1}64%,100%{opacity:0;scale:.9}}
@keyframes t4{0%,68%{opacity:0;scale:.8}70%{opacity:1;scale:1.07}72%,84%{opacity:1;scale:1}86%,100%{opacity:0;scale:.9}}
@keyframes h1{0%,7%,24%,100%{background:none}8%,22%{background:#F5F5F7}}
@keyframes h2{0%,27%,44%,100%{background:none}28%,42%{background:#F5F5F7}}
@keyframes h3{0%,47%,64%,100%{background:none}48%,62%{background:#F5F5F7}}
@keyframes h4{0%,67%,86%,100%{background:none}68%,84%{background:#F5F5F7}}
} Characteristics
- Scale from 0.8 to 1 with a small bounce
- Transform origin at the arrow tip
- Short entry delay and faster exit
- Instant hand-off between neighbouring icons
- Keyboard shortcut shown next to the label
Palette
Click a swatch to copy it
Typography
Headings · Inter Pop-up tooltip
Body · Inter Hovering an icon makes a small label pop out of its arrow with a slight bounce, vanishing as soon as the cursor moves on. It explains controls without cluttering the interface.
Motion
- Easing
cubic-bezier(0.34, 1.56, 0.64, 1) in entrata; ease-in in uscita- Typical duration
- 150–250 ms in entrata, 100–150 ms in uscita, ritardo 300–500 ms
- Techniques
- transform scale con transform-origin sulla freccia, Floating UI per il posizionamento, Popover API e anchor positioning, Radix Tooltip, ruolo tooltip e aria-describedby
Accessibility (reduced motion)
The tooltip appears and disappears with a short fade, without scaling or bouncing.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Pop-up tooltip (Tooltip emergente, Tooltip pop). Hovering an icon makes a small label pop out of its arrow with a slight bounce, vanishing as soon as the cursor moves on. It explains controls without cluttering the interface. Characteristics: Scale from 0.8 to 1 with a small bounce, Transform origin at the arrow tip, Short entry delay and faster exit, Instant hand-off between neighbouring icons, Keyboard shortcut shown next to the label. Palette: #F5F5F7, #FFFFFF, #1C1C1E, #FF9F0A, #D1D1D6, #636366. Typography: headings in Inter, body text in Inter (Google Fonts or equivalents). Mood: clean, subtle, playful. Motion: easing cubic-bezier(0.34, 1.56, 0.64, 1) in entrata; ease-in in uscita, typical duration 150–250 ms in entrata, 100–150 ms in uscita, ritardo 300–500 ms; techniques: transform scale con transform-origin sulla freccia, Floating UI per il posizionamento, Popover API e anchor positioning, Radix Tooltip, ruolo tooltip e aria-describedby. With prefers-reduced-motion: The tooltip appears and disappears with a short fade, without scaling or bouncing. References: Tooltip degli strumenti di disegno digitale, Floating UI, Radix Tooltip, Popover API e anchor positioning CSS.
Relations
Derives from
Similar to
References
- Tooltip degli strumenti di disegno digitale
- Floating UI
- Radix Tooltip
- Popover API e anchor positioning CSS