http://jsfiddle.net/n8mjtyz0/11/
I have simple animation with jquery and css. When I hover I want texts around span to animate. When I hover out I want texts to be normal to original.
I seem to succeed in the first hover, but I cannot get the hover out part.
$(".mapname").mouseover(function() {
$(".baseup").animate({
top: "-0.19em"
}, function() {
$(".baseup").anmiate({
top: "0"
});
});
});
.mapname {
position: fixed;
font-size: 1.3em;
top: 10px;
left: 20px;
}
.baseup {
position: relative;
top: 0;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="mapname" id="click">
G
<span class="baseshow baseup">eograp</span> hi
<span class="baseshow baseup">ca</span> l M
<span class="baseshow baseup">ap</span>
</div>