jquery toggle slide from left to right and back

后端 未结 5 1628
既然无缘
既然无缘 2021-02-05 19:00

I have a \"Menu\" button on the left hand side of the page and once selected I have a div containing the menu items show. I then have another button that can be selected to hid

5条回答
  •  清酒与你
    2021-02-05 19:21

    See this: Demo

    $('#cat_icon,.panel_title').click(function () {
       $('#categories,#cat_icon').stop().slideToggle('slow');
    });
    

    Update : To slide from left to right: Demo2

    Note: Second one uses jquery-ui also

提交回复
热议问题