相关疑难解决方法(0)

如何在jquery中慢慢更改背景属性?

我想为背景设置动画,但它不会随着.animate而改变!

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

$(document).ready(function() {
    $(".menu").hover(
    function() {
        $(this).stop().animate({
            "background": "-moz-radial-gradient(top, #fff, #cfcfcf)"
        }, "slow");
    }, function() {
        $(this).stop().animate({
            "background": "-moz-radial-gradient(top, #fff, #333)"
        }, "slow");
    });
});?
Run Code Online (Sandbox Code Playgroud)

jquery attributes background jquery-animate

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

attributes ×1

background ×1

jquery ×1

jquery-animate ×1