JSFiddle - React, Tailwind, and code Playground
HTML
<div class="slider">Seattle
<div>It rains a lot</div>
</div>
<div class="slider">New York
<div>Greatest city on earth</div>
</div>
<div class="slider">Trantor
<div>Greatest city in the galexy</div>
</div>
CSS
.slider div {
display: none;
}
JavaScript
$('.slider').hover(function() {
$(this).find('div').stop().slideToggle(400);
}, function() {
$(this).find('div').hide();
});