JSFiddle - React, Tailwind, and code Playground

by roadrash

HTML

<script src="http://highslide.com/highslide/highslide-full.js"></script>
<link rel="stylesheet" href="http://highslide.com/highslide/highslide.css">
<div class="highslide-gallery">
    <a href="http://highslide.com/images/gallery1.jpg" class="highslide" onclick="return hs.expand(this)">
        <img src="http://highslide.com/images/gallery1.thumb.jpg" alt="Highslide JS"
        title="Click to enlarge" />
    </a>
    <a href="http://highslide.com/images/gallery2.jpg" class="highslide" onclick="return hs.expand(this)">
        <img src="http://highslide.com/images/gallery2.thumb.jpg" alt="Highslide JS"
        title="Click to enlarge" />
    </a>
    <a href="http://highslide.com/images/gallery3.jpg" class="highslide" onclick="return hs.expand(this)">
        <img src="http://highslide.com/images/gallery3.thumb.jpg" alt="Highslide JS"
        title="Click to enlarge" />
    </a>
</div>

CSS

/* necessay CSS for the controls  */
.highslide-controls {
	position: absolute;
	width: 100%;
	height: 0;
	background: none;
	margin: 0;
}
.highslide-controls ul {
	position: absolute;
	width: 100%;
	left: 0;
	height: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	background: none;

}
.highslide-controls li {
	position: absolute;
	padding: 0;
	float: left;
	margin:0;
}
.highslide-controls a {
	background-image: url(http://www.roadrash.no/hs-support/highslide/graphics/gallery_controls.gif);
	display: block;
	float: left;
	height: 32px;
	width: 63px;
	outline: none;
}
.highslide-controls a.disabled {
	cursor: default;
}
.highslide-controls a.disabled span {
	cursor: default;
}
.highslide-controls a span {
	/* hide the text for these graphic buttons */
	display: none;
	cursor: pointer;
}
.highslide-controls .highslide-next {
	right: 0;
}
/* The CSS sprites for the controlbar - see http://www.google.com/search?q=css+sprites */
.highslide-controls .highslide-previous a {
	background-position: 0 0;
}
.highslide-controls .highslide-previous a:hover {
	background-position: 0 -32px;
}
.highslide-controls .highslide-previous a.disabled {
	background-position: 0 -32px !important;
}
.highslide-controls .highslide-play {
	display: none;
}
.highslide-controls .highslide-pause {
	display: none;
}
.highslide-controls .highslide-next a {
	background-position: -63px 0;
}
.highslide-controls .highslide-next a:hover {
	background-position: -63px -32px;
}
.highslide-controls .highslide-next a.disabled {
	background-position: -63px -32px !important;
}
.highslide-controls .highslide-move {
	display: none;
}
.highslide-controls .highslide-full-expand {
	display: none;
}
.highslide-controls .highslide-close {
	display: none;
}

JavaScript

// spread controls mod relativeTo: 'viewport'

hs.graphicsDir = 'http://highslide.com/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.dimmingOpacity = 0.75;

// Add the controlbar
hs.addSlideshow({
    //slideshowGroup: 'group1',
    interval: 5000,
    repeat: false,
    useControls: true,
    overlayOptions: {
        position: 'middle',
        width: '100%',
        relativeTo: 'viewport'
    }
});

// Spread controls mod: reposition the lower buttons
hs.Expander.prototype.onAfterExpand = function() {
    if (this.slideshow && this.slideshow.btn) {
        var btn = this.slideshow.btn;
        btn.previous.style.middle = (this.y.size - btn.previous.offsetHeight) + 'px';
        btn.next.style.middle = (this.y.size - btn.next.offsetHeight) + 'px';
    }
};