Skip to content

wnik/simple-gallery-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-gallery-js

Simplery - gallery javascript

Demo

https://wnik.github.io/simple-gallery-js/

How to use

JavaScript:

<head>
  //...
   <script src="main.js"></script>
   <script>
		 const gallery = new Simplery({
		 	container: '#gallery-container',  // required
		 	itemsPerRow: 6,                   // optional, default: 4
		 	space: 10,                        // optional, default: 0
		 	itemWidth: 320                    // optional, default: 320px
	   	 });
   </script>
</head>

HTML:

<div id="gallery-container">
  <a class="gallery-item" href="#">
    <img src="images/1.jpg">
	</a>
  ... more items
</div>

Gallery item must have class ".gallery-item"

About

Simple Gallery JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published