Imperator Design
The library

Techniques, not templates

Every trick recreated from the source video as a live, self-contained demo. Search, filter, open, steal.

1 / 4

CSS Anchor Positioned Tooltip with Popover

A tooltip that automatically positions itself relative to a button using pure CSS Anchor Positioning and the Popover API. It stays visible and adapts to screen edges without any JavaScript or z-index conflicts.

cssresponsivetooltippopoveranchor positioningutilityno-js
2 / 4

Native Auto-Flipping Tooltip

A modern, zero-JavaScript tooltip that automatically positions itself relative to its trigger and flips its vertical alignment (above/below) if it's about to go off-screen, leveraging the native Popover API and CSS Anchor Positioning.

animationcssaccessibilityzero-jstooltippopoverhoveranchor-positioning
3 / 4

CSS-Only Tooltip with Data Attribute

Create a tooltip using only CSS, leveraging the `::after` pseudo-element and `attr(data-tip)` to display content on hover, with a smooth fade-in transition.

csstooltiphovertransitionpseudo-elementdata-attributes
4 / 4

Directional Tooltips with Arrow & Animation

A tooltip component that dynamically positions itself relative to a trigger element (top, right, bottom, left) with an animated fade and slide effect, including a directional arrow.

animationcsstooltiphoverui-componentpositioning