Search & Sort Image Grid
This versatile image grid has functions to sort the items and to search them for keywords. There is also a version which is specifically designed for blogs which can be seen be following the link below. The grid can have a fixed height to allow it to scroll or an auto height to have all the items in view.
Search
The search function finds keywords in the item heading and displays the results. To try it out, type the word "blog" in the input field and the relevant enrtries will appear. Delete the typed text and grid will reappear.
Sort
The entries can be sorted alphabetically - rather than by inserted order - by checking a box in the widget settings.
Lazy Loading
Since the widget can hold up to 500 entries - which means a large number of images to download - a lazy loading script is used to allow the images in the viewport to download but delaying the rest of the images for a preset time to allow the page content to load a lot faster.
Grid
The grid has controls for setting the number of items per row for each device type - computer, tablet landscape, tablet portrait and mobile phone. Since the layout is CSS Grid, the item spacing is easily adjusted using the grid-gap selctor and there is also a control for left/right padding and vertical spacing.
Heading & Input Field
The optional heading sits above the input field. The field has controls for background color and border width, color and radius. The placeholder text has a control for the font size and the extra styles required to change the placeholder text color for each browser have been added to the CSS.
Grid Items - Show More/Less
Each grid item has an image, heading and text. When more than just a few words of description are required a More/Less function can be added to each item where the amount of text shown on page load is limited to a preset number of characters.
The blog version of this widget optional image links but does not have the "more/less" function. It is set up to demonstrate the grid overflow scroll function.