Basic test with the default settings. Tip should entirely follow mouse. Tip size should change when switching between links.
Note: contextElement
also needs to be passed in, and it should be an
ancestor element of all trigger elements.
Snapping tooltips are created via the snapTo
option. This one should
snap to an appropriate x position, along the y axis and the trigger's
most fitting edge (left or right). Here it should snap to the right.
Also note the append button and each new item automatically becoming a trigger.
Change the snapTo
value from y
to x
, and this one should snap to an
appropriate y position, along the trigger's top or bottom edge.
The above examples could suffice with Bootstrap tooltip or others. Snap and shift behavior without redundantly toggling appearance really makes a difference when hovering over a grid of small individual content pieces, ie. avatar images.
Base tips also anchor themselves to the trigger based on available space.
Here we change the snapTo
value to trigger
to lock the tip into place
and prevent mouse following.
HLF Tip Visual Tests
Page | Source