Balloon.css
Balloon.css

Simple tooltips made of pure CSS and made by Claudio Holanda. Balloon.css lets you add tooltips to elements without JavaScript and in just a few lines of CSS.

Balloon.css is a lightweight, open-source library that allows developers to add simple, elegant tooltips to HTML elements using pure CSS, without the need for any JavaScript.

The main features of this tool include:

  • Zero-JavaScript Implementation: Tooltips are created entirely with CSS, making them extremely lightweight and easy to implement by simply adding data attributes to your HTML.

  • Versatile Positioning: It supports eight different positions, including standard directions (up, down, left, right) and corner alignments (up-left, up-right, down-left, down-right).

  • Customizable Lengths: Users can control the width of the tooltip using attributes for small, medium, large, or "fit" (which matches the element's width).

  • Programmatic Visibility: While typically triggered by hovering, tooltips can be made always visible or toggled programmatically via JavaScript by adding a specific visibility attribute.

  • Visual Customization: The library exposes CSS variables allowing you to easily customize the tooltip's color, font size, and movement animation.

  • Animation Control: If a more static look is preferred, users can disable animations entirely for a "blunt" appearance.

  • Glyph and Icon Support: It allows for the inclusion of HTML special characters or third-party icon fonts directly within the tooltip text.

  • Easy Integration: Can be installed via CDN, npm, or by downloading the source files directly, with support for SASS/SCSS workflows.