JSFiddle

  • accordion

    jQuery Compat (edge), HTML, SCSS, JavaScript

    //  main and nested container elements
    var $main = $('.big-container');
    var $nested = $('.inner-container');
    //  this has to be done at initialisation
    var mainHeight ...