65+ CSS Galleries - Free Code + Demos

Collection of 65+ CSS Galleries. All items are 100% free and open-source. The list also includes flexbox css galleries, grid, and lightbox.

1. Diamond Shape Grid

CSS Galleries - diamond shape grid
Author: Tanisha J. (techyt)
Created on: March 12, 2020
Made with: HTML, CSS
Tags: cssgrid, cssanimation, html5, css3

2. CSS Masonry Photo Gallery

CSS Galleries - CSS Masonry Photo Gallery
A masonry style photo gallery.
Author: Russ Perry (rperry1886)
Created on: January 21, 2020
Made with: HTML, SCSS
Tags: cpc-photo-gallery, codepenchallenge

3. Hive Photo Gallery Grid

CSS Galleries - Hive Photo Gallery Grid
Changes from original: use an actual CSS grid instead of absolute positioning made responsive generate the markup with Pug such that it's easy to add/ remove columns
Author: Ana Tudor (thebabydino)
Created on: January 21, 2020
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: cpc-photo-gallery, codepenchallenge, css-grid, css-variables, clip-path

4. Gritty Grid Gallery

CSS Galleries - Gritty Grid Gallery
A fast idea to use css grid to display an image gallery. hover/click to expand
Author: iGadget (iGadget)
Created on: January 20, 2020
Made with: HTML, SCSS
Tags: codepenchallenge, cpc-photo-gallery

5. Winter Gallery

CSS Galleries - Winter gallery
Author: Ludmila Tretyakova (ludmila-tretyakova)
Created on: December 10, 2019
Made with: HTML, SCSS
Tags: cpc-checkbox-hack, codepenchallenge, css

6. Rhomb Gallery On Grids + Clip-path

CSS Galleries - Rhomb gallery on grids + clip-path
Author: yoksel (yoksel)
Created on: November 20, 2019
Made with: HTML, SCSS

7. Fashion Isometric Layout

CSS Galleries - Fashion Isometric Layout
Experiment for testing isometric ecommerce layout concept
Author: Malaika Ishtiaq (MalaikaIshtiaq)
Created on: July 27, 2019
Made with: HTML, SCSS
Tags: css, layout, design, fashion, html

8. Drop Spread Blur

CSS Galleries - Drop Spread Blur
{grid|>static|>absolute} combo css only; 👍🏻
Author: ycw (ycw)
Created on: May 29, 2019
Made with: Pug, Less
CSS Pre-processor: Less
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: gallery

9. Winter Gallery

CSS Galleries - Winter gallery
Author: Ludmila Tretyakova (ludmila-tretyakova)
Created on: December 10, 2019
Made with: HTML, SCSS
Tags: cpc-checkbox-hack, codepenchallenge, css

10. Hexagon Gallery

CSS Galleries - Hexagon Gallery
Created for the February 2019 CodePen Challenge CSS only Hexagon Gallery
Author: Gabriela Johnson (gabrielajohnson)
Created on: February 27, 2019
Made with: HTML, CSS
Tags: codepenchallenge, cpc-polygon

11. Accordion Gallery Zoom Animation (css, Responsive)

CSS Galleries - Accordion Gallery Zoom Animation (css, Responsive)
Author: Daniel Subat (bbx)
Created on: January 23, 2019
Made with: HTML, SCSS
Tags: cpc-pop, codepenchallenge, accordion, cat

12. Responsive CSS Grid Masonry Gallery

CSS Galleries - Responsive CSS Grid Masonry Gallery
Author: vhanla (vhanla)
Created on: November 15, 2018
Made with: HTML, CSS, JS

13. Pure CSS Responsive Gallery

CSS Galleries - 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!
Author: Pieter Biesemans (pieter-biesemans)
Created on: November 9, 2018
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: css, gallery, responsive, checkbox, no-js

14. Photo Gallery

CSS Galleries - Photo Gallery
Author: Tomasz Sporys (Tomasz-S)
Created on: June 26, 2017
Made with: HTML, CSS, JS

15. Responsive Photo Gallery Grid With Lightbox And - No Script

CSS Galleries - Responsive Photo Gallery  Grid with Lightbox and - No Script
Responsive Photo Gallery updated with lightbox effects. utilize CSS Grid & Flexbox and no script. Using target property.
Author: Majed (alchatti)
Created on: October 9, 2018
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: TypeScript
HTML Pre-processor: Pug
Tags: grid, gallery, lightbox, no-script, scss

16. Simplicity

CSS Galleries - Simplicity
Author: ycw (ycw)
Created on: September 26, 2018
Made with: Pug, CSS, JS
CSS Pre-processor: None
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: gallery

17. Product

CSS Galleries - Product
A minimal single product page built with Flexbox (@supports for CSS Grid) and vanilla JavaScript.
Author: Katherine Kato (kathykato)
Created on: September 10, 2018
Made with: HTML, SCSS, JS
Tags: 30days30sites, product, minimal, gallery, shop

18. Horizontal Slider To Gallery Grid

CSS Galleries - Horizontal slider to gallery grid
Full responsive grid with awesome mobile UX using one media query and two lines of code.
Author: lucas lemonnier (luclemo)
Created on: September 8, 2018
Made with: HTML, SCSS
Tags: grid, cssgrid, grid-layout

19. Seasons

CSS Galleries - Seasons
Overlap on the Web, Graphic Design Made Easy with CSS Grid by Layout Land Debug view
Author: ycw (ycw)
Created on: September 2, 2018
Made with: Pug, CSS
CSS Pre-processor: None
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: gallery

20. Pop-up/Overlay

CSS Galleries - Pop-up/Overlay
This is a popup overlay design for your portfolio! Display your projects/work in detail with a click of a button.
Author: Julie Park (juliepark)
Created on: June 28, 2018
Made with: HTML, SCSS, JS
Tags: dailyui, popup, overlay, ui-design, portfolio

21. Parallax Image Gallery Using Figure & Figcaption

CSS Galleries - Parallax Image Gallery Using Figure & Figcaption
Author: Booligoosh (Booligoosh)
Created on: June 25, 2018
Made with: HTML, CSS
Tags: codepenchallenge, cpc-figures

22. Gallery

CSS Galleries - Gallery
Image gallery made with Flexbox and CSS Grid.
Author: Katherine Kato (kathykato)
Created on: May 9, 2018
Made with: HTML, SCSS, JS
Tags: 30days30sites, portfolio, gallery, flexbox, css-grid

23. Tumblr Photogrid/photoset With Flex-box In Place Of JavaScript

CSS Galleries - Tumblr photogrid/photoset with flex-box in place of JavaScript
Author: Zed Dash (z-)
Created on: April 14, 2018
Made with: HTML, SCSS
Tags: code-snippet, tumblr, photogrid, photoset

24. Responsive Pure CSS Image Gallery With CSS Grid ✨

CSS Galleries - Responsive pure CSS image gallery with CSS Grid ✨
Decided to start putting together some CSS Grid demos 👍🤓 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 possibl...
Read More
Author: Jhey (jh3y)
Created on: February 6, 2018
Made with: Pug, Stylus, Babel
CSS Pre-processor: Stylus
JS Pre-processor: Babel
HTML Pre-processor: Pug
Tags: grid, css, responsive, image, gallery

25. Magnific Gallery

CSS Galleries - Magnific Gallery
Nice responsive gallery with: ▪ CSS columns ▪ roll over, hover caption ▪ Magnific Popup script ▪ Zoom in effect ▪ Haml & Sass & CoffeeScript NEW VERSION
Author: Michal Niewitala 🍋 (mican)
Created on: July 16, 2017
Made with: Haml, Sass, CoffeeScript
CSS Pre-processor: Sass
JS Pre-processor: CoffeeScript
HTML Pre-processor: Haml
Tags: gallery, popup, css-columns, roll-over, zoom-in

26. Gmail Image Gallery Animation - Transformation 5 CSSthat

CSS Galleries - Gmail Image Gallery Animation - Transformation 5 CSSthat
Author: Vandan27 (Vandan27)
Created on: July 31, 2017
Made with: HTML, CSS, JS
Tags: transformation, gallery, animation, image, css

27. Scrolling & Looping Gallery - Vanilla HTML/CSS/JS - ES5 - No Touch Events

CSS Galleries - Scrolling  & Looping Gallery - Vanilla HTML/CSS/JS - ES5 - No Touch Events
Author: Phil Flanagan (phileflanagan)
Created on: July 16, 2017
Made with: HTML, CSS, JS

28. Photo Gallery

CSS Galleries - Photo Gallery
Author: Tomasz Sporys (Tomasz-S)
Created on: June 26, 2017
Made with: HTML, CSS, JS

29. Amur Leopard Image Gallery With CSS Vars (Responsive, WebKit Only)

CSS Galleries - Amur Leopard Image Gallery With CSS Vars (Responsive, WebKit Only)
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. Mentioned in my CSS-Tricks article Solving the Last Item Problem for a Circular Distribution with Partially Overlap...
Read More
Author: Ana Tudor (thebabydino)
Created on: May 11, 2017
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug
Tags: css-variables, calc, transform, sass, 3d

30. Gallery Hover Effect + Gallery Expanded

CSS Galleries - Gallery hover effect + Gallery expanded
Author: Arthur Camara (arthurcamara1)
Created on: January 13, 2017
Made with: Pug, Stylus, Babel
CSS Pre-processor: Stylus
JS Pre-processor: Babel
HTML Pre-processor: Pug

31. Image Gallery With Zoom

CSS Galleries - Image gallery with zoom
Author: wunnle (wunnle)
Created on: February 3, 2017
Made with: HTML, SCSS, JS

32. 3D TRANSFORM GALLERY - Cube Rotate

CSS Galleries - 3D TRANSFORM GALLERY - cube rotate
Author: Lorina Gousi (loriprift)
Created on: January 30, 2017
Made with: HTML, CSS
Tags: 3d-cube, css-transform, animations

33. Photobox

CSS Galleries - Photobox
Photobox is the evolution, the next generation of gallery UI & UX code. It can do anything. It's super flexible.
Author: Yair Even Or (vsync)
Created on: March 15, 2014
Made with: HTML, CSS, JS
Tags: javascript, ui, gallery, photo-gallery

34. Travel Gallery (Flexbox And CSS Animations/Transitions)

CSS Galleries - Travel Gallery (Flexbox And CSS Animations/Transitions)
Author: Sean Free (seanfree)
Created on: October 8, 2016
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug

35. Slide-out Scrolling Gallery

CSS Galleries - Slide-out Scrolling Gallery
A gallery that reveals three panels as the user scrolls.
Author: Teegan Lincoln (teeganlincoln)
Created on: December 1, 2015
Made with: HTML, SCSS, JS
Tags: scroll, animation, responsive, gallery

36. Reflective Photo Gallery Wall (Experiment)

CSS Galleries - Reflective Photo Gallery Wall (Experiment)
Author: Shawn Reisner (sreisner)
Created on: October 21, 2016
Made with: Pug, SCSS, Babel
CSS Pre-processor: SCSS
JS Pre-processor: Babel
HTML Pre-processor: Pug

37. Quad Image Gallery

CSS Galleries - Quad Image Gallery
Transitioned gallery for four images. A detailed tutorial on my blog
Author: Dudley Storey (dudleystorey)
Created on: March 22, 2014
Made with: HTML, CSS, JS
Tags: gallery, images, css, javascript

38. Gallery With Wave Transition Effect.

CSS Galleries - Gallery with wave transition effect.
It has 24 1920x1080 pictures inside, so it can take a few seconds to download. It looks cool though. Feel free to play around with variables (transition times and delays). You can also change the number of pictures. Just change the variables in scss and js. Also, if you want to add new pic...
Read More
Author: Kirill Kiyutin (kiyutink)
Created on: August 27, 2016
Made with: HTML, SCSS, JS
Tags: wave, gallery, 3d

39. Balkan Style - Portfolio Gallery

CSS Galleries - Balkan Style - Portfolio Gallery
Author: Srdjan Pajdic (MightyShaban)
Created on: April 7, 2014
Made with: HTML, Sass, JS
Tags: gallery, portfolio

40. Google Photos Material Gallery

CSS Galleries - Google Photos Material Gallery
A vanilla javascript photo gallery plugin inspired by Google Photos.
Author: Ettrics (ettrics)
Created on: October 27, 2015
Made with: HTML, SCSS
Tags: gallery, material, google, javascript, animation

41. Rollover CSSS Blur Filter Image Gallery

CSS Galleries - Rollover CSSS Blur Filter Image Gallery
Utilizing CSS Transitions & Transforms and the CSS Blur Filter Webkit & Firefox 35+ browsers only
Author: sjmcpherson (sjmcpherson)
Created on: May 2, 2013
Made with: Haml, Less, JS
CSS Pre-processor: Less
JS Pre-processor: None
HTML Pre-processor: Haml
Tags: rollover, blur, gallery

42. Treehouse: Photo Gallery

CSS Galleries - Treehouse: Photo Gallery
Author: charlie hield (stursby)
Created on: January 30, 2014
Made with: HTML, SCSS, JS
Tags: gallery, lightbox, dribbble

43. Flip Image Gallery With Content

CSS Galleries - Flip image gallery with content
A flip animation image with some hidden preview. When user hover on it, some sh*t happens.
Author: Aleh Isakau (piupiupiu)
Created on: October 11, 2015
Made with: HTML, CSS, JS
Tags: flip, gallery, slide, transform, animation

44. Accessible Off-canvas Grid Gallery

CSS Galleries - Accessible off-canvas grid gallery
Accessible grid style gallery with off-canvas image details prototype with focus management and keyboard support.
Author: Joe Watkins (joe-watkins)
Created on: June 13, 2015
Made with: HTML, SCSS, JS
Tags: slide-gallery, grid gallery, accessible gallery, a11y, aria

45. A Split Screen Gallery

CSS Galleries - A split screen gallery
A split screen gallery for telling a story or showing a slideshow. It's buggy on iOS because of the way it deals with fixed positioned elements.
Author: Eduardo Bouças (eduardoboucas)
Created on: May 20, 2015
Made with: HTML, SCSS, JS
Tags: gallery, split-screen, slideshow

46. Full Width Vertical Gallery / Content With Toggle Description

CSS Galleries - Full Width Vertical Gallery / Content with Toggle Description
Just a full width Vertical Gallery / Content with a toggle description.
Author: Elizabet Oliveira (miukimiu)
Created on: March 26, 2014
Made with: HTML, SCSS, JS
Tags: gallery, image, full, toggle, vertical

47. 3D Tilted Scrolling Image Gallery

CSS Galleries - 3D Tilted Scrolling Image Gallery
Here's a nice 3D tilted scrolling image gallery implemented using Pete Rojwongsuriya's jquery.tilted-pagescroll plug-in. I extended the plugin to add functionality to fade any content contained on the panels as they transition on/off screen. I still have to do a bit of work on getting easi...
Read More
Author: Sebastian Schepis (sschepis)
Created on: June 19, 2014
Made with: HTML, SCSS, JS
Tags: html5, gallery, 3d, scrolling, transitions

48. CSS Gallery Hover Effect

CSS Galleries - CSS Gallery Hover Effect
Author: Sasha (sashatran)
Created on: February 28, 2017
Made with: HTML, SCSS, JS

49. Css Gallery

CSS Galleries - Css gallery
Author: Patrick McMurphy (gaeowyn)
Created on: May 30, 2014
Made with: HTML, CSS

50. CSS Gallery (Lightbox)

CSS Galleries - CSS Gallery (Lightbox)
Author: nebo (nebo)
Created on: March 11, 2016
Made with: HTML, CSS, JS

51. Bright Image CSS Gallery

CSS Galleries - Bright Image CSS Gallery
Author: Nicolas Udy (udyux)
Made with: HTML, PostCSS, JS

52. Pure CSS Gallery Open & Close

CSS Galleries - Pure CSS Gallery Open & Close
Author: panikaro (panikaro)
Created on: June 14, 2017
Made with: HTML, CSS
Tags: pure-css, css, gallery, open, close

53. Fancy Css Gallery

CSS Galleries - fancy css gallery
Author: Shak Daniel (shakdaniel)
Created on: December 10, 2013
Made with: HTML, CSS
Tags: gallery, css, design, dribbble, ui

54. Pure CSS Gallery Resposive

CSS Galleries - Pure CSS gallery resposive
This is a simple gallery pure css responsive
Author: Alejandro (Peluko)
Created on: November 16, 2018
Made with: HTML, CSS
Tags: gallery, responsive, css, images, text

55. CSS Gallery

CSS Galleries - CSS Gallery
A simple css gallery that responds on hover.
Author: badalsaibo (heyDante)
Created on: August 25, 2018
Made with: HTML, CSS

56. CSS Photo Gallery

CSS Galleries - CSS photo gallery
Author: Lucas Trebouet (Luuka)
Created on: June 5, 2016
Made with: HTML, Less

57. HTML CSS Photo Gallery

CSS Galleries - HTML CSS photo gallery
A beautiful photo gallery with HTML and CSS
Author: Pali Madra (palimadra)
Created on: August 16, 2013
Made with: HTML, CSS
Tags: html, css, gallery, photo

58. Nature Gallery

CSS Galleries - Nature Gallery
Coursera and University of Michigan, Advanced Styling with Responsive Design course, week 4 and Optional Photo Gallery assignment. Includes Bootstrap grid, responsive images and table and media query.
Author: Shawn Moy (axial)
Created on: August 16, 2020
Made with: HTML, CSS
Tags: responsive, design, photo, gallery, michigan

59. Gallery

CSS Galleries - Gallery
Gallery grid
Author: frederic (fede19)
Created on: July 15, 2020
Made with: HTML, SCSS, Babel
Tags: gallery, grid, flexbox

60. Grid Gallery

CSS Galleries - Grid Gallery
Gallery image with grid auto-fill responsive
Author: frederic (fede19)
Created on: April 21, 2020
Made with: HTML, SCSS
Tags: gallery, grid, responsive

61. Retro Mini Photo Gallery

CSS Galleries - Retro Mini Photo Gallery
A tribute to a time in web design (not so very long ago) that was ruled by gradients, patterns, and textures. Described here: https://dev.to/5t3ph/retro-mini-gallery-with-modern-css-3ba2
Author: Stephanie Eckles (5t3ph)
Created on: April 5, 2020
Made with: HTML, SCSS
Tags: css, gallery, grid, retro

62. CSS-only Direction-aware Hover Effect

CSS Galleries - CSS-only direction-aware hover effect
Css-only direction-aware hover effect is actually less tricky than you might think. I even might consider using it in production. Because, why not...?
Author: Paulina Hetman (pehaa)
Created on: February 18, 2020
Made with: HTML, SCSS
Tags: grid, dropback-filter, hover, css-only, gallery