css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

              <div id="cont-cubo">
  <div class="cubo">
    <div class="cara1"><img alt="" src="https://1.bp.blogspot.com/-dg3Ujg94M8o/T3iUgzKPFbI/AAAAAAAAANU/hvouizMCJJs/s400/pao-1.JPG"></div>
    <div class="cara2"><img alt="" src="https://2.bp.blogspot.com/-sL72q4Xn5d8/T3iUg2OsW7I/AAAAAAAAANg/-rGcwUVjFUk/s400/pao-2.JPG"></div>
    <div class="cara3"><img alt="" src="https://1.bp.blogspot.com/-KFL4oD-xAj8/T3iUhdtZWkI/AAAAAAAAANs/Ue9FOYRSiNY/s400/pao-3.JPG"></div>
    <div class="cara4"><img alt="" src="https://2.bp.blogspot.com/-XaagfN3nLvE/T3iUhrKFEPI/AAAAAAAAAN4/Ei4WzzEG8wE/s400/pao-4.JPG"></div>
    <div class="cara5"><img alt="" src="https://2.bp.blogspot.com/-W7F3_kYqL8Y/T3iUh3q0iZI/AAAAAAAAAOA/JeKbVGzcVSw/s400/pao-5.JPG"></div>
    <div class="cara6"><img alt="" src="https://4.bp.blogspot.com/-Hozl7gLEww0/T3iVWidXIqI/AAAAAAAAAOQ/peUYSvPP9fU/s400/pao-6.JPG"></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='https://ksesocss.blogspot.com/2012/04/css3-transform-3d-guia-de-inicio-y-uso.html'>1 de abril de 2012</a></p>
Las imágenes obra de la artista bonaerense <a href="https://www.twitter.com/Pao_paint">Paola Magariños</a>. Puedes verlas en su página <a href="http://www.autosconarte.com">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="http://www.paulrhayes.com/2010-09/3d-css-cube-ii-touch-gestures-click-and-drag/">Paul Hayes</a>.<br>
<a href="https://desandro.github.com/3dtransforms/docs/cube.html">David DeSandro</a>.<br>
<a href="https://www.cssplay.co.uk/menu/css3-cubes.html">Stu Nicholls</a></p>
              html { background-image: url("https://2.bp.blogspot.com/-iCCUn-fktvk/UYVomjPC84I/AAAAAAAAAAc/czlS_SMG-rs/s1600/noise.png"), 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);}
🕑 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 ..................