Masonry Svelte image gallery
Grids & Mosaics
Three columns of photos at their own heights. Hover lifts a photo and zooms it inside its frame. Our first pick: a grids & mosaics image gallery with 9 inputs your Svelte code can drive, in a 1.7 KB file.
Svelte · Image galleries · Updated November 2026
Need a Svelte image gallery component with real motion? These five animated image galleries play in Svelte from one .exode file, chosen from the 100 in Exode Galleries. Each one is live below: try it, then open it in ExodeUI and drop it into your Svelte app with the code at the end.
Grids & Mosaics
Three columns of photos at their own heights. Hover lifts a photo and zooms it inside its frame. Our first pick: a grids & mosaics image gallery with 9 inputs your Svelte code can drive, in a 1.7 KB file.
3D Spaces
Photos climb a spiral tower; scroll turns it. Front photos face you, the back ones turn away. It is a 3d spaces image gallery with 11 inputs your Svelte code can drive, in a 1.8 KB file.
Stacks & Piles
A messy pile of polaroids. Fling the top one away and the next is waiting underneath. It is a stacks & piles image gallery with 9 inputs your Svelte code can drive, in a 1.5 KB file.
Gestures & Reveals
Captioned photos stacked like a dating app: fling the top card left or right to reveal the next. It is a gestures & reveals image gallery with 9 inputs your Svelte code can drive, in a 1.4 KB file.
3D Spaces
Round photos spread over a turning globe. Drag to spin it; the far side dims behind. It is a 3d spaces image gallery with 10 inputs your Svelte code can drive, in a 2.1 KB file.
Use it as a checklist when you compare the picks above. Each one is a native image gallery in ExodeUI, so whatever is missing you change in the editor instead of rewriting Svelte code.
| # | Design | Category | Inputs | File |
|---|---|---|---|---|
| 1 | Masonry | Grids & Mosaics | 9 | 1.7 KB |
| 2 | Helix Tower | 3D Spaces | 11 | 1.8 KB |
| 3 | Polaroid Pile | Stacks & Piles | 9 | 1.5 KB |
| 4 | Swipe Deck | Gestures & Reveals | 9 | 1.4 KB |
| 5 | Photo Globe | 3D Spaces | 10 | 2.1 KB |
The code for #1, Masonry, with its real file and input names. Every pick works the same way.
npm install exodeui-svelte<script>
import { ExodeUICanvas, createExodeUI } from 'exodeui-svelte';
import artboard from './g-masonry.exode?raw';
const exo = createExodeUI();
function onReady(engine) {
exo.setEngine(engine);
exo.setInputNumber("Masonry · Selected row", 10.5);
}
</script>
<ExodeUICanvas artboard={JSON.parse(artboard)} fit="Contain" onready={onReady} />
<button onclick={() => exo.fireTrigger("Masonry · Replay")}>Replay</button>Pick a design here, open it in ExodeUI and change it, then export a .bexode file. Install exodeui-svelte (npm install exodeui-svelte) and load the file with the runtime; the code below uses the first pick’s real file and input names. The motion, states and springs live in the file, so your Svelte code only sets and reads inputs.
It depends on the job: Masonry (grids & mosaics), Helix Tower (3d spaces), Polaroid Pile (stacks & piles) cover different styles. These five are our picks from the 100 image galleries in Exode Galleries, chosen for range, for how much is wired to inputs and for how well they read small. They are not a survey of other libraries.
They replace it where you want custom motion. Keep the built-in one where the platform default is right, and use an ExodeUI file where the image gallery is part of your brand.
Yes. They come from Gallery Studio, built into the ExodeUI editor and included in the free Community plan. The Svelte runtime is free too.
Yes. Open one in ExodeUI and every part is a native layer: colours, type, motion and logic. The input names stay the same, so your code keeps working.
Free to start. Every studio behind this library is built into the editor, and everything it makes stays native and editable.
Try ExodeUI for free