How to make that when scrolling to the div in which there is animation and then animate worked? It is my div:
<div class="otsenka-bottom-c ">
<div class="otsenka-bottom-cl">
<h3><b>ОБРАЩАЙТЕСЬ К НАМ, ЕСЛИ</b></h3>
</div>
<div class="border-black"></div>
<div class="otsenka-bottom-cb">
<div class="otsenka-bottom-block" >
<div class="otsenka-bottom-block-p an-1" style="position:relative; left:-200%">
<div class="align-middle" style="text-align:right;width:65%;">
<h3><b>LOREM IPSUM</b></h3>
<ul><li style="text-align:right; color:#000;">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima itaque neque fugit rem, in praesentium, est. </li></ul>
</div>
<div class="align-middle" id="ellipse">
<img src="assets/img/ellipse.png" class="img-responsive">
</div>
</div>
</div>
</div>
</div>
What should I write instead of hover??? Who know, help me please?! It is my function:
function Animate() {
if ($(window).width() >= 414) {
$('.otsenka-bottom-c').hover(function() {
$(".centre").animate({
top: "0px",
opacity: 1
}, 1000, function() {
$(".an-1").animate({
left: 0
}, 1500);
});
});
} else {
$(".centre").css({
top: "0"
});
$(".an-1").css({
left: "0"
});
}
}
Animate();