You're toggling display properties in several places here. I'd abstract the shared properties that are being switched into Sass placeholders or use re-usable state-based classes (.is-hidden or .is-shown).