.conteneur_cube {
    perspective: 1200px;
    perspective-origin: 50% 100px 50px;
    padding: 100px 0;
}
.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
}
.cube div {
    position: absolute;
    width: 200px;
    height: 200px;
    text-align: center;
    font-size: xx-large;
    background: rgba(0,0,255,0.1);
}
.cube .face_1 {
    transform-origin: 0px 0px 0px;
    transform: translateZ(200px);
}
.cube .face_2 {
    transform-origin: 0px 200px 0px;
    transform: rotateX(-90deg);
}
.cube .face_3 {
    transform-origin: 100px 100px 0px;
    transform: rotateX(180deg);
}
.cube .face_4 {
    transform-origin: 0px 0px 0px;
    transform: rotateX(90deg);
}
.cube .face_5 {
    transform-origin: 0px 0px 0px;
    transform: rotateY(-90deg);
}
.cube .face_6 {
    transform-origin: 200px 0px 0px;
    transform: rotateY(90deg);
}	  
@keyframes spin-cube {
    from { transform: rotateY(0); }
    to { transform: rotateY(-360deg); }
}
.conteneur_cube.vertical .cube {
    margin: 0 auto; /* keeps the polyedre centered */
    
    transform-origin: 100px 100px 100px;
    animation: spin-cube 5s infinite linear;
}
