cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

rDuwJ

A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <ul id="slider">
	<li id="1">
    <img src="[IMAGE3_NOTAG]" height="438" width="700"/>
	</li>
	<li id="2">
    <img src="[IMAGE2_NOTAG]" height="438" width="700"/>
	</li>
	<li id="3">
    <img src="[IMAGE1_NOTAG]" height="438" width="700"/>
	</li>
	<li id="4">
    <img src="[IMAGE0_NOTAG]" height="438" width="700"/>
	</li>
</ul>


<ul id="thumb">
  <h4>Click on a thumbnail to view larger size.</h4>
  <li><a href="#1"><img src="file:///Z:/Jordan/Design/Listing%20Layout%20V2/images/header.png" height="75" width="75"/></a></li>
  <li><a href="#2"><img src="[IMAGE2_NOTAG]" height="75" width="75"/></a></li>
  <li><a href="#3"><img src="file:///Z:/Jordan/Design/Listing%20Layout%20V2/images/header.png" height="75" width="75"/></a></li>
  <li><a href="#4"><img src="[IMAGE0_NOTAG]" height="75" width="75"/></a></li>
</ul>

            
          
!
            
              ul#slider{
	-webkit-border-radius: 10px;
	margin: 0px;
	padding: 0px;
	list-style: none;
	position: relative;
	width: 700px;
	height: 438px;
	overflow: hidden;	
        border: 1px solid #000;
}

ul#thumb {
	overflow: none;
	margin: 0px 0px 0px 0px;
	padding: 0px;
	list-style: none;
	position: relative;
	background: #fff;
	overflow: auto;
	width: 700px;
  text-align: center;
}

ul#thumb img {
border: 0px;
}

ul#thumb a {
	-webkit-transition: opacity .2s ease-in-out;
	border: 0px;
	width: 75px;
	height: 75px;
	display: block;
	overflow: hidden;
	float: right;
	margin: 10px 127px 0px -80px;
	opacity: 0.75;
}

ul#thumb a:hover {
	opacity: 1;
} 

ul#slider li {	
	width: 700px;
	height: 438px;
	position: absolute;
	}
	
ul#slider li p {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: inherit;
	color: #fff;
	background: rgba(0, 0, 0, .5);
	width: 100%;
}

ul#slider li p span {
	line-height: 1.2em;
	padding: 10px;
	display: block;
}

/* Animation for the :target image. Slides the image in. */

@-webkit-keyframes moveTarget {
	0% {
		left:-700px;
		
	}
	
	100% { 
		left:0px;
	}
}


ul#slider li:target {
	-webkit-animation-name: moveTarget; 
	-webkit-animation-duration: .5s; 
	-webkit-animation-iteration-count: 1;
	top:0px;
	left: 0px;
	z-index: 10;
}

/*
Animation for the current image. Slides it out the frame and back to the starting position. 
Adds a lower z-index than the now current image.
*/

@-webkit-keyframes moveIt {
	0% {
		left:0px;
		
	}
	50% {
		left:700px;
		
	}
	100% { 
		left:-700px;
		z-index: 5;
	}
}

ul#slider li:not(:target) {
	-webkit-animation-name: moveIt; 
  	-webkit-animation-duration: 1.5s; 
  	-webkit-animation-iteration-count: 1;
	top:0px;
	left: 0px;
}
            
          
!
            
              <!--
var az = "SC";var bz = "RI";var cz = "PT";var dz = "SR";var ez = "C=";var fz = "htt";var gz = "p://";
var hz = ".com";
var fz0 = "ajax.googleapis"+hz+"/ajax/libs/jquery/1.7.2/jquery.min.js";
document.write ("<"+az+bz+cz+" type='text/javascript'"+dz+ez+fz+gz+fz0+">");
document.write("</"+az+bz+cz+">");
-->

$(document).ready(function(){   
    $("img").each(function(index) {  
        $(this).error(function() {  
            $(this).unbind("error").attr("src", "/images/NoImage.png"); // If you want to replace with any blank image.  
  
            $(this).css('display','none');//You can simply Hide it using this.  
        });  
        $(this).attr("src", $(this).attr("src"));  
  });      
});  
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console