Answer the question
In order to leave comments, you need to log in
How to implement such an effect?
Hello everybody!
I can't figure out how to implement this effect.
There is this html code:
<div class="item-block">
<div id="hover"></div>
<img src="img/i.png" alt="">
<span class="status">в наличии</span>
<a href="" class="item-name tnormal">Нименование товара</a>
</div>
<script>
$('.item-block').hover(
function () {
$('#hover', this).slideDown('fast');
},
function () {
$('#hover', this).slideUp('fast');
}
)
</script>
Answer the question
In order to leave comments, you need to log in
The image and the block that appears must have a common parent with position:relative;
And the appearing block should have position:absolute; top:0; left:0;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question