Over a million developers have joined DZone.
Platinum Partner

Hint.css - A Tooltip Library In CSS

· Web Dev Zone

The Web Dev Zone is brought to you by Stormpath—offering a pre-built Identity API for developers. Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management.

Hint.css is a tooltip library written completely in CSS. It’s originally written in SASS and uses only HTML/CSS to implement simple tooltips.

There is no JavaScript needed whatsoever to make the tooltips work. Hint.css bypasses all the JavaScript by making use of data-* attribute, pseudo elements, content property and CSS3 transitions to create stunning tooltips.

Hint.css also uses the Block-Element-Modifier (BEM) for modifiers. Once caveat with Hint.css is that transitions on pseudo elements is only available in Firefox currently. So this feature will not work in other browsers, but degrades gracefully in non-supporting browsers.

Requirements: None
Demo:http:/ / kushagragour. in/ lab/ hint/
License: MIT License

The Web Dev Zone is brought to you by Stormpath—offering a pre-built, streamlined User Management API for building web and mobile applications. Check out our top pointers for designing your REST API.

Topics:

Published at DZone with permission of Hirvesh Munogee , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}