To add some interaction to your SellerDeck / Actinic site with a fade effect to images when hovering.
In the <head> add the following after the call to jQuery :
If you have not already loaded jQuery use in the <head>
To the images you want to fade out just add:
Have fun and enjoy
In the <head> add the following after the call to jQuery :
Code:
<script type='text/javascript'> $(document).ready(function(){ $("img.jFADE").hover( function() { $(this).stop().animate({"opacity": "0.5"}, "fast"); }, function() { $(this).stop().animate({"opacity": "1"}, "slow"); }); }); </script>
Code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Code:
class="jFADE" eg: <img src="image.jpg" class="jFADE">
Comment