Finish one animation then start the other one

后端 未结 8 2066
谎友^
谎友^ 2020-12-03 11:11

I have two divs and two separate links that triggers slideDown and slideUp for the divs.

When one of the divs are slided down and I click the other one, I hide the f

相关标签:
8条回答
  • 2020-12-03 11:54
    $('#Div1').slideDown('fast', function(){
        $('#Div2').slideUp('fast');
    });
    

    Edit: Have you checked out the accordion plugin (if that's what you're trying to do)?

    0 讨论(0)
  • 2020-12-03 12:01

    an example of this can be seen in JQuery for Beginners - Day 2

    There are 15 days of these tutorials and they are a good resource. Enjoy!

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