Pure CSS • Hover-Triggered • No JavaScript Needed
This tool builds a hover tooltip using only CSS — no JavaScript is needed on your site. It works by reading the text from a data-tooltip attribute you add to any element, and displaying it through a ::after pseudo-element bubble plus a ::before pseudo-element arrow, both revealed on :hover. The arrow always points toward the trigger element using the classic CSS border-triangle technique, and its direction is automatically the opposite of the bubble's position (a tooltip above the trigger has an arrow pointing down, for example). The fade uses opacity and visibility together rather than display: none, since display cannot be transitioned — this is what makes the fade-in smooth instead of an instant snap. Choose a position, customize colors, sizing, and timing, then copy the HTML and CSS. All processing happens locally in your browser.