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.

            
              <!-- CAROUSEL -->
	<section class="carousel">
		<div id="slideBuffer">
			<img src="http://104.131.105.180/storage/app/media/carousel/carousel_foreground/earth/1.jpg"/>
		</div>
		<input type="radio" name="nav" value="1"  id="slide1" checked>
		<label for="slide1"></label>
		<div class="slide" style="background-image:url(http://104.131.105.180/storage/app/media/carousel/carousel_background/earth/1.jpg)">
			<img src="http://104.131.105.180/storage/app/media/carousel/carousel_foreground/earth/1.jpg"/>
			<div class="bulletContainer">
				<a class="bullet bulletSelected"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
			</div>
			<div class="caption carouselCaption">
				<p>Aurora over the northern hemisphere, from the ISS (solar array visible to the right)<br/>Image: <a target="_blank" href="https://www.esa.int/var/esa/storage/images/esa_multimedia/images/2015/04/living_being/15347247-1-eng-GB/Living_being_fullwidth.jpg">NASA/ESA</a></p>
			</div>
		</div>

		<input type="radio" name="nav" value="2" id="slide2">
		<label for="slide2"></label>
		<div class="slide" style="background-image:url(http://104.131.105.180/storage/app/media/carousel/carousel_background/earth/2.jpg)">
			<img src="http://104.131.105.180/storage/app/media/carousel/carousel_foreground/earth/2.jpg"/>
			<div class="bulletContainer">
				<a class="bullet"></a>
				<a class="bullet bulletSelected"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
			</div>
			<div class="caption carouselCaption">
				<p>The Moon in the haze of Earth’s atmosphere; photographed by astronaut Scott Kelly<br/>Image: <a target="_blank" href="https://www.instagram.com/p/7rIJ1pwinV/">@whitehouse</a></p>
			</div>
		</div>

		<input type="radio" name="nav" value="3" id="slide3">
		<label for="slide3"></label>
		<div class="slide" style="background-image:url(http://104.131.105.180/storage/app/media/carousel/carousel_background/earth/3.jpg)">
			<img src="http://104.131.105.180/storage/app/media/carousel/carousel_foreground/earth/3.jpg"/>
			<div class="bulletContainer">
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet bulletSelected"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
			</div>
			<div class="caption carouselCaption">
				<p>Apollo 17 photo "The Blue Marble" is the first image to capture Antarctic ice sheet<br/>Image: <a target="_blank" href="https://www.nasa.gov/sites/default/files/styles/full_width_feature/public/images/135918main_bm1_high.jpg?itok=2I8-uSUB">NASA</a></p>
			</div>
		</div>

		<input type="radio" name="nav" value="4" id="slide4">
		<label for="slide4"></label>
		<div class="slide" style="background-image:url(http://104.131.105.180/storage/app/media/carousel/carousel_background/earth/4.jpg)">
			<img src="http://104.131.105.180/storage/app/media/carousel/carousel_foreground/earth/4.jpg"/>
			<div class="bulletContainer">
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet bulletSelected"></a>
				<a class="bullet"></a>
			</div>
			<div class="caption carouselCaption">
				<p>Soyuz spacecraft over the river Seine and most of France, captured from the ISS<br/>Image: <a target="_blank" href="https://www.esa.int/var/esa/storage/images/esa_multimedia/images/2016/05/reflets_du_soleil_sur_les_meandres_de_la_seine/15969380-1-eng-GB/Reflets_du_Soleil_sur_les_meandres_de_la_Seine_node_full_image_2.jpg">ESA/Tim Peake</a></p>
			</div>
		</div>

		<input type="radio" name="nav" value="5" id="slide5">
		<label for="slide5"></label>
		<div class="slide" style="background-image:url(http://104.131.105.180/storage/app/media/carousel/carousel_background/earth/5.jpg)">
			<img src="http://104.131.105.180/storage/app/media/carousel/carousel_foreground/earth/5.jpg"/>
			<div class="bulletContainer">
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet"></a>
				<a class="bullet bulletSelected"></a>
			</div>
			<div class="caption carouselCaption">
				<p>Buzz Aldrin on the Moon with Neil Armstrong reflected in his visor, July 20, 1969<br/>Image: <a target="_blank" href="https://www.nasa.gov/sites/default/files/images/337294main_pg62_as11-40-5903_full.jpg">NASA</a></p>
			</div>
		</div>
	</section>
            
          
!
            
              /* CSS Reset | https://meyerweb.com/eric/tools/css/reset/ | v2.0 | 20110126 | License: none (public domain) */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,menu,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,menu,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

/* BODY STYLES */
html, body {
	background: #12171b url(http://104.131.105.180/storage/app/media/patterns/subtle-carbon.png) repeat center top;
	max-width: 100%;
	overflow-x: hidden;
}
.caption {
	width: 340px;
	max-width: 100%;
	margin: 24px auto 0;
}
.caption p {
	font: 400 9px "Roboto", sans-serif !important;
	color: #c1c1c1 !important;
	text-align: left;
}
.caption a {
	text-decoration: underline;
	color: #fff;
}

/* IMAGE CAROUSEL */
.carouselCaption {
    max-width: 80%;
}
.carousel {
	position: relative;
	width: 100%;
	height: 504px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	transform: translateZ(0px); /* stops flickering */
}
.bulletContainer {
	display: block;
	margin: 12px auto -6px;
	text-align: center;
	white-space: nowrap;
	z-index: 10;
}
.bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 4px 0 4px;
	border-radius: 50%;
	background: rgba(0,0,0,0);
	border: 1px solid #6e7c7f;
}
.bulletSelected {
	box-shadow: inset 0 0 0 2px #12171b; /* Separates color fill from border */
  background-color: #0072bc;
}
.carousel input {
	display: none !important;
}
.carousel input + label {
	position: absolute;
	display: block;
	z-index: 3;
	top: 210px;
	left: 50%;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #191919;
	margin-left: -343px; /* -(303+40) */
}
.carousel input + label:before {
	position: absolute;
	content: "";
	padding: 8px; /* Arrow size */
	box-shadow: 1px -1px 0 1px #0072bc inset;
	-webkit-box-shadow: 2px -2px #0072bc inset;
	-moz-box-shadow: 2px -2px #0072bc inset;
	border: solid transparent;
	border-width: 0 0 2rem 2rem;
	transform: rotate(45deg);
	margin: -4px 0 0 -24px;
}
.carousel input:checked + label {
	display: none;
}
.carousel input:checked ~ input + label {
	margin-left: 303px;
}
.carousel input:checked ~ input + label:before { /* Right arrow */
	transform: rotate(225deg); /* Rotate arrow to the right */
	margin-left: 15px;
}
.carousel input:checked + label + div + input + label {
	z-index: 4;
} 
.carousel input:checked + label + div {
	z-index: 2;
	-webkit-transition: opacity 1s;
	-moz-transition: opacity 1s;
	-o-transition: opacity 1s;
	transition: opacity 1s;
	opacity: 1;
} 
.slide {
	position: absolute;
	z-index: 1;
	-webkit-transition: opacity 1s;
	-moz-transition: opacity 1s;
	-o-transition: opacity 1s;
	transition: opacity 1s;
	opacity: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: no-repeat center top;
	background-size: cover;
} 
.slide img {
	display: block;
	position: relative;
	margin: 55px auto 18px;
	width: 553px;
	height: 347px;
	-webkit-box-shadow: 0 0 50px 0 rgba(0,0,0,0.8);
	-moz-box-shadow: 0 0 50px 0 rgba(0,0,0,0.8);
	box-shadow: 0 0 50px 0 rgba(0,0,0,0.8);
} 
#slideBuffer {
	display: none;
}
            
          
!
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