JSFiddle - React, Tailwind, and code Playground

by Garth Edwards

HTML

<div class="infowindow-background">
    <div class="infoBody">
        <div class="swiperContainer swiper-container" id="carousel">
            <ul class="swiperWrapper swiper-wrapper">
                <li class="swiper-slide">
    	<div class="imgWrapper">
			<div class="imgContainer">
				<a href="http:&#x2F;&#x2F;dev.gms.gigmaps.com&#x2F;eOkaluX"><img src='https:&#x2F;&#x2F;s3.amazonaws.com&#x2F;gmscdntest&#x2F;ugd&#x2F;photos&#x2F;placeholders&#x2F;event&#x2F;default3.jpg' width='130' height ='130' border='0'/></a>
			</div>
			<div class="divider"></div>
			<div class="btnContainer">
				<a href="" target="_blank"><img src="http:&#x2F;&#x2F;dev.gms.gigmaps.com/public/assets/images/m_linkbutton_TICKETS_S.svg" class="btn svg ticketBtn" data-svg_class="ticket-button" /></a>
				
					<img src="http:&#x2F;&#x2F;dev.gms.gigmaps.com/public/assets/images/m_linkbutton_WISHLIST.svg" class="btn right svg wishBtn" data-svg_class="event-button-stroke" />
				
					<img src="http:&#x2F;&#x2F;dev.gms.gigmaps.com/public/assets/images/m_linkbutton_ATTEND.svg" class="btn right svg attendBtn" data-svg_class="event-button" />
			</div>
		</div>
		<div class="contentWrapper">
			<div class="dateLabel label " style="font-size: 12px; line-height: 12px;">2015-10-24 </div>
			<div class="eventNameLabel label" style="font-size: 16px; line-height: 16px;"><a href="http:&#x2F;&#x2F;dev.gms.gigmaps.com&#x2F;eOkaluX" class="event_link">Miguel Zenon</a></div>
			<div class="orgLabel label" style="font-size: 14px; line-height: 14px;"><a href="http:&#x2F;&#x2F;dev.gms.gigmaps.com&#x2F;aYYDVSN" class="artist_link">Miguel Zenon</a></div>
			<div class="orgRating">
				<!--foreach < artist rating -->
					<div class="active"></div>
				<!-- end artist rating loop -->
				<!--foreach > artist rating -->
					<div class="inactive"></div>
				<!-- end artist rating loop -->
			</div>
			<div class="locLabel label" style="font-size: 14px; line-height: 14px;"><a...

CSS

.infowindow-background {
	    background: rgba(0, 0, 0, 0.1);
	    color: white;
	    padding: 0;
	    width: 420px;
	    height: 200px;
	    margin-left: 0px;
	    overflow: hidden;
	}
	.infowindow-wrapper {
	    position: relative;
	    width: 100%;
	    height: 100%;
	    max-width: 500px;
	    overflow: hidden;
	}
	.infoWindow {
	    position: absolute;
	    top: 0;
	    bottom: 0;
	    left: 0;
	    right: 0;
	    margin: 0;
	    padding: 0;
	    overflow: hidden;
	}
	.infoBody {
	    position: relative;
	    background: rgba(0, 0, 0, 0.8);
	    height: 170px;
	    margin: 0;
	    padding: 0;
	    overflow: hidden;
	}
	.infoFooter {
	    position: relative;
	    height: 15%;
	    margin: 0;
	    padding: 0;
	    overflow: hidden;
	}
	.infoFooter .nav {
	    width: 27.777777777%;
	    height: 84%;
	    margin: 1% 0 0 0;
	    background: rgba(0, 0, 0, 0.3);
	    background-size: auto 100%;
	    background-repeat: no-repeat;
	}
	.infoFooter .nav.left {
	    float: left;
	    background-image: url(../../images/Button_POINT_LEFT.svg);
	    display: visible;
	}
	.infoFooter .nav.right {
	    float: right;
	    background-image: url(../../images/Button_POINT_RIGHT.svg);
	    background-position: right;
	    display: visible;
	}
	.infoFooter .downArrow {
	    width: 15%;
	    height: 100%;
	    margin: auto;
	}
	.arrowcontainer {
	    width: 100%;
	    height: 100%;
	    position: relative;
	}
	.infoFooter .downArrow .infobox_arrow {
	    width: 50%;
	    height: 0;
	    padding-left:50%;
	    padding-top: 50%;
	    overflow: hidden;
	    position: absolute;
	    bottom: 0;
	}
	.infoFooter .downArrow .infobox_arrow:after {
	    content:"";
	    display: block;
	    width: 0;
	    height: 0;
	    margin-left:-50px;
	    margin-top:-50px;
	    border-left: 50px solid transparent;
	    border-right: 50px solid transparent;
	    border-top: 50px solid rgba(0, 0, 0, 0.8);
	}
	.swiperContainer {
	    width: 100%;
	    height: 100%;
	    position: absolute;
	    margin:...

JavaScript

(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else...