Preview:

$(document).ready(function() {
  jQuery('.accordion-list > li > .answer').hide();
  jQuery(".accordion-list > li:first-of-type").addClass("active");
  jQuery('.accordion-list > li.active').find(".answer").slideDown();
    $('.accordion-list li h2').on("click", function(){
        $('.accordion-list li h2').not(this).removeClass('active');
        $(this).next('.accordion-list > li > .answer').slideToggle();
        $(this).toggleClass('active');
        $('.accordion-list > li > .answer').not($(this).next()).slideUp(400);
    });
});
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter