Image hover jquery effect

后端 未结 2 937
无人共我
无人共我 2020-12-22 12:09

Hy there. What I\'m trying is this:

$(document).ready(function() {
$(\'.wrapper\').hover(function() {
$(\'.image\', this).animate({width:\"110%\",opacity:\"0         


        
相关标签:
2条回答
  • 2020-12-22 12:38
    $('.image').hover(
                function() {
                    $(".rollOver", this).fadeIn();
                },
                function() {
                    $(".rollOver", this).fadeOut();
                }
            );
    

    You need this code. Check full demo here "http://jsfiddle.net/SaurabhGhewari/oLrpL3wy/3/"

    0 讨论(0)
  • 2020-12-22 12:47
    $('.wrapper').hover(function(e) {
        $(e.target).animate({width:"110%",opacity:"0.5"}{duration:100,queue:false});
    });
    

    $(e.target) represents clicked element so animation doesn't applies to all elements with same class.

    0 讨论(0)
提交回复
热议问题