JSFiddle - React, Tailwind, and code Playground

HTML

<div class="someDiv">
    <p>Foobar</p>
</div>
<img style="display:none" class="image" src="http://www.budick.eu/images/logo-BudickEu.jpg"/>

JavaScript

$(".someDiv").hover(function() {
    $(document).mousemove(function(event) {
        $(".image").css({"position":"absolute","left":event.clientX ,"top":event.clientY }).show();    
    });    
});

//end movement with click on the div.
$(document).bind("click",function(){
    $(document).unbind("mousemove");
    $(".image").hide();
});