The “SSG” (Show Story Gallery) is a full-screen image gallery created with jQuery and CSS3. This gallery comes with a fully responsive (mobile friendly) design, keyboard buttons navigation enabled and 3D hover effects. You just need to add your image links in its HTML structure, the plugin will create UI dynamically.
Moreover, users can navigate images with the mouse wheel, keyboard arrows key, and tap/swipe. It can be customized with additional CSS.
How to Create Full Screen Gallery
1. First of all download this project and include the SSG plugin’s CSS files in your HTML document.
<!-- Gallery CSS --> <link rel='stylesheet' href='css/sample-gallery.css' media='all' /> <link rel="stylesheet" href="css/ssg.css" media="all">
2. After that, create HTML section
element with the class name “gallery” and place your full-sized images in anchor and thumbnail in img
tag.
<section class="gallery"> <a href='path/to/actual-image.jpg'> <img src="path/to/thumbnail.jpg" alt="Your image story goes here" /> </a> <a href='path/to/actual-image.jpg'> <img src="path/to/thumbnail.jpg" alt="Your image story goes here" /> </a> <a href='path/to/actual-image.jpg'> <img src="path/to/thumbnail.jpg" alt="Your image story goes here" /> </a> <a href='path/to/actual-image.jpg'> <img src="path/to/thumbnail.jpg" alt="Your image story goes here" /> </a> <a href='path/to/actual-image.jpg'> <img src="path/to/thumbnail.jpg" alt="Your image story goes here" /> </a> <a href='path/to/actual-image.jpg'> <img src="path/to/thumbnail.jpg" alt="Your image story goes here" /> </a> <br clear='all'/> </section>
3. Now, load the jQuery JavaScript library and SSG plugin’s JS file into your webpage. After loading these scripts, the full-screen image gallery will automatically activate.
<!-- jQuery --> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <!-- SSG JS --> <script type="text/javascript" src="js/ssg.js"></script>
That’s all! hopefully, you have successfully created a fullscreen image gallery. If you have any questions or suggestions, feel free to comment below.
Similar Code Snippets:
I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences.
I truly enjoy what I’m doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.