Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
497 B
1
Indexable
Never
                $(function() {
                    $(".accordion > .accordion-item.is-active").children(".accordion-panel").slideDown();

                    $(".accordion > .accordion-item").click(function() {
                        $(this).siblings(".accordion-item").removeClass("is-active").children(".accordion-panel").slideUp();
                        $(this).toggleClass("is-active").children(".accordion-panel").slideToggle("ease-out");
                    });
                });