How to change opacity with jQuery fadeTo


I already showed you How to change opacity with jQuery.
In my previous post I used the attribute opacity.
Today we will do the same with the jQuery function fadeTo.
$(document).ready(function(){
    $("img").hover(function(){
        $(this).fadeTo("slow", 1.0);
    },function(){
        $(this).fadeTo("slow", 0.6);
    });
});
How to change opacity with jQuery fadeTo How to change opacity with jQuery fadeTo Reviewed by JohnBlogger on 3:02 PM Rating: 5

No comments: