jQuery animate to transparent

前端 未结 9 1981
迷失自我
迷失自我 2021-01-18 06:05
$(\".block li\").hover(
    function(){
        $(this).animate({backgroundColor: \"#000\"});
    },
    function(){
        $(this).animate({backgroundColor: \"#fff         


        
9条回答
  •  没有蜡笔的小新
    2021-01-18 06:32

    I got a solution to this issue from this link

    $('#test').animate({
    
    backgroundColor: "#DFC21D",
    
    }, 1000, function() {
    
    $('#test').css("backgroundColor","transparent");
    
    });
    

提交回复
热议问题