JQuery mouseover and animate - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:mouseover

Description

JQuery mouseover and animate

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.4.2.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/*  w  w  w.jav  a 2 s  .c om*/
$('a.home-page-link').mouseover(function() {
        $(this).animate({
            opacity:    0.4
        }, 200, function(){});
    });
    });

      </script> 
   </head> 
   <body> 
      <a class="home-page-link" href="#">test</a>  
   </body>
</html>

Related Tutorials