0

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>
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
Seo soup
  • 33
  • 3

1 Answers1

1

You have misspelled animate as anminate, change it like this, and it will work.

 function() {
    $(".baseup").animate({
    top: "0"
    });
  });
 });
Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Nandy
  • 92
  • 5