Zum Inhalt springen

Image Fade in / out

Aus Computech CMS Wiki
  <script type="text/javascript">
  $(document).ready(function() {
     $("a img").hover(function() {
      $(this).animate ( {'opacity' : 0.6}); // animate to opacity 0.5 on mouse hover
     },
     function(){
      $(this).animate( {'opacity' : 5 });  // Bring back to opacity 1 on removing mouse
      }
     );
     });
 </script>