Full Screen Image Gallery – jQuery Story Show Gallery

Full Screen Image Gallery - jQuery Story Show Gallery
Code Snippet:Story Show Gallery
Author: Roman Flossler
Published: January 19, 2024
Last Updated: January 22, 2024
Downloads: 3,558
License: MIT
Edit Code online: View on CodePen
Read More

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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...