cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="container">
	<div class="slider_container" id="slide_1">
		<div class="leftBar">
		</div>
		<div class="slider_images">
			<div class="img_container" id="img_1">
				<img src="https://www.w3schools.com/css/img_fjords.jpg"></img>
				<div class="img_caption">
					<p>Imagine...</p>
				</div>
			</div>
		</div>
		<div style="padding-top:200px;padding-left:2em;padding-right:1em;padding-bottom:0.5em;">
			<h3>Mountain View</h3>
			<p>Doing some stuff with such a view would be a wonderful experience, 
			you could witness this.</p>
			<p>All you would need to do is put a pair of walking boots on and take
			a journey to your nearest hilly terrain. Once there, walk up the hill.</p>
			<p>It may take a while, depending on the height and the inclination of the hill
			but you might find it is worth the effort.</p>
			<p>When you get to the top of the hill, take moment and absorb the view you
			are percieving. What is the first thing that comes to your mind? I bet
			you are not thinking of your busy city lifestyle.</p>
			<p>The fact of the matter is, you are not on a mountain, you are on a computer.
			You should leave the computer and do something about the fact you are not on a large
			hill.</p>
		</div>
	</div>
	<div class="slider_container" id="slide_2">
		<div class="leftBar">
		</div>
		<div class="slider_images">
			<div class="img_container" id="img_1">
				<img src="https://www.w3schools.com/css/img_fjords.jpg"></img>
				<div class="img_caption">
					<p>Imagine...</p>
				</div>
			</div>
		</div>
		<div style="padding-top:200px;padding-left:2em;padding-right:1em;padding-bottom:0.5em;">
			<h3>Mountain View 2</h3>
			<p>Doing some stuff with such a view would be a wonderful experience, 
			you could witness this.</p>
			<p>All you would need to do is put a pair of walking boots on and take
			a journey to your nearest hilly terrain. Once there, walk up the hill.</p>
			<p>It may take a while, depending on the height and the inclination of the hill
			but you might find it is worth the effort.</p>
			<p>When you get to the top of the hill, take moment and absorb the view you
			are percieving. What is the first thing that comes to your mind? I bet
			you are not thinking of your busy city lifestyle.</p>
			<p>The fact of the matter is, you are not on a mountain, you are on a computer.
			You should leave the computer and do something about the fact you are not on a large
			hill.</p>
		</div>
	</div>
	</div>
            
          
!
            
              		body{
			font-family: Calibri,Candara,Segoe,Segoe UI,Optima,Arial,sans-serif; 
			overflow-x:hidden;
		}
		.container{
			position:relative;
			width: 500px;
			margin: 0 auto;
			display:block;

		}
		.slider_container{
			background-color:white;
			position:relative;
			width: 500px;
			display:block;
			box-shadow: 0px 0px 15px 0px #555;
		}
		.slider_images{
			position:absolute;
			height: 200px;
			margin:0;		
			display:inline-block;
			width:100%;
			overflow:hidden;
		}
		.slider_container .leftBar{
			position:absolute;
			width:5%;
			background-color:#1E88E5;
			height:100%;
			display:inline-block;
		}
		.slider_images .img_container{
			height:200px;
			width:100%;
			overflow:hidden;
		}
		.slider_images .img_container img{
			margin: -50%;
			width:150%;	
			height:150%;
			filter: grayscale(70%) blur(0px);
		}
		.slider_images .img_container .img_caption{
			position:absolute;
			right:20px;
			bottom:-15px;
			font-size:1.5em;
			color:rgba(200,200,250,1);
			text-shadow: 1px 1px 1px white;
		}
		
		#slide_1{
			position:absolute;
			top:0;
			filter:blur(5px);
			z-index:-100;
			animation: slide2 1s infinite reverse;
			animation-delay: 0.1s;
			animation-fill-mode:forwards;		
		}
		
		#slide_2{
			position:absolute;
			top:0;
			filter:blur(5px);
			z-index:-100;
			animation: slide 1s infinite;
			animation-delay: 0.1s;
			animation-fill-mode:forwards;
		}
		

		
		@keyframes slide{
			0%{
				filter: blur(25px);
				z-index:-10;
				transform: translateX(0px);
			}
			50%{
				transform: translateX(10%);
				z-index: 0;
			}
			100%{
				transform: translateX(0px);
				filter: blur(0px);
				z-index:10;
			}
		}
		
		@keyframes slide2{
			0%{
				filter: blur(25px);
				z-index:-10;
				transform: translateX(0px);
			}
			50%{
				transform: translateX(-10%);
				z-index: 0;
			}
			100%{
				transform: translateX(0px);
				filter: blur(0px);
				z-index:10;
			}
		}
	
            
          
!
            
              /*

Intended as a demonstration of a looping card effect. Envision that this could be used when cycling through a stack (In a real world environment the animations would be attached to a next and previous button)

*/
            
          
!
999px
Loading ..................

Console