Pen Settings

↑ Insert the most common viewport meta tag

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
via CSS Lint

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
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div id="cont-cubo">
  <div class="cubo">
    <div class="cara1"><img alt="" src=""></div>
    <div class="cara2"><img alt="" src=""></div>
    <div class="cara3"><img alt="" src=""></div>
    <div class="cara4"><img alt="" src=""></div>
    <div class="cara5"><img alt="" src=""></div>
    <div class="cara6"><img alt="" src=""></div>
      <p>Question: Chrome has not fixed its bug with 'transform-style: preserve-3d;' ... ?!!!</p>
      <p>Or maybe I'm doing something wrong ... ?!!!</p>      
      <h1>My old 3D cube (double spin)</h1>
      <p>From the past: <a href=''>1 de abril de 2012</a></p>
Las imágenes obra de la artista bonaerense <a href="">Paola Magariños</a>. Puedes verlas en su página <a href="">Autos con Arte</a><br>
Para el cubo y su rotación en trabajos varios: varios autores, varias páginas. Por ejemplo:<br>
<a href="">Paul Hayes</a>.<br>
<a href="">David DeSandro</a>.<br>
<a href="">Stu Nicholls</a></p>


              html { background-image: url(""), linear-gradient(to right, #444444, #164C88);
  font-family: monospace;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.5;
a {color:#FF7361;}
#cont-cubo {
margin:100px auto;
animation:cont-cubo 10s infinite linear; linear;
.cubo {
position: relative;
margin: 0 auto;
height: 200px;
width: 200px;
animation:giro 25s infinite linear;
.cubo div {
position: absolute;
height: 200px;
width: 200px;
-moz-cubo-shadow: 0px 0px 1px rgba(0, 0, 0, 0.5); /* Firefox anti aliasing */
animation:rotate 15s infinite linear;
.cubo div img {
  margin: 0; padding: 0; border: 0 none transparent;
animation:rot 5s infinite linear;
.cubo div.cara1 {
.cubo div.cara2 {
transform:rotateY(90deg) translateZ(100px);
.cubo div.cara3 {
transform:rotateY(180deg) translateZ(100px);
.cubo div.cara4 {
transform:rotateY(-90deg) translateZ(100px);
.cubo div.cara5 {
transform:rotateX(-90deg) translateZ(100px) rotate(180deg);
.cubo div.cara6 {
transform:rotateX(90deg) translateZ(100px);
@keyframes giro {
  0% {transform: rotateX(0deg)   rotateY(0deg);}
  100% {transform: rotateX(1080deg) rotateY(360deg);
@keyframes rot {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}


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