I'm trying to implement a bit of gsap in here, perhaps a autoAlpha when I hover the pin.
The issue I'm having is that the text doesn't seems to be next to the pin correctly.
- when I hover the pin with the mouse, the text should follow the mouse and it should be next to it.
I hope it makes sense.
window.onmousemove = function (e) {
var x = e.clientX,
y = e.clientY,
i, l = tooltipSpans.length;
for(i = 0; i < l; i++){
tooltipSpans[i].style.top = (y - 220) + 'px';
tooltipSpans[i].style.left = (x - 420) + 'px';
}
};