Dependencies: jquery jQuery(document).ready(function($) { "use strict"; $("#effect").hover(function() { $(this).animate({opacity: '1'}, "slow"); }, function () { $(this).animate({opacity: '0.5'}, "slow"); }); });