Toggle div with easing

前端 未结 2 746
长情又很酷
长情又很酷 2020-12-29 10:29

I\'ve got a link, when clicking this I want a div to slideIn with easing, and then clicking the link again, it should close the div, with easing...

I\'ve looked at j

2条回答
  •  粉色の甜心
    2020-12-29 11:00

    I have got a link, Here's an example for different types of toggle Effects.

    Toggle div with different Effects - Jquery Live demo

    Select the effect type from the drop down and when click,this makes a toggle effects that looks a lot better.

    I have tried, It working fine.

    $(function () {
        var index = 0;
        $("#btnChangeEffect").click(function () {
            var effectType = $("#effectTypes").val();
            $("#dvContent").toggle(effectType, 600);
        });
    });
    
    
    
    
    

提交回复
热议问题