Answer the question
In order to leave comments, you need to log in
How to solve the float issue?
There is such a code - a line. If the text is too large, then it is simply hidden.
<li onmouseenter="ShowInfo(this)" onmouseleave="HideInfo(this)">
<span>Расположение</span><span>TEXT</span></li>
<li>
function ShowInfo(e) {
$(e).animate({
height: $(e).find("span:last-child").innerHeight()
}, "normal");
}
function HideInfo(e) {
$(e).animate({
height: "25px"
}, "fast")
}
Answer the question
In order to leave comments, you need to log in
Another option is to check if the element is in animation state:
if( $(e).is(':animated') ) {...}
api.jquery.com/animated-selector
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question