cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              <figure class="nexus7">
  <div class="case">
    <div class="camera"></div>
    <div class="glass">
      <div class="slideshow">
        <ul>
          <li class="slider-1"><img src="http://www.olivergast.de/wp-content/uploads/2015/06/color-791622_1280.jpg" alt="color"/></li>
          <li class="slider-2"><img src="http://www.olivergast.de/wp-content/uploads/2015/06/homes-794423_1280.jpg" alt="homes"/></li>
          <li class="slider-3"><img src="http://www.olivergast.de/wp-content/uploads/2015/06/rmv-793321_1280.jpg" alt="rmv"/></li>
          <li class="slider-4"><img src="http://www.olivergast.de/wp-content/uploads/2015/06/yashica-711794_1280.jpg" alt="yashica"/></li>
          <li class="slider-5"><img src="http://www.olivergast.de/wp-content/uploads/2015/06/rappelling-755399_1280.jpg" alt="rappelling"/></li>
        </ul>
      </div>
    </div>
    <div class="led"></div>
  </div>
</figure>

<figcaption>
  <i class="fa fa-android"></i>
  <p>Google Nexus 7 (2013)</p>
</figcaption>
            
          
!
            
              body {
  font-family: 'Roboto';
  font-weight: 300;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(254,252,234,1) 0%,rgba(241,218,54,1) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

figure {
  position: relative;
}

figcaption {
  position: relative;
  margin-bottom: 80px;
  text-align: center;
}

figcaption i.fa {
  margin-bottom: 20px;
  font-size: 64px;
  color: #8fc33b;
}

.case {
  position: relative;
  width: 700px;
  height: 390px;
  margin: 80px auto;
  background: linear-gradient(to right, rgba(24,24,24,1) 0%,rgba(0,0,0,1) 100%);
  border-radius: 20px;
  border: 2px solid #000;
  box-shadow: 0 0 2px 2px #5a5a5a, 0 0 2px 2px #555, 0 0 2px 2px #6a6a6a, 0 0 2px 2px #666,0 0 2px 2px #7a7a7a, 0 0 2px 2px #777, 0 0 2px 2px #8a8a8a, 0 0 2px 2px #888, 0 0 0 5px rgba(0,0,0,0.6), 0 40px 30px -15px rgba(0,0,0,0.6);
}

.camera {
  position: absolute;
  top: 100px;
  left: 45px;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  box-shadow: inset -1px -1px 5px rgba(72,72,72,0.9);
}

.glass {
  position: absolute;
  left: 11%;
  top: 7%;
  width: 78%;
  height: 86%;
  background: linear-gradient(to bottom, rgba(12,12,12,1) 0%,rgba(85,85,85,1) 100%);
  box-shadow: inset 0 0 3px rgba(0,0,0,0.7);
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
}

.slideshow:hover {
  animation-play-state: paused;
}

.slideshow li {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0);
  z-index: 1;
}

li.slider-1 {
  animation: slider1 30s infinite;  
}

@keyframes slider1 {
	  0% { transform: scale(0); }
	  2% { transform: scale(1); }
	 18% { transform: scale(1); } 
	 20% { transform: scale(0); } 
}

li.slider-2 {
  animation: slider2 30s infinite;  
}

@keyframes slider2 {
   20% { transform: scale(0); }
	 22% { transform: scale(1); }
	 38% { transform: scale(1); } 
	 40% { transform: scale(0); } 
}

li.slider-3 {
  animation: slider3 30s infinite;  
}

@keyframes slider3 {
   40% { transform: scale(0); }
	 42% { transform: scale(1); }
	 58% { transform: scale(1); } 
	 60% { transform: scale(0); } 
}

li.slider-4 {
  animation: slider4 30s infinite;  
}

@keyframes slider4 {
   60% { transform: scale(0); }
	 62% { transform: scale(1); }
	 78% { transform: scale(1); } 
	 80% { transform: scale(0); } 
}

li.slider-5 {
  animation: slider5 30s infinite;  
}

@keyframes slider5 {
   80% { transform: scale(0); }
	 82% { transform: scale(1); }
	 98% { transform: scale(1); } 
	 100% { transform: scale(0); } 
}

.slideshow ul {
  margin: 0;  
}

.led {
  position: absolute;
  bottom: 50%;
  right: 35px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 0 5px rgba(255,255,255,0.9);
}

            
          
!
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