slideToggle JQuery right to left

后端 未结 9 687
再見小時候
再見小時候 2021-02-01 05:04

i\'m new in JQ i have this script i found on the internet and its do exactly what i need but i want the sliding will be from the right to the left how can i do it? please help

相关标签:
9条回答
  • 2021-02-01 05:30

    You can try this:

    $('.show_hide').click(function () {
        $(".slidingDiv").toggle("'slide', {direction: 'right' }, 1000");
    });
    
    
    0 讨论(0)
  • 2021-02-01 05:31
    $("#mydiv").toggle(500,"swing");
    
    more https://api.jquery.com/toggle/
    
    0 讨论(0)
  • 2021-02-01 05:33

    Try this:

    $(this).hide("slide", { direction: "left" }, 1000);
    

    $(this).show("slide", { direction: "left" }, 1000);

    0 讨论(0)
提交回复
热议问题