Make an text follow mouse pointer when hovered over an image link

514 Views Asked by At

I want to make the text follow the mouse pointer when hovered over an image(Image link) in fandom.
Like this .
Source : Minecraft Wiki

1

There are 1 best solutions below

2
RoToRa On

It's called a tooltip. The simple solution is to place an attribute title="Text of tooltip" on an element. That will produce a generic tooltip depending on the browser/OS.

If you need more control over the design or content, then try googling "tooltop css" or "tooltip javascript".