HTML and CSS responsive image/photo gallery: flexbox, grid, lightbox, with thumbnails, etc. Update of April 2020 collection. 8 new examples.
Related Articles
Links
Made with
- HTML (Haml) / CSS (SCSS)
About a code
CSS-Only Photo Info Popup
Working on a popup to display photo information! This uses a checkbox with multiple labels to control the popup.
Compatible browsers: Chrome, Edge, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (SCSS)
About a code
Sticky Photostack
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -

Links
Made with
- HTML / CSS (SCSS)
About a code
Lookbook Gallery
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (Stylus)
About a code
CSS Image Reveal with filter && clip-path
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Flex Image Gallery with Hover Effect
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS
About a code
Grid Gallery - The Elusive Gallery
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS
About a code
CSS Grid Image Gallery With Hover Effect
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
CSS Image Gallery
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS
About a code
Diamond Shape Grid
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: no
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Photo Gallery
A masonry style photo gallery.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (SCSS)
About a code
Hive Photo Gallery Grid
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Gritty Grid Gallery
A fast idea to use CSS Grid to display an image gallery. Hover/click to expand.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Winter Gallery
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: no
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Rhomb Gallery On Grids
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Fashion Isometric Gallery
Experiment for testing isometric ecommerce layout concept.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: no
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (Less)
About a code
Drop Spread Blur
Only CSS gallery with drop spread blur effect.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Gallery
Gallery with hover effect.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS
About the code
Hexagon Gallery
CSS only hexagon gallery.
Compatible browsers: Chrome, Firefox, Opera, Safari
Responsive: no
Dependencies: -
Links
Made with
- HTML / CSS (SCSS)
About a code
Accordion Gallery Zoom Animation
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS / JavaScript
About the code
Masonry Gallery
Responsive CSS Grid masonry gallery.
Compatible browsers: Chrome, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (SCSS)
About the code
Pure CSS Responsive Gallery
Tired of writing JavaScript? Have you written your fair share of jQuery onclick
events?
Despair not! For you can make a responsive gallery in just HTML and CSS. All you need are some labels and some exotic CSS. Have fun!
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (Less) / JavaScript
About the code
Gallery
Masonry gallery with scroll effect.
Compatible browsers: Chrome, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS (SCSS)
About the code
Responsive Photo Gallery Grid with Lightbox - No Script
Responsive photo gallery updated with lightbox effects. Utilize CSS Grid & Flexbox and no script. Using target
property.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS / JavaScript
About the code
Simplicity
Simple gallery in HTML, CSS and JS.
Compatible browsers: Chrome, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS) / JavaScript
About the code
Product Gallery
A minimal single product page built with CSS Flexbox and vanilla JavaScript.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: 12columns.scss, onicons.css
Links
Made with
- HTML / CSS (SCSS)
About the code
Horizontal Slider to Gallery Grid
Full responsive grid with awesome mobile UX using one media query and two lines of code.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML (Pug) / CSS
About the code
Seasons Gallery
Pure CSS image gallery.
Compatible browsers: Chrome, Firefox, Opera, Safari
Responsive: yes
Dependencies: -
Links
Made with
- HTML / CSS (SCSS) / JavaScript
About the code
Pop-up/Overlay Gallery
This is a popup overlay design for your portfolio! Display your projects/work in detail with a click of a button.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: no
Dependencies: -
Links
Made with
- HTML / CSS / JavaScript
About the code
Image Gallery
Parallax image gallery using figure
& figcaption
.
Compatible browsers: Chrome, Edge, Firefox, Opera, Safari
Responsive: yes
Dependencies: rellax.js

Links
Made with
- HTML
- CSS/SCSS
- JavaScript
About the code
CSS Gallery
Image gallery made with flexbox
and CSS grid
.

Links
Made with
- HTML
- CSS/SCSS
About the code
Tumblr Photogrid/Photoset
Tumblr photogrid/photoset with flex-box
in place of JavaScript.

Links
Made with
- HTML/Pug
- CSS/Stylus
About the code
Responsive Pure CSS Image Gallery with CSS Grid
Here's one of an image gallery where you select the img
you want to be showcased in the center. The layout is made possible with CSS grid
. When switching to a smaller viewport you'll get a different experience that is made possible by altering the grid-template-columns
and grid-template-rows
.

Links
Made with
- HTML/Haml
- CSS/Sass
- JavaScript/CoffeeScript (jquery.js, magnific-popup.js)
About the code
Magnific Gallery
Nice responsive gallery with: CSS columns, roll over, hover caption, magnific popup script, zoom in effect.

Links
Made with
- HTML
- CSS
- JavaScript (jquery.js)
About the code
Gmail Image Gallery Animation
Image gallery animation with HTML, CSS and JS.

Links
Made with
- HTML
- CSS
- JavaScript
About the code
Scrolling & Looping Gallery
Scrolling & looping gallery. Vanilla HTML/CSS/JS. No Touch Events.

Links
Made with
- HTML
- CSS
- JavaScript (jquery.js)
About the code
Photo Gallery
See the gallery by clicking on the windows.

Links
Made with
- HTML/Pug
- CSS/SCSS
About the code
Amur Leopard Image Gallery With CSS Vars
Click the info button in the bottom right corner. 😼 WebKit-only because other browsers have poor support for using calc()
in place of anything else other than length values.

Portfolio Gallery
HTML, CSS and JavaScript portfolio gallery.
Made by Tanmoy Biswas
February 14, 2017

HTML And CSS Image Gallery
Image gallery with zoom.
Made by wunnle
February 3, 2017

CSS 3D Transform Gallery
Cube rotate 3D transform gallery.
Made by Lorina Gousi
January 30, 2017

Links
Made with
- HTML/Pug
- CSS/Stylus
- JavaScript/Babel
About the code
Gallery Hover Effect
Gallery hover effect and gallery expanded.

Photobox
Photobox is the evolution, the next generation of gallery UI & UX code.
Made by Yair Even Or
January 4, 2017

Travel Gallery
Travel gallery with flexbox and CSS animations/transitions.
Made by Sean Free
January 2, 2017

Slide-out Scrolling Gallery
A gallery that reveals three panels as the user scrolls.
Made by Teegan Lincoln
January 1, 2017

Reflective Photo Gallery Wall
HTML, CSS and JavaScript reflective photo gallery wall experiment.
Made by Shawn Reisner
October 21, 2016

Quad Image Gallery
Transitioned gallery for four images.
Made by Dudley Storey
October 14, 2016

Gallery With Wave Transition Effect
It has 24 1920x1080 pictures inside, so it can take a sec to download. It looks cool though. Feel free to play around with variables (transition times, and delays). You can change the number of pictures. Just change the variables in scss and js. Also, if you want to add new pics, just add the url of the pic in the js array.
Made by Kirill Kiyutin
September 9, 2016

Portfolio Gallery
Portfolio gallery with HTML, CSS and JavaScript.
Made by Srdjan Pajdic
June 2, 2016

Links
Made with
- HTML
- CSS (folio.css)
- JavaScript (folio.js)
About the code
Folio.Transitions
Out of the box page & section transitions with Foliodot.

Google Photos Material Gallery
A vanilla javascript photo gallery plugin inspired by Google Photos.
Made by Ettrics
January 24, 2016

Rollover CSS Blur Filter Image Gallery
Utilizing CSS transitions & transforms and the CSS blur filter.
Made by sjmcpherson
January 18, 2016

Photo Gallery
HTML, CSS and JavaScript photo gallery.
Made by charlie hield
October 29, 2015

Flip Image Gallery With Content
A flip animation image with some hidden preview.
Made by Aleh Isakau
October 11, 2015

Accessible Off-Canvas Grid Gallery
Accessible grid style gallery with off-canvas image details prototype with focus management and keyboard support.
Made by Joe Watkins
June 13, 2015

Split Screen Gallery
A split screen gallery for telling a story or showing a slideshow.
Made by Eduardo Bouças
May 20, 2015

Vertical Gallery
Just a full width vertical gallery. Content with a toggle description.
Made by Elizabet Oliveira
October 12, 2014

3D Tilted Scrolling Image Gallery
Here's a nice 3D tilted scrolling image gallery implemented using Pete Rojwongsuriya's jquery.tilted-pagescroll plug-in.
Made by Sebastian Schepis
June 19, 2014