How?
Drop an image onto any slot in the stack, or click it to choose a file. Add rows of up to four images and tune them in the Configure panel. Copy the code to use on your site. Everything is local to your browser and your images are never saved or sent to a server.
Why?
I wanted a way to combine individual images into a collage with simple HTML and CSS. And I wanted the images to collapse to a single column on smaller viewports. Having the visual controls and inputs allowed me to precisely position the images and easily copy and paste the code into a page or post.
Questions? Complaints? Commendations? Get in touch at www.aaronawad.com
Changelog
V2.1 - Image styles
- Each image now has a Style option with three choices: Bare, Rounded and Snapshot. Bare is the default.
- Rounded gives the image a rounded border and a soft shadow. Snapshot gives the image a white frame and a drop shadow, like a printed photo.
- An image with no class is now bare. Rounded uses the
img-borderclass, and Snapshot uses thesnapshotclass. In stacks made before this update, images with no class showed a rounded border. To keep that look, addclass="img-border"to those images. - Each style uses CSS variables with fixed fallback values, so it also works on a site that does not define those variables.
- A new Messy checkbox under Breakpoint adds the
messyclass to the figure. In the one-column view, the images turn a little, move a little to the left or right, and overlap. - Every second image in the stack gets the
messy-flipclass, so the turn and the move alternate down the whole stack, across rows. If you add or remove an image by hand, move themessy-flipclasses to match. - Messy has no effect in the side-by-side layout. In the column, images stay inside the stack, so there is no horizontal scroll, for photos up to 9:16.
V2 update
- A stack now collapses to one column based on its own width, not the window's. It uses a CSS container query, so a stack in a narrow column collapses on its own.
- The markup uses new class names (
stacks-v2), and every row has a wrapper. Stacks made with the earlier version use different class names, so both versions can share one stylesheet. - A row can now hold up to four images, and a stack has no limit on the total number of images.
- In the Configure panel, each image's controls show a thumbnail of that image.