I'm trying to get dim effect when a small image is clicked on and show a larger image,
<div id="main_content">
<div id="press_page">
<div id="press_images">
<img id="s1" class="small" src="images/press/small/press1.jpg" />
<img id="s2" class="small" src="images/press/small/press2.jpg" />
<img id="b1" class="big" src="images/press/big/press1.jpg" />
</div>
</div>
</div>
$(function() {
$('#s1').click(function() {
$('#main_wrapper').animate({opacity:0.1},1000);
$('img.big').animate({opacity:1},1000).css('display','block');
});
});
the problem is that the the big picture appears and then the page get dimmed including the big pictures, but I need to make the page dimmed and then big picture appear with opacity 1,while everything else is dark,
any help would be appreciated.
thanks