Skip to content

alnidok/grid-gallery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grid-gallery

A simple and light Grid Gallery

Demo

https://jestov.com/grid-gallery/

Usage

  1. Add a link to the css file in your <head>:
<link rel="stylesheet" type="text/css" href="css/grid-gallery.css"/>
// Or for the minified file, add this:
<link rel="stylesheet" type="text/css" href="css/grid-gallery.min.css"/>
  1. On your <body> tag add:
<div id="gg-screen" hidden></div>
<div class="gg-box">
  <img src="img/your-image-1.jpg">
  <img src="img/your-image-2.jpg">
  <img src="img/your-image-3.jpg">
  <img src="img/your-image-n.jpg">
</div>
  1. Before your closing <body> tag add:
<script type="text/javascript" src="js/grid-gallery.js"></script>
// Or for the minified file, add this:
<script type="text/javascript" src="js/grid-gallery.min.js"></script>

Credits

All images from Unsplash

About

A simple and light Grid Gallery with pure JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 40.5%
  • JavaScript 38.2%
  • CSS 21.3%