Codrops-inspired code for a thumbnail grid component.