fadeTo(speed, opacity, callback): Only the opacity is adjusted for this animation : fadeTo « jQuery « JavaScript DHTML






fadeTo(speed, opacity, callback): Only the opacity is adjusted for this animation

 
<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){

                
            $("p:first").click(function () {
              $(this).fadeTo("slow", 0.33);
            });

        });
    </script>

  </head>
  <body>
    <body>
      <p><span>asdf</span></p>
    </body>
</html>

   
  








Related examples in the same category

1.Fade to a certain opacity
2.Fade to callback
3.Fast fade to
4.Fade to in milliseconds
5.Fade to random
6.Slow fade to