JSFiddle - React, Tailwind, and code Playground
HTML
<div id="details">Hover on me!</div>
<div class="cds" style="display:none;">I am some copy</div>
JavaScript
$('#details').hover(function() {
var tag = 'div.cds'
var offset = $(this).position();
var width = $(tag).outerWidth();
var height = $(tag).outerHeight();
$(tag).show();
$(tag).css('left', offset.left - width + 'px');
$(tag).css('top', offset.top - height + 'px');
}, function() {
$(tag).hide();
});