<p>A sample text with a <em data-tippy-content="This is a really neat tooltip!">tooltip</em> sample.
<p>A sample text with a <em data-tippy-content="This is a really neat tooltip!">tooltip</em> sample.
/* No context defined. */
/**
* Tooltip
*/
@media screen {
em[data-tippy-content] {
font-style: normal;
text-decoration-line: underline;
text-decoration-style: dashed;
cursor: help;
}
/* Margin reset */
.tippy-popper * + * {
margin-top: unset;
}
}
/**
* Tooltip config
*
* @requires Tippy.js
*/
/* global tippy */
tippy('[data-tippy-content]', {
arrow: true,
});
Uses a 3rd party library called Tippy.js.
See library documentation for how to configure it.