Hi Guys,
This is the image I am animating (The html surrounding it):
<div class="index_top_left_img">
<img src="products/wrangler-jeans.gif" width="198" class="IndeximgOpa" />
</div>
I have this few lines which fades the images in and out:
$(function() {
$('.IndeximgOpa').each(function() {
$(this).hover(
function() {
$(this).stop().animate({ opacity: 1.0 }, 500);
},
function() {
$(this).stop().animate({ opacity: 0.70 }, 500);
})
});
});
It looks fine, and also works fine.
What I would like to do now, is when the animation is done (The opacity is 1.0) I would like to, from the bottom of the image, (or is it the div surrounding it?) to animate a div moving up from the bottom (While also fades in), where I can write a few lines of product information.
It should animate up after the image is fully visible, and dissapear again onmouseout, just like the opacity goes back to 0.70.
I havent used Jquery much before to be honest, and im not sure how to do it.
I guess I could place a div just after the <img /> tag, but inside the other div?
And then somehow animate it on top of the image?
How can this be done? Can I write a few simple lines to the existing function?
I have read about toggle, but again, im not the best on javascript/JQuery, so :-/
Help is very much appreciated?
Regards, Klemme