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


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="contenedor"> 
			<div class="cubo">
				<div class="cara">
					<img src="" title="Soto y Caldevilla de Valdeón" alt="Soto y Caldevilla de Valdeón" height: "290px" width="290px" >
				<div class="cara">
					<img src="" title="Un poco de nieve en agosto" alt="Un poco de nieve en agosto" width="290px" height: "290px">
				<div class="cara">
					<img src="" title="Un rebeco" alt="Un rebeco" width="290px" height: "290px">
				<div class="cara">
					<img src="" title="Posada de Valdeón" alt="Posada de Valdeón" width="290px" height: "290px">
				<div class="cara">
					<img src="" title="Refugio de Pantivalles" alt="Refugio de Pantivalles" width="290px" height: "290px">
				<div class="cara">
					<img src="" title="Unas montañas" alt="Unas montañas" width="290px" height: "290px">


  background: #303030;
.contenedor {
  -webkit-perspective: 500px;
  perspective: 500px;
  perspective-origin: 50% 50%;

.cubo, .cubo .cara{
  height: 290px;
  width: 290px;

.cubo {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -webkit-transform: rotateX(-30deg) rotateY(30deg);
  transform: rotateX(-30deg) rotateY(-30deg);

  margin: 150px auto;

  -webkit-animation: giro 20s infinite linear;
  animation: giro 20s infinite linear;

.cubo .cara {
  position: absolute;
  border: 5px solid #000;
  opacity: 0.95;

/*Cara frontal*/
.cubo .cara:nth-child(1) {
  -webkit-transform: translateZ(150px);
  transform: translateZ(150px);
/*Cara posterior*/
.cubo .cara:nth-child(2) {
  -webkit-transform: rotateY(180deg) translateZ(150px);
  transform: rotateY(180deg) translateZ(150px);
/*Cara izquierda*/
.cubo .cara:nth-child(3) {
  -webkit-transform: rotateY(-90deg) translateZ(150px);
  transform: rotateY(-90deg) translateZ(150px);
/*Cara derecha*/
.cubo .cara:nth-child(4) {
  -webkit-transform: rotateY(90deg) translateZ(150px);
  transform: rotateY(90deg) translateZ(150px);
/*Cara superior*/
.cubo .cara:nth-child(5) {
  -webkit-transform: rotateX(90deg) translateZ(150px);
  transform: rotateX(90deg) translateZ(150px);
/*Cara inferior*/
.cubo .cara:nth-child(6) {
  -webkit-transform: rotateX(-90deg) translateZ(150px);
  transform: rotateX(-90deg) translateZ(150px);

@-webkit-keyframes giro {
    0% { -webkit-transform: rotateX(-45deg) rotateY(0deg); }
    50% { -webkit-transform: rotateX(45deg) rotateY(360deg); }
    100% { -webkit-transform: rotateX(-45deg) rotateY(720deg); }

@keyframes giro {
    0% { transform: rotateX(-45deg) rotateY(0deg); }
    50% { transform: rotateX(45deg) rotateY(360deg); }
    100% { transform: rotateX(-45deg) rotateY(720deg); }

@-webkit-keyframes giro360 {
    0% { -webkit-transform: rotateX(  0deg) rotateY(  0deg); }
  100% { -webkit-transform: rotateX(360deg) rotateY(360deg); }

@keyframes giro360 {
    0% { transform: rotateX(  0deg) rotateY(  0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }