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.

+ 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.

            
              <!--
IMAGES WERE MADE VERY QUICKLY IN PIXLR 
HEX COLORS OF THE IMAGES
SLIDE 1 - #B63ACE
SLIDE 2 - #347FD0
SLIDE 3 - #D23435
SLIDE 4 - #37CF6A
SLIDE 5 - #B5CF38
-->
<div class="accordion">
	<ul>
		<li>
			<div class="caption"><a href="#">Slide 1</a></div>
			<a href="#">
        <img src='http://api.ning.com:80/files/8KGb8vxx0Yk*1T9tQYMxaO5G9iIzD-k1esqVW9mRv0iM8qYWBIaED3CRUI7E89DOkVZtkcl-EJH20XDmEtTlOE7UXH9PM3PC/s1.png'/></a>
		</li>
    
    <li>
			<div class="caption"><a href="#">Slide 2</a></div>
			<a href="#">
        <img src='http://api.ning.com:80/files/8KGb8vxx0Ym3WiGPZCuuRz*Jas-rTjXTXmsB*QJlAoV3AAMqNBK9wvvGwwN*X6EDzYTRzfG4JTalYcpkyOcOqNMefkMZ8dBZ/s2.png'/></a>
		</li>
    
    <li>
			<div class="caption"><a href="#">Slide 3</a></div>
			<a href="#">
        <img src='http://api.ning.com:80/files/8KGb8vxx0YmSU*fmY44xWKN90EmhGrHupuSYt*CA5MebnzyrN4*PpKgoKRo4Qm11NZS17goWKqbxINRHesX6vyltiyY*AWkg/s3.png'/></a>
		</li>
    
    <li>
			<div class="caption"><a href="#">Slide 4</a></div>
			<a href="#">
        <img src='http://api.ning.com:80/files/8KGb8vxx0Ykc7ZHqdHnesdlFTm7mOej9*aCEj*fKPnAaIRj4fODZ*nSDIDlalxoI9zoMHExGqdVl4F7stmcU6h8AwmGaSqNZ/s4.png'/></a>
		</li>
    
    <li>
			<div class="caption"><a href="#">Slide 5</a></div>
			<a href="#">
        <img src='http://api.ning.com:80/files/8KGb8vxx0YnPGDFFhJ*O4kPgjeaMTOIPvDJtldQgTtMTDABphhoAL57sAix7fNvaeunzdcWzznNJ675b1-aOSXssrEqU8p-c/s5.png'/></a>
		</li>
    
    <li>
			<div class="caption"><a href="#">Slide 6</a></div>
			<a href="#">
        <img src='http://api.ning.com:80/files/8KGb8vxx0YndheFqfSuIaYeMZ8j6GRXYDlAgmTz*e2q5yNQ0n9bWfebQH274VIeb7Tt*7uiGlFYssxnEIa1LDvEjHmdTALKo/s6.png'/></a>
		</li>
	</ul>
</div>

            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Lato);

body { background: #333 }

.accordion {
	width: 895px; height: 320px;
	overflow: hidden;
  box-shadow: 0 10px 6px -6px #111;
  margin: 20px auto
}
.accordion ul { width: 200% }

.accordion li {
	position: relative;
	display: block;
	width: 160px;
	float: left;
  box-shadow: 0 0 30px 8px #222;
	transition: all 0.4s ease .300ms;
}

.accordion ul:hover li {width: 40px }
.accordion ul li:hover {width: 640px }

.caption {
	background: rgba(0, 0, 0, 0.5);
	position: absolute;
  bottom: 0;	
	width: 640px
}

.caption a {
	display: block;
	color: #fff;
	text-decoration: none;
  font: normal 16px 'Lato', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
	padding: 15px;
}
            
          
!
            
              //PURE CSS ACCORDION SLIDER

/* BROWSER COMPATILITY
--INTERNET EXPLORER 9+ (Loses Transitions + Looks Awful in IE8)
--GOOGLE CHROME
--MOZILLA FIREFOX
--OPERA [NOT TESTED - SHOULD WORK]
--SAFARI
*/
alsolike(
  "QgaxQP", "Rotate 3D cube",
  "zsonr", "USF Student Incubator",
  "qFysE", "Import Tumblr Posts"
);
            
          
!
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.
Loading ..................

Console