diff --git a/README.md b/README.md index 9ace70e..c6878f7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,35 @@ # gallery.mjs +Module for creating galleries with re-ordering -Module for creating galleries with re-ordering \ No newline at end of file +## Example +```html +
+ + + + + + + Order: +
+``` +```js +import("/js/modules/gallery.mjs").then((module) => { + // Initializing the instance + const instance = new module.gallery( + document.getElementById("wrap"), + document.getElementById("images"), + document.getElementById("gallery"), + true + ); +}); +``` +CSS in the `/index.css` file + +## Demonstration +### [CodePen](https://codepen.io/mirzaev-sexy/pen/RNPdYvv)

+![CodePen preview](preview/1.png) +![CodePen preview](preview/2.gif) \ No newline at end of file