jQuery opacity animation

前端 未结 3 1219
我在风中等你
我在风中等你 2020-12-16 10:13

I am making a website, and it allows users to change view options. I use jQuery to smooth animations for font changing. It fades the whole page out and back in again with th

3条回答
  •  爱一瞬间的悲伤
    2020-12-16 10:53

    Why not use jQuery's built-in functions fadeIn and fadeOut?

    $('#font-classic').click(function(){
        $('body').fadeOut('normal', function(){
            $('body').fadeIn();
        }});
    });
    

提交回复
热议问题