JSFiddle - React, Tailwind, and code Playground
HTML
<div class="table">
<div class="row">
<div class="time">
</div>
<div class="info">
Monday
</div>
</div>
<div class="row">
<div class="time">
8pm
</div>
<div class="info">
<a href="#" class="title">Image</a> /
<img src="http://placehold.it/400x400" class="show_img" />
<a href="#" class="title">Image</a>
<img src="http://placehold.it/400x400" class="show_img" />
</div>
</div>
<div class="row">
<div class="time">
9pm
</div>
<div class="info">
<a href="#" class="title">Image</a>
<img src="http://placehold.it/400x400" class="show_img" />
</div>
</div>
</div>
CSS
.table{ width:540px; }
.row { width:100%; overflow:auto;}
.time {width:80px; padding:0px; float:left; }
.info {width:460px; padding:0px; float:left;}
.show_img {
visibility:hidden;
position:fixed;
z-index:1;
}
JavaScript
$(document).ready(function() {
var mouseX;
var mouseY;
$(".title").mousemove( function(e) {
mouseX = e.clientX + 5;
mouseY = e.clientY + 5;
});
$(".title").hover(
function () {
$(this).next(".show_img").css("visibility","visible");
$(window).bind('mousemove', function(e) {
$(".title").next(".show_img").css({'top':mouseY,'left':mouseX});
});
},
function () {
$(".show_img").css("visibility","hidden");
});
});