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.

            
              
<h1>Muestra imagen con transición "puzzle". Puro CSS. (IE11, FF, Op, Chr)</h1>

<div id=marco>

<img src="https://lh3.googleusercontent.com/-pjYeZV5LznA/Vh7O7o5yxyI/AAAAAAAAF5I/w1VZgFyz9vo/s800-Ic42/RudolfPfenninger.jpg" id=imagen 
alt="Rudolf Pfenninger. 'Tonende handschrift'.">

<div class=pzlH id=pzl00></div><div class=pzlV id=pzl01></div>
<div class=pzlH id=pzl02></div><div class=pzlV id=pzl03></div>
<div class=pzlH id=pzl04></div><div class=pzlV id=pzl05></div>
<div class=pzlH id=pzl06></div><div class=pzlV id=pzl07></div>
<div class=pzlH id=pzl08></div>

<div class=pzlV id=pzl09></div><div class=pzlH id=pzl10></div>
<div class=pzlV id=pzl11></div><div class=pzlH id=pzl12></div>
<div class=pzlV id=pzl13></div><div class=pzlH id=pzl14></div>
<div class=pzlV id=pzl15></div><div class=pzlH id=pzl16></div>
<div class=pzlV id=pzl17></div>

<div class=pzlH id=pzl18></div><div class=pzlV id=pzl19></div>
<div class=pzlH id=pzl20></div><div class=pzlV id=pzl21></div>
<div class=pzlH id=pzl22></div><div class=pzlV id=pzl23></div>
<div class=pzlH id=pzl24></div><div class=pzlV id=pzl25></div>
<div class=pzlH id=pzl26></div>

<div class=pzlV id=pzl27></div><div class=pzlH id=pzl28></div>
<div class=pzlV id=pzl29></div><div class=pzlH id=pzl30></div>
<div class=pzlV id=pzl31></div><div class=pzlH id=pzl32></div>
<div class=pzlV id=pzl33></div><div class=pzlH id=pzl34></div>
<div class=pzlV id=pzl35></div>

<div class=pzlH id=pzl36></div><div class=pzlV id=pzl37></div>
<div class=pzlH id=pzl38></div><div class=pzlV id=pzl39></div>
<div class=pzlH id=pzl40></div><div class=pzlV id=pzl41></div>
<div class=pzlH id=pzl42></div><div class=pzlV id=pzl43></div>
<div class=pzlH id=pzl44></div>

<div class=pzlV id=pzl45></div><div class=pzlH id=pzl46></div>
<div class=pzlV id=pzl47></div><div class=pzlH id=pzl48></div>
<div class=pzlV id=pzl49></div><div class=pzlH id=pzl50></div>
<div class=pzlV id=pzl51></div><div class=pzlH id=pzl52></div>
<div class=pzlV id=pzl53></div>

<div class=pzlH id=pzl54></div><div class=pzlV id=pzl55></div>
<div class=pzlH id=pzl56></div><div class=pzlV id=pzl57></div>
<div class=pzlH id=pzl58></div><div class=pzlV id=pzl59></div>
<div class=pzlH id=pzl60></div><div class=pzlV id=pzl61></div>
<div class=pzlH id=pzl62></div>

</div>

<p><a href="https://picasaweb.google.com/lh/photo/LOWcbLTUR1AI00H7jvnKTNMTjNZETYmyPJy0liipFm0?feat=directlink" target="_blank">Imagen</a> del corto 
<em>"Tonende handschrift"</em> ("Escritura sonora") de 
<u>Rudolf Pfenninger</u>, 1930 . <br>
  Versión previa : <a href="https://codepen.io/solipsistacp/pen/jBlEp">Animación CSS de z-index</a> .</p> 
            
          
!
            
              body {
background: green; 
color: darkred; 
font-weight: bold; 
}

#marco {
width: 640px; height: 480px; 
margin: auto; 
overflow: hidden; 
position: relative; 
background-color: gray; 
border: 10px ridge maroon; 
}

.pzlH {
width: 80px; height: 80px; 
padding: 0; 
position: absolute; 
background-image: radial-gradient(circle closest-corner at center top, transparent 15px, green 15px, green 100%), 
radial-gradient(circle closest-corner at center bottom, transparent 15px, green 15px, green 100%); 
background-position: top left, bottom left; 
background-size: 100% 51%; 
background-repeat: no-repeat; 
}
.pzlH::before { 
content: ""; 
width: 32px; height: 32px; 
position: absolute; 
display: block; 
background-color: green; 
border-radius: 50%; 
top: 24px; left: -16px; 
}
.pzlH::after { 
content: ""; 
width: 32px; height: 32px; 
position: absolute; 
display: block; 
background-color: green; 
border-radius: 50%; 
top: 24px; left: 64px; 
}

.pzlV {
width: 80px; height: 80px; 
padding: 0; 
position: absolute; 
background-image: radial-gradient(circle closest-corner at center left, transparent 15px, green 15px, green 100%), 
radial-gradient(circle closest-corner at center right, transparent 15px, green 15px, green 100%); 
background-position: top left, top right; 
background-size: 51% 100%; 
background-repeat: no-repeat; 
}
.pzlV::before { 
content: ""; 
width: 32px; height: 32px; 
position: absolute; 
display: block; 
background-color: green; 
border-radius: 50%; 
top: -16px; left: 24px; 
}
.pzlV::after { 
content: ""; 
width: 32px; height: 32px; 
position: absolute; 
display: block; 
background-color: green; 
border-radius: 50%; 
top: 64px; left: 24px; 
}

#imagen {
width: 640px; height: 480px; 
display: block; 
position: absolute; 
top: 0; left: 0; 
z-index: 64; 
-webkit-animation: cubre 17s steps(64, end) normal 1; 
animation: cubre 17s steps(64, end) normal 1; 
}

@keyframes cubre {
  0% {z-index: 0; }
  15% {z-index: 0; }
  100% {z-index: 64; }
}
@-webkit-keyframes cubre {
  0% {z-index: 0; }
  15% {z-index: 0; }
  100% {z-index: 64; }
}

#pzl00 {top: -40px; left: -40px; z-index: 2; }
#pzl01 {top: -40px; left: 40px; z-index: 19; }
#pzl02 {top: -40px; left: 120px; z-index: 47; }
#pzl03 {top: -40px; left: 200px; z-index: 7; }
#pzl04 {top: -40px; left: 280px; z-index: 45; }
#pzl05 {top: -40px; left: 360px; z-index: 37; }
#pzl06 {top: -40px; left: 440px; z-index: 48; }
#pzl07 {top: -40px; left: 520px; z-index: 6; }
#pzl08 {top: -40px; left: 600px; z-index: 42; }

#pzl09 {top: 40px; left: -40px; z-index: 43; }
#pzl10 {top: 40px; left: 40px; z-index: 26; }
#pzl11 {top: 40px; left: 120px; z-index: 35; }
#pzl12 {top: 40px; left: 200px; z-index: 57; }
#pzl13 {top: 40px; left: 280px; z-index: 14; }
#pzl14 {top: 40px; left: 360px; z-index: 51; }
#pzl15 {top: 40px; left: 440px; z-index: 13; }
#pzl16 {top: 40px; left: 520px; z-index: 58; }
#pzl17 {top: 40px; left: 600px; z-index: 25; }

#pzl18 {top: 120px; left: -40px; z-index: 21; }
#pzl19 {top: 120px; left: 40px; z-index: 59; }
#pzl20 {top: 120px; left: 120px; z-index: 5; }
#pzl21 {top: 120px; left: 200px; z-index: 27; }
#pzl22 {top: 120px; left: 280px; z-index: 41; }
#pzl23 {top: 120px; left: 360px; z-index: 18; }
#pzl24 {top: 120px; left: 440px; z-index: 55; }
#pzl25 {top: 120px; left: 520px; z-index: 38; }
#pzl26 {top: 120px; left: 600px; z-index: 10; }

#pzl27 {top: 200px; left: -40px; z-index: 12; }
#pzl28 {top: 200px; left: 40px; z-index: 30; }
#pzl29 {top: 200px; left: 120px; z-index: 23; }
#pzl30 {top: 200px; left: 200px; z-index: 39; }
#pzl31 {top: 200px; left: 280px; z-index: 1; }
#pzl32 {top: 200px; left: 360px; z-index: 60; }
#pzl33 {top: 200px; left: 440px; z-index: 17; }
#pzl34 {top: 200px; left: 520px; z-index: 32; }
#pzl35 {top: 200px; left: 600px; z-index: 53; }

#pzl36 {top: 280px; left: -40px; z-index: 34; }
#pzl37 {top: 280px; left: 40px; z-index: 54; }
#pzl38 {top: 280px; left: 120px; z-index: 16; }
#pzl39 {top: 280px; left: 200px; z-index: 62; }
#pzl40 {top: 280px; left: 280px; z-index: 28; }
#pzl41 {top: 280px; left: 360px; z-index: 8; }
#pzl42 {top: 280px; left: 440px; z-index: 33; }
#pzl43 {top: 280px; left: 520px; z-index: 63; }
#pzl44 {top: 280px; left: 600px; z-index: 3; }

#pzl45 {top: 360px; left: -40px; z-index: 49; }
#pzl46 {top: 360px; left: 40px; z-index: 4; }
#pzl47 {top: 360px; left: 120px; z-index: 52; }
#pzl48 {top: 360px; left: 200px; z-index: 9; }
#pzl49 {top: 360px; left: 280px; z-index: 44; }
#pzl50 {top: 360px; left: 360px; z-index: 61; }
#pzl51 {top: 360px; left: 440px; z-index: 29; }
#pzl52 {top: 360px; left: 520px; z-index: 22; }
#pzl53 {top: 360px; left: 600px; z-index: 46; }

#pzl54 {top: 440px; left: -40px; z-index: 24; }
#pzl55 {top: 440px; left: 40px; z-index: 36; }
#pzl56 {top: 440px; left: 120px; z-index: 31; }
#pzl57 {top: 440px; left: 200px; z-index: 56; }
#pzl58 {top: 440px; left: 280px; z-index: 20; }
#pzl59 {top: 440px; left: 360px; z-index: 40; }
#pzl60 {top: 440px; left: 440px; z-index: 15; }
#pzl61 {top: 440px; left: 520px; z-index: 50; }
#pzl62 {top: 440px; left: 600px; z-index: 11; }

            
          
!
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