Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery fadeTo() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function() { $("#fadeTo").click(function(){ $("div").fadeTo(3000, 0.3); }); }); </script> <style type="text/css"> div { background: #FC5E5E; font-family: arial; padding: 10px; } </style> </head> <body> <button id="fadeTo">fadeTo (3 Seconds)</button> <br /><br /> <div>This element represent fade in/out effect.</div> </body> </html>
  Preview Arrow