Posted By

manavecplan on 03/28/10


Tagged


Versions (?)

Using jQuery for a Simple Animated Fade Effect


 / Published in: jQuery
 

URL: http://bavotasan.com/tutorials/jquery-simple-animated-fade-effect/

  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3. $("img").hover(function() {
  4. $(this).stop().animate({opacity: "0.8"}, 'slow');
  5. },
  6. function() {
  7. $(this).stop().animate({opacity: "1"}, 'slow');
  8. });
  9. });
  10. </script>

Report this snippet  

You need to login to post a comment.