123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <header>
	<h1>Plugins</h1>
	<p class="subheading">Enhance your website with some of these great additions.</p> 
	<form>
		<input type="search" placeholder="Search plugins">
	</form>
</header>

<div class="slider-goes-here">
	<p>slider</p>
<!-- 	<ul>
		<li>Slide 1</li>
		<li>Slide 2</li>
		<li>Slide 3</li>
		<li>Slide 4</li>
	</ul> -->
</div>

<section>
	<h1>Popular Plugins <a href="" class="jump-link">See all</a></h1>
	<div class="two-up__cards">
		<div>
			<div class="avatar">
				<img src="//ps.w.org/advanced-custom-fields/assets/icon-128x128.png" />
			</div>
			<div class="detail">
<h1>Advanced Custom Fields</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="dashicons dashicons-star-empty"></span>
					<span class="dashicons dashicons-star-empty"></span>
					<span class="dashicons dashicons-star-empty"></span>
					<span class="review-count">(841)</span>
				</div>
						<p>Customise WordPress with powerful, professional and intuitive fields</p>
			</div>
		</div>
		<div>
			<div class="avatar">	
				<img src="//ps.w.org/really-simple-captcha/assets/icon-256x256.png" />
				<div class="tag__cards light"><span class="dashicons dashicons-cart"></span> Addons</div>
			</div>
			<div class="detail">
				<h1>Really Simple CAPTCHA</h1>
				<p>Really Simple CAPTCHA is a CAPTCHA module intended to be called from other plugins. It is originally created for my Contact Form 7 plugin.</p>
<div class="rating">
  <div class="rating__bar">
    <div class="rating__bar__bg"></div>
    <div class="rating__bar__filled" style="width:82%"></div>
  </div>
  <div class="rating__count">74 ratings</div>
</div>
<div class="rating installs">
  <div class="rating__bar">
    <div class="rating__bar__bg"></div>
    <div class="rating__bar__filled" style="width:42%"></div>
  </div>
  <div class="rating__count">100,000+ users</div>
</div>
		
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/better-wp-security/assets/icon-128x128.jpg" />
				<div class="tag__cards">pro</div>
			</div>
			<div class="detail">
				<h1>iThemes Security (formerly Better WP Security)</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(3,648)</span>
				</div>
				<p>Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="https://ps.w.org/contact-form-7/assets/icon-128x128.png" />
				<div class="tag__cards">pro</div>
			</div>
			<div class="detail">
				<h1>Contact Form 7</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(934)</span>
				</div>
				<p>Just another contact form plugin. Simple but flexible.</p>
			</div>
		</div>
	</div>
</section>

<section>
	<h1>Trending Plugins <a href="" class="jump-link">See all</a></h1>
	<div class="two-up__cards">
		<div>
			<div class="avatar">
				<img src="//ps.w.org/easy-digital-downloads/assets/icon-128x128.png" />
			</div>
			<div class="detail">
				<h1>Easy Digital Downloads</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(220)</span>
				</div>
				<p>Sell digital downloads through WordPress with this complete digital downloads management plugin</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/better-wp-security/assets/icon-128x128.jpg" />
				<div class="tag__cards">pro</div>
			</div>
			<div class="detail">
				<h1>iThemes Security (formerly Better WP Security)</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(3,648)</span>
				</div>
				<p>Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/wp-smushit/assets/icon-128x128.jpg" />
				<div class="tag__cards light">light</div>
			</div>
			<div class="detail">
				<h1>WP Smush - Image Optimization</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(1,581)</span>
				</div>
				<p>Reduce image file sizes, improve performance and boost your SEO using the free WPMU DEV WordPress Smush API.</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/simple-cache/assets/icon-128x128.png" />
				<div class="tag__cards light">light</div>
			</div>
			<div class="detail">
				<h1>Simple Cache</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(13)</span>
				</div>
				<p>A very simple plugin to make your site run lightning fast with caching.</p>
			</div>
		</div>
	</div>
</section>

<section>
	<h1>Beta Plugins <a href="" class="jump-link">See all</a></h1>
	<div class="two-up__cards">
		<div>
			<div class="avatar">
				<img src="//ps.w.org/shiny-updates/assets/icon-128x128.png" />
			</div>
			<div class="detail">
				<h1>Shiny Updates</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(21)</span>
				</div>
				<p>A smoother experience for managing plugins and themes.</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/customize-posts/assets/icon-128x128.png" />
			</div>
			<div class="detail">
				<h1>Customize Posts</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(5)</span>
				</div>
				<p>Edit posts and postmeta in the Customizer. Stop editing your posts/postmeta blind!</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/customizer-ui-experiments/assets/icon-128x128.png" />
				<div class="tag__cards light">light</div>
			</div>
			<div class="detail">
				<h1>Customizer UI Experiments</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(1)</span>
				</div>
				<p>Testing ground for UI and UX changes and features proposed for the Customizer.</p>
			</div>
		</div>
		<div>
			<div class="avatar">
				<img src="//ps.w.org/rest-api/assets/icon-128x128.png" />
			</div>
			<div class="detail">
				<h1>WordPress REST API (Version 2)</h1>
				<div class="stars__small">
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-filled"></span>
					<span class="dashicons dashicons-star-half"></span>
					<span class="review-count">(20)</span>
				</div>
				<p>Access your site's data through an easy-to-use HTTP REST API. (Version 2)</p>
			</div>
		</div>
	</div>
</section>

<section class="more-info">
	<div class="three-up">
		<div>
			<h4>Plugin Authors</h4>
			<p>ucas ipsum dolor sit amet wicket mccool sidious kyp kessel greedo kastolar arkanis jan di. Pavan ventress anakin thul chewbacca t'landa. Cade tavion evazan bando mon kiffar roan antemeridian.</p>
		</div>
		<div>
			<h4>Plugin Reviewers</h4>
			<p>Sing priapulin ki-adi-mundi ismaren hutt cornelius mirialan sulorine isard. Ansuroer wharl ranat chistori. Gilad owen reach solo unduli fett falleen mygeeto jerjerrod. Mothma vratix lumiya maris.</p>
		</div>
		<div>
			<h4>Plugin Handbook</h4>
			<p>Togorian nikto vratix darth. Antonio calrissian annoo chazrach. Ewok xexto ackbar zann. Valorum darth noghri greeata yané. Sy solo ventress meridian firmus auril darth mantell dunwell.</p>
		</div>
	</div>
</section>
            
          
!
            
              // Unslider Minified CSS
//------------------------------

.unslider{overflow:auto;margin:0;padding:0}.unslider-wrap{position:relative}.unslider-wrap.unslider-carousel>li{float:left}.unslider-vertical>ul{height:100%}.unslider-vertical li{float:none;width:100%}.unslider-fade{position:relative}.unslider-fade .unslider-wrap li{position:absolute;left:0;top:0;right:0;z-index:8}.unslider-fade .unslider-wrap li.unslider-active{z-index:10}.unslider li,.unslider ol,.unslider ul{list-style:none;margin:0;padding:0;border:none}.unslider-arrow{position:absolute;left:20px;z-index:2;cursor:pointer}.unslider-arrow.next{left:auto;right:20px}

// End Unslider CSS
//------------------------------

.unslider-nav ol {
  list-style: none;
  text-align: center;
}
.unslider-nav ol li {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 4px;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -999em;
  border: 1px solid #ccc;
  cursor: pointer;
}
.unslider-nav ol li.unslider-active {
  background: #EEE;
	//border:1px solid #EEE;
  cursor: default;
}

.slider-goes-here {
	width: 100vw;
	height: 400px;
	background: #EEE;
	
	p {
		margin: 0;
		padding-top: 160px;
		text-align: center;
	}
}

// End Unslider dots CSS
//------------------------------


$max-width: 50rem;

img { max-width:100%; }

.notification {
	padding:.5rem;
	background:$color__green;
	text-align:center;
	font-size:ms(-2);
	cursor:pointer;
}
@media ( min-width:67rem ) {
	.notification { margin:1rem auto 0; max-width:$max-width; }
}

.dashicons {
	display:block;
	margin:0 auto -1rem;
	font-size:4rem;
	color:#CBCDCE;
	width:auto;
	height:auto;
}

.cta-wrapper { 
	text-align:center;
	font-size:ms(-1);
	margin:2rem 0 2rem; 
	display:block;
}
@media (min-width: $ms-breakpoint) {
	.cta-wrapper {
		font-size:ms(-2);
		margin: 4rem 0 2rem;
	}
}

.wp-core-ui .button-xl {
	font-size:ms(0);
	padding: .5em 1.5em;
	height:auto;
}

header {
	padding: ms(4) ms(1);
	background:$color__wp-blue;
	
	h1 {
		text-align:center;
		color:#FFF;
		line-height: 1;
	}
	.subheading {
		color:#FFF;
		opacity: .8;
	}
	form {
		margin-bottom:2rem;
		
		input[type="search"] {
			width: ms(28);
			max-width: 100%;
			padding:.5rem;
			display:block;
			margin:0 auto;
			border:none;
			font-size: ms(0);
		}
	}
	
	@media (min-width: $ms-breakpoint) {
		padding: ms(4);
	}
}

.slider {
	width:100vw;
	margin:0;
	padding:0 10vw;
	
	li { 
		height:400px;
		display:flex;
		justify-content: center;
		align-items: center;
		background:#CCC;
		
		&:nth-child(even) { background:#EEE; }
	}
}
.unslider {
	.unslider-arrow { display:none; }
}

main {
	max-width:50rem;
	margin:0 auto;
	padding:ms(10) ms(4);
	
	h1 {
		@extend h3;
	}
}

section {
	margin:0 auto;
	padding:ms(10) ms(4);
	max-width:$max-width;
	border-bottom:2px solid #EEE;
	
	.container {
		max-width:$max-width;
		margin:0 auto;
		@extend .clearfix;
	}
	h1 {
		@extend h3;
		margin-bottom: 3rem;
		
		a.jump-link {
			float:right;
			font-size:ms(0);
			position:relative;
			top:.7rem;
		}
	}
	h2 { 
		text-align:center; 
	}
	&.download { 
		display:none; 
	}
	&.download, &.apps-mobile {
		h2 { 
			margin-top:0rem; 
		}
	}
	&.download-mobile {
		.subheading { 
			margin:0 auto; 
		}
		.cta-wrapper { 
			margin:2rem 0 0; 
		}
	}
	&.apps { 
		display:none; 
	}
	
	@media (min-width: $ms-breakpoint) {
		aside {
			float:left;
			width:30%;
			margin-right:5%;
		}
		article {
			float:left;
			width:65%;
		}
	}
}
@media (min-width: 67rem) {
	section {
		padding: ms(10) 0;
	}
}

.three-up { 
	@extend .clearfix;
	
	> div {
		margin-top:3rem;
		
		.logo__bluehost, .logo__getlisted, .logo__wpcom { height:35px; }
	}
	
	@media (min-width: $ms-breakpoint) {
		> div {
			float:left;
			width:30%;
			margin-right:5%;
			font-size:ms(-2);
			&:last-child {
				margin-right:0;
			}
		}
	}
}

.more-info .three-up {
	> div {
		margin-top:0;
	}
}

.stars {
	margin-bottom: 1rem;
	@extend .clearfix; 
	
	[class*='dashicons-star-'] {
		font-size: ms(4);
		color:#FFB900;
		display:inline-block;
		margin:0;
	}
}
.stars__small {
	@extend .stars;
	display: block;
	margin: 0 10px 8px 0;
	line-height: 1;
	
	.review-count {
		font-size: ms(-2);
		color: #999;
	}
	
	[class*='dashicons-star-'] {
		font-size: ms(0);
	}
}

.two-up__cards {
	@extend .clearfix;
	
	> div {
		height: auto;
		margin-bottom:4%;
		position: relative;
		cursor: pointer;
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		
		> .avatar {
			width: 30%;
			margin: 0 4% 0 0;
			position: relative;
			max-width: 128px;
		}
		
		.detail {
			width: 66%;
		}
		
		h1 {
			font-size: ms(0);
			margin: 0 0 8px;
			line-height:1.3;
		}
		
		p {
			font-size: ms(-2);
			margin: 0 0 8px;
			//padding-bottom: 32px;
		}
		
		&:hover {
			h1, p { color: $color__wp-blue; }
		}
	}
	
	@media ( min-width:414px ) {
		> div {
			> img {
				width: 120px;
			}
		}
	}
	
	@media ( min-width:992px ) {
		> div {
			float:left;
			width:48%;
			min-height: 150px;
			margin-right:4%;
			
			> img {
				width: 128px;
				height: 128px;
			}
			
			&:nth-child(even) {
				margin-right:0;
			}
		}
	}
}

.tag__cards {
	font-size: ms(-6);
  line-height: 20px;
	width: 100%;
	
  .dashicons {
    display: inline-block;
    font-size: 20px;
    line-height: 20px;
    margin-right: 0.25em;
  }
}

.stars__small .dashicons-star-empty {
  color: #aaa;
}

.rating {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1.2em;
}

.rating__bar {
  position: absolute;
  top: 50%;
  margin-top: -2px;
  left: 0%;
  width: 70%;
}

.rating__bar__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ddd;
}

.rating__bar__filled {
  position: absolute;
  top: 0;
  left: 0%;
  height: 4px;
  background: #FFB900;
}

.rating__count {
  position: absolute;
  top: 0;
  left: 70%;
  width: 30%;
  font-size: 0.6em;
  line-height: 2em;
  color: #777;
  padding-left: 0.5em;
}

.installs .rating__bar__filled {
  background: #0073aa;
}

            
          
!
            
              // Unslider Minified JS
// https://github.com/idiot/unslider
//------------------------------
!function($){return $?($.Unslider=function(t,n){var e=this;return e._="unslider",e.defaults={autoplay:!1,delay:3e3,speed:750,easing:"swing",keys:{prev:37,next:39},nav:!0,arrows:{prev:'<a class="'+e._+'-arrow prev">Prev</a>',next:'<a class="'+e._+'-arrow next">Next</a>'},animation:"horizontal",selectors:{container:"ul:first",slides:"li"},animateHeight:!1,activeClass:e._+"-active",swipe:!0,swipeThreshold:.2},e.$context=t,e.options={},e.$parent=null,e.$container=null,e.$slides=null,e.$nav=null,e.$arrows=[],e.total=0,e.current=0,e.prefix=e._+"-",e.eventSuffix="."+e.prefix+~~(2e3*Math.random()),e.interval=null,e.init=function(t){return e.options=$.extend({},e.defaults,t),e.$container=e.$context.find(e.options.selectors.container).addClass(e.prefix+"wrap"),e.$slides=e.$container.children(e.options.selectors.slides),e.setup(),$.each(["nav","arrows","keys","infinite"],function(t,n){e.options[n]&&e["init"+$._ucfirst(n)]()}),jQuery.event.special.swipe&&e.options.swipe&&e.initSwipe(),e.options.autoplay&&e.start(),e.calculateSlides(),e.$context.trigger(e._+".ready"),e.animate(e.options.index||e.current,"init")},e.setup=function(){e.$context.addClass(e.prefix+e.options.animation).wrap('<div class="'+e._+'" />'),e.$parent=e.$context.parent("."+e._);var t=e.$context.css("position");"static"===t&&e.$context.css("position","relative"),e.$context.css("overflow","hidden")},e.calculateSlides=function(){if(e.total=e.$slides.length,"fade"!==e.options.animation){var t="width";"vertical"===e.options.animation&&(t="height"),e.$container.css(t,100*e.total+"%").addClass(e.prefix+"carousel"),e.$slides.css(t,100/e.total+"%")}},e.start=function(){return e.interval=setTimeout(function(){e.next()},e.options.delay),e},e.stop=function(){return clearTimeout(e.interval),e},e.initNav=function(){var t=$('<nav class="'+e.prefix+'nav"><ol /></nav>');e.$slides.each(function(n){var i=this.getAttribute("data-nav")||n+1;$.isFunction(e.options.nav)&&(i=e.options.nav.call(e.$slides.eq(n),n,i)),t.children("ol").append('<li data-slide="'+n+'">'+i+"</li>")}),e.$nav=t.insertAfter(e.$context),e.$nav.find("li").on("click"+e.eventSuffix,function(){var t=$(this).addClass(e.options.activeClass);t.siblings().removeClass(e.options.activeClass),e.animate(t.attr("data-slide"))})},e.initArrows=function(){e.options.arrows===!0&&(e.options.arrows=e.defaults.arrows),$.each(e.options.arrows,function(t,n){e.$arrows.push($(n).insertAfter(e.$context).on("click"+e.eventSuffix,e[t]))})},e.initKeys=function(){e.options.keys===!0&&(e.options.keys=e.defaults.keys),$(document).on("keyup"+e.eventSuffix,function(t){$.each(e.options.keys,function(n,i){t.which===i&&$.isFunction(e[n])&&e[n].call(e)})})},e.initSwipe=function(){var t=e.$slides.width();"fade"!==e.options.animation&&e.$container.on({movestart:function(t){return t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY?!!t.preventDefault():void e.$container.css("position","relative")},move:function(n){e.$container.css("left",-(100*e.current)+100*n.distX/t+"%")},moveend:function(n){Math.abs(n.distX)/t>e.options.swipeThreshold?e[n.distX<0?"next":"prev"]():e.$container.animate({left:-(100*e.current)+"%"},e.options.speed/2)}})},e.initInfinite=function(){var t=["first","last"];$.each(t,function(n,i){e.$slides.push.apply(e.$slides,e.$slides.filter(':not(".'+e._+'-clone")')[i]().clone().addClass(e._+"-clone")["insert"+(0===n?"After":"Before")](e.$slides[t[~~!n]]()))})},e.destroyArrows=function(){$.each(e.$arrows,function(t,n){n.remove()})},e.destroySwipe=function(){e.$container.off("movestart move moveend")},e.destroyKeys=function(){$(document).off("keyup"+e.eventSuffix)},e.setIndex=function(t){return 0>t&&(t=e.total-1),e.current=Math.min(Math.max(0,t),e.total-1),e.options.nav&&e.$nav.find('[data-slide="'+e.current+'"]')._active(e.options.activeClass),e.$slides.eq(e.current)._active(e.options.activeClass),e},e.animate=function(t,n){if("first"===t&&(t=0),"last"===t&&(t=e.total),isNaN(t))return e;e.options.autoplay&&e.stop().start(),e.setIndex(t),e.$context.trigger(e._+".change",[t,e.$slides.eq(t)]);var i="animate"+$._ucfirst(e.options.animation);return $.isFunction(e[i])&&e[i](e.current,n),e},e.next=function(){var t=e.current+1;return t>=e.total&&(t=0),e.animate(t,"next")},e.prev=function(){return e.animate(e.current-1,"prev")},e.animateHorizontal=function(t){var n="left";return"rtl"===e.$context.attr("dir")&&(n="right"),e.options.infinite&&e.$container.css("margin-"+n,"-100%"),e.slide(n,t)},e.animateVertical=function(t){return e.options.animateHeight=!0,e.options.infinite&&e.$container.css("margin-top",-e.$slides.outerHeight()),e.slide("top",t)},e.slide=function(t,n){if(e.options.animateHeight&&e._move(e.$context,{height:e.$slides.eq(n).outerHeight()},!1),e.options.infinite){var i;n===e.total-1&&(i=e.total-3,n=-1),n===e.total-2&&(i=0,n=e.total-2),"number"==typeof i&&(e.setIndex(i),e.$context.on(e._+".moved",function(){e.current===i&&e.$container.css(t,-(100*i)+"%").off(e._+".moved")}))}var o={};return o[t]=-(100*n)+"%",e._move(e.$container,o)},e.animateFade=function(t){var n=e.$slides.eq(t).addClass(e.options.activeClass);e._move(n.siblings().removeClass(e.options.activeClass),{opacity:0}),e._move(n,{opacity:1},!1)},e._move=function(t,n,i,o){return i!==!1&&(i=function(){e.$context.trigger(e._+".moved")}),t._move(n,o||e.options.speed,e.options.easing,i)},e.init(n)},$.fn._active=function(t){return this.addClass(t).siblings().removeClass(t)},$._ucfirst=function(t){return(t+"").toLowerCase().replace(/^./,function(t){return t.toUpperCase()})},$.fn._move=function(){return this.stop(!0,!0),$.fn[$.fn.velocity?"velocity":"animate"].apply(this,arguments)},void($.fn.unslider=function(t){return this.each(function(){var n=$(this);if("string"==typeof t&&n.data("unslider")){t=t.split(":");var e=n.data("unslider")[t[0]];if($.isFunction(e))return e.apply(n,t[1]?t[1].split(","):null)}return n.data("unslider",new $.Unslider(n,t))})})):console.warn("Unslider needs jQuery")}(window.jQuery);

// End Unslider JS
//------------------------------


// Call the slider
jQuery(document).ready(function($) {
	$('.slider').unslider({
		infinite: true,
		autoplay: true
	});
});



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console