JSFiddle - React, Tailwind, and code Playground
by Alfie
HTML
<div id="footer">
<ul>
<li><a href="#"><img src="abc" /></a><a href="#">ABC</a>
</li>
</ul>
<div id="kontaktdaten">
<ul>
<li>Adresse1</li>
</ul>
</div>
</div>
CSS
.open {
background:red;
}
JavaScript
$('#footer')
.hover(function () {
if (!$(this).hasClass("open")) {
$(this).animate({
bottom: -25
}, 500).addClass('open');
}
}, function () {
if ($(this).hasClass("open")) {
$(this).stop().animate({
bottom: -57
}, 500).removeClass('open');
}
})