DataFormJS [imageGallery] Framework Plugin with Handlebars

Image Gallery

Features

GitHub Full Source Code

Example Usage and Code

                    <!--
    Include plugin [js/plugins/imageGallery.min.js]

    Add attribute [data-image-gallery] and optional [title] or [alt]
    to an <img> or other element for each image.
-->
<img
    src="{{thumbnail}}"
    data-image-gallery="{{image}}"
    alt="{{title}}">

<div
    class="card-image"
    style="background-image: url({{thumbnail}});"
    data-image-gallery="{{image}}"
    title="{{title}}"></div>

<!--
To override default styles use `!important` and specify the style
attributes to override in any style sheet on the page or define your
own style sheet before the plugin runs using id `image-gallery-css`.
-->
<style>
.image-gallery-overlay { background-color: black !important; }
.image-gallery-overlay { background-color: rgba(0,0,0,.7) !important; }

.image-gallery-overlay .btn-previous,
.image-gallery-overlay .btn-next { background-color: blue !important; }
</style>
<style id="image-gallery-css">...</style>
<link rel="stylesheet" id="image-gallery-css" href="css/image-gallery.css">