https://jsfiddle.net/LvjaxLfn/153/
<span aria-label="This is information">This is a test</span>
span:hover {
position: relative;
}
span[aria-label]:hover:after {
content: attr(aria-label);
padding: 4px 8px;
position: absolute;
left: 0;
top: 100%;
white-space: nowrap;
z-index: 20;
background:red;
}
Using an aria label to keep accessibility
You could also add a transition delay to make it show up after a delay like a native html title
https://jsfiddle.net/f9zna6k2/10/
span {
position: relative;
cursor: pointer;
}
span[aria-label]:after {
opacity:0;
content: attr(aria-label);
padding: 4px 8px;
position: absolute;
left: 0;
top: 100%;
white-space: nowrap;
z-index: 20;
background:red;
transition: opacity 0.5s;
pointer-events:none;
}
span[aria-label]:hover:after {
opacity:1;
transition-delay:1.5s;
}