MARKETPLACE
PLUGINS
PINTEREST STYLE MASONRY GRID
Pinterest Style Masonry Grid logo

Pinterest Style Masonry Grid

Published August 2025
   •    Updated March 2026

Plugin details

The Masonry Grid Plugin transforms your image lists into beautiful, responsive Pinterest-style galleries with just a few clicks. Built with Tailwind CSS and modern JavaScript, this plugin offers two distinct layout variations to suit different design needs.
Variation 1 (CSS Masonry) uses native browser masonry capabilities with CSS columns fallback, providing organic flowing layouts where images naturally fill available space from left to right, top to bottom.

Variation 2 (Masonry With Balanced Columns) employs a Flowbite-inspired approach with intelligent height balancing, creating more uniform column heights for cleaner bottom alignment.

Both variations feature hover effects, loading states, error handling, and seamless click interactions. Configure column count and spacing using Tailwind gap classes. The plugin automatically handles responsive behavior and cross-browser compatibility. Perfect for portfolios, product galleries, image collections, and any scenario requiring elegant image display with interactive functionality.

The grid can only show images. However, because we've included an element id field, you can map each image to its corresponding row of data in the database. For example, you could click an image in the masonry grid layout and open a popup or redirect to another page will all of that products details (price, description etc).

Exposed states and events enable seamless integration with Bubble workflows.

$49

One time  •  Or  $7/mo

stars   •   0 ratings
0 installs  
This plugin does not collect or track your personal data.

Platform

Web

Contributor details

Nebulum logo
Nebulum
Joined 2020   •   42 Plugins
View contributor profile

Instructions

Add the element to your page. There are two elements to choose from:
Choose between

1. Masonry Grid (Uneven Bottom) (rough flow with a less balanced bottom)

or

2. Masonry Grid (Smooth Bottom) (smooth flow with more balanced columns)

Configuration

image_list: Enter comma-separated image URLs (e.g., "url1.jpg,url2.png,url3.webp")

item_ids: Enter matching comma-separated unique IDs (e.g., "id1,id2,id3"). These ids ideally would be the 'unique id's' of the images from the image list.

columns: Set number of columns (recommended: 2-4 for mobile, 3-6 for desktop)

gap: Use Tailwind classes like "gap-2", "gap-4", "gap-6", or "gap-8"

Usage

Images display automatically in your chosen layout. When users click images, the plugin updates clicked_image_id and clicked_image_url states, then triggers the image_clicked event.

Use these in workflows to open lightboxes, navigate pages, or perform other actions. Both image lists and ID lists must have matching item counts for proper functionality.

Types

This plugin can be found under the following types:
Element   •   Event

Categories

This plugin can be found under the following categories:
Containers   •   Ecommerce   •   Media   •   Social Network   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble