Test

Test


.accesories, .bottoms, .dresses, .outwear, .tops, .sale { display: none; } .display-flex { display: flex; } //Show clothing items sections function showingSection(e) { $(e).fadeIn('slow'); $(e).css('display', 'flex'); }; $('#accesories').click(function(){ $('.all-items, .bottoms, .dresses, .outwear, .tops, .sale').css('display', 'none'); showingSection('.accesories'); }); $('#bottoms').click(function(){ $('.all-items, .accesories, .dresses, .outwear, .tops, .sale').css('display', 'none'); showingSection('.bottoms'); }); $('#dresses').click(function(){ $('.all-items, .bottoms, .accesories, .outwear, .tops, .sale').css('display', 'none'); showingSection('.dresses'); }); $('#outwear').click(function(){ $('.all-items, .bottoms, .dresses, .accesories, .tops, .sale').css('display', 'none'); showingSection('.outwear'); }); $('#top').click(function(){ $('.all-items, .bottoms, .dresses, .outwear, .accesories, .sale').css('display', 'none'); showingSection('.tops'); }); $('#sale').click(function(){ $('.all-items, .bottoms, .dresses, .outwear, .tops, .accesories').css('display', 'none'); showingSection('.sale'); });