The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › FilteringBlocks – How to collapse all items when page loads
Can anyone suggest a simple way to collapse all the products when a page loads using the ‘Filteringblocks’ example. The default is to ‘View All” which can be heavy if you have lots of content. You help is appreciated …
https://css-tricks.com/filtering-blocks/
I suspect that this is a JS issue…but the obvious answer is to have all the blocks as display:none initially.
display:none
Frankly that sounds like poor User Experience as the first thing the viewer will think is that you have NO products at all.