$(document).ready(function(){ $(“.thumbs img”).fadeTo(“slow”, 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads $(“.thumbs img”).hover(function(){ $(this).fadeTo(“slow”, 1.0); // This should set the opacity to 100% on hover },function(){ $(this).fadeTo(“slow”, 0.6); // This should set the opacity back to 60% on mouseout }); });
Articles Tagged: Fade Out
Fade Functions
// fade in $(“#DivID”).fadeIn(1000); // do something when animation complete $(“#DivID”).fadeIn(1000, function () { alert(“Fade In Complete”); }); // fade out $(“#DivID”).fadeOut(1000); // do something when animation is complete $(“#DivID”).fadeOut(1000, function () { alert(“Fade Out Complete”); }); // fade to (fades to specified opacity) $(“#DivID”).fadeTo(1000, 0.25); // do something when animation is complete $(“#DivID”).fadeTo(1000, 0.25, […]