开发者

Help with Jquery Opacity

开发者 https://www.devze.com 2023-04-04 10:38 出处:网络
I have a question in javascript. Why is this not working: function scroll_button() { $(\'div#scrollcase\').css(\'opacity\' , 0.3, function()

I have a question in javascript.

Why is this not working:

 function scroll_button() { 
        $('div#scrollcase').css('opacity' , 0.3, function() 
        {
     开发者_Python百科       $(this).delay(3500).css('opacity' , 1.0);
        });
    };

Is a loop.


That's not how you use .css(). http://api.jquery.com/css/

Try fadeTo: http://api.jquery.com/fadeTo/

function scroll_button() { 
    $('#scrollcase').fadeTo('slow', 0.3, function() 
    {
        $(this).delay(3500).fadeTo('slow' , 1.0);
    });
};
0

精彩评论

暂无评论...
验证码 换一张
取 消