Fade in chosen photo
Fade in chosen photo
Im using the code below for a gallery, where you click on the thumbnail and the large image appears on the right hand side. It work's great, but I would like the image to fade in instead of just appear and I can't seem to find where to enter the .fadeIn().
Thanks for any help
- <script type="text/javascript"> //gallery
- $(document).ready(function(){
- //Swap Image on Click
- $("ul.thumb li a").click(function() {
- var mainImage = $(this).attr("href"); //Find Image Name
- $("#main_view img").attr({ src: mainImage });
- return false;
- });
- });
- </script>