Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

CommitChange/data-tooltip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tooltip

css only tooltips using data attributes

demo

the styles do not include any browser prefixes. to add them, run autoprefixer with postcss.

the styles do not include any z-index rules. you should add them to your own project in relation to other z-indices:

[class*=tooltip--]:before, 
[class*=tooltip--]:after {
  z-index: 10; 
}

to install: npm install --save data-tooltip

to use in css-land:

in your style sheet, just add @import 'data-tooltip and then run postcss-import

to use in markup-land:

<div class='tooltip--top' data-tooltip='this tooltip text will appear above this div when hovered over'>
  Hover over me
</div>

About

css only tooltips using data attributes (deprecated)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 93.0%
  • JavaScript 7.0%