Image hover jquery effect

后端 未结 2 950
无人共我
无人共我 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: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.

提交回复
热议问题