A CodePen by illfittingshoes. Pure CSS Expand/Collapse with Modernizr/jQuery & Old IE fallbacks - Fully functional without Javascript! Progressive Enhancement (or graceful degradation if you prefer) method for expanding and collapsing content. Uses CSS Transforms & Transitions where available, so best experience is current browsers ( http://caniuse.com/#search=transform and http://caniuse.com/#search=transition ). Uses Modernizr to throw jQuery at it when either css transforms or css transitions aren't supported. No-JS version uses :target, so it comes with all the :target caveats as well (hash jumping, history modification, not supported in IE < 9 http://caniuse.com/#search=target )

Note: prefix-free is used here, so non-JS won't be right on some browsers without adding prefixes to transforms. IE10 & Firefox support unprefixed transforms)