css only tooltips using data attributes
npm install data-tooltipthe 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:
``CSS`
[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:
`HTML``
Hover over me