I am trying to build an interactive tooltip in Divi.
It is to show references for an academic paper. So the results should look like this:
sample reference tooltip from academic site
Here is a sample page that shows the desired result in action (screen capture is taken from this site): https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7463562/
In the site shown, they have clearly been able to do this — so I know it is possible.
They seem to be using some kind of library or function prefixed with "aria-" as many of the classes they are using have that same prefix.
I am able to create the pop-up and trigger it when the user hovers over the reference number. I can also move the tooltip up and to the right by so many pixels, but I am not able to accurately position the window beside the reference number as my client has requested.
This is what I have so far:
I tried Googling "css position one object next to another" but was unable to find much that was helpful. There was documentation on something called Aria Tooltip (which is consistent with the source code of the site referenced above) but what I found seemed to be describing a class, not how to use it.
What I would like to do is position that tooltip right beside the trigger in the above paragraph. I am presuming this will be done with a combination of Aria Tooltip and jQuery but I am at a loss for what to do next.
Any help would be appreciated!
Try This One :