jQuery animate() to hide and show elements by sliding left and right

前端 未结 3 1380
清歌不尽
清歌不尽 2021-02-13 20:36

I\'m trying to animate something using jQuery.

UPDATE

I have it working the way I want it. This is the jQuery:

    $(document).ready(function(         


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-13 21:04

    $('#search').animate({width: '0'}, 1000, function(){
        $(this).hide();
    });
    

    The page kind of freaks out on toggle...mind your selectors.

提交回复
热议问题