JSFiddle - React, Tailwind, and code Playground
by davidcl64
HTML
<div style='position:relative'>
<div id='tag' style='position : absolute; top: 20px; left: 20px; width: 50px; height: 50px; z-index: 10; background: transparent;'>
<div id='tagInner' style=' border: 1px solid red; position : absolute; top: 0; left: 0; right: 0; bottom: 0;'>
</div>
</div>
<img src='http://www.hihowareyou.com/store/images/products/tn_HiVinylFrontmed.jpg' id='wow'>
</div>
JavaScript
var tag = document.getElementById('tag');
var tagInner = document.getElementById('tagInner');
tagInner.style.visibility = 'hidden';
tag.onmouseover = function () {
tagInner.style.visibility = 'visible';
}
tag.onmouseout = function () {
tagInner.style.visibility = 'hidden';
}