This is the simplest form of a mouseover "tooltip" UI that I could come up with.
You can see it used on local hyperlinks at https://deanebarker.net/.
Note: this is NOT a "library." This is starter code. There are no settings or configuration (meaning: everything is hard-coded) nor has it been designed to be extensible -- you are expected copy this code and change it. It's essentially just an example.
To use
- Somehow form an array of elements to which you want to have tips attached
- Implement a function to return the HTML of a tip. It will be passed the entire element that triggered the tip. Do whatever you want (read from an attribute, do a lookup on the HREF, whatever). Return the HTML content for the tip.