Telefono movil CSS3 3D

5 comentaron

Vamos a ver otro increible ejemplo de diseño con animacion 3D incluida utilizando solamente codigo CSS3. Como podeis observar, se trata de un telefono movil de ultima generacion que no para de girar sobre si mismo en el que, ademas podemos poner una imagen para que aparezca en pantalla de vez en cuando, en este caso he puesto como ejemplo una del logo principal de REDEANDO. Si te ha gustado y quieres insertarlo en tu pagina, copia el codigo que veras abajo. Sustituye la linea de color rojo por la direccion url de la imagen que desees que aparezca en la pantalla del movil.


Y este es el resultado... ¿como te quedas?
ver codigo del telefono
<div style="perspective: 1500px;padding: 0;margin: 0;background-size: cover;">
<div class="telefono movil">
<span class="back"></span>
  <span class="sides">
    <span class="left"></span>
    <span class="right"></span>
    <span class="top"></span>
    <span class="bottom"></span>
  </span>
<span class="corners">
    <span class="bottom-left">
      <span class="c c0"></span>
      <span class="c c1"></span>
      <span class="c c2"></span>
      <span class="c c3"></span>
      <span class="c c4"></span>
      <span class="c c5"></span>
      <span class="c c6"></span>
      <span class="c c7"></span>
      <span class="c c8"></span>
      <span class="c c9"></span>
    </span>
    <span class="bottom-right">                   
      <span class="c c0"></span>
      <span class="c c1"></span>
      <span class="c c2"></span>
      <span class="c c3"></span>
      <span class="c c4"></span>
      <span class="c c5"></span>
      <span class="c c6"></span>
      <span class="c c7"></span>
      <span class="c c8"></span>
      <span class="c c9"></span>
    </span>
    <span class="top-left">                   
      <span class="c c0"></span>
      <span class="c c1"></span>
      <span class="c c2"></span>
      <span class="c c3"></span>
      <span class="c c4"></span>
      <span class="c c5"></span>
      <span class="c c6"></span>
      <span class="c c7"></span>
      <span class="c c8"></span>
      <span class="c c9"></span>
    </span>
    <span class="top-right">                   
      <span class="c c0"></span>
      <span class="c c1"></span>
      <span class="c c2"></span>
      <span class="c c3"></span>
      <span class="c c4"></span>
      <span class="c c5"></span>
      <span class="c c6"></span>
      <span class="c c7"></span>
      <span class="c c8"></span>
      <span class="c c9"></span>
    </span>
  </span>

 <span class="screen"></span>
  <span class="screen2">
  </span>
  <span class="front"></span>

</div></div>
<style>
.telefono {
  position: relative;
  margin: 50px auto;
  transform-origin: center;
  transform-style: preserve-3d;
  animation: 26s rotate ease infinite;
}
.telefono .front {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-position: center center;
  background-repeat: no-repeat;
  transform: rotateX(0deg) translateZ(10px);
}
.telefono .screen {
  width: 290px;
  height: 520px;
  position: absolute;
  top: 55px;
  left: 14px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #222;
  transform: rotateX(0deg) translateZ(9px);
}
.telefono .screen2 {
  width: 290px;
  height: 520px;
  position: absolute;
  top: 55px;
  left: 14px;
  overflow: hidden;
  background-repeat: no-repeat;
  transform: rotateX(0deg) translateZ(9px);
  opacity: 0;
  animation: 26s screen ease infinite;
  background-color: #000000;
  border-radius: 4px;
 
  background-position: center center;
  background-image: url(http://urldetuimagen);
}
.telefono .back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #eee;
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.1);
  transform: rotateY(180deg) translateZ(10px);
}
.telefono .front,
.telefono .back {
  border-radius: 35px;
}
.telefono .sides span {
  position: absolute;
  background: #dddddd;
}
.telefono .sides .left {
  transform: rotateY(90deg) translateZ(-10px) translateY(43px);
  left: 0;
}
.telefono .sides .right {
  transform: rotateY(-90deg) translateZ(-10px) translateY(43px);
  right: 0;
}
.telefono .sides .top {
  transform: rotateX(-90deg) rotateZ(-90deg) translateZ(-127px) translateX(0px) translateY(149px);
  left: 0;
  top: 0;
}
.telefono .sides .bottom {
  transform: rotateX(-90deg) rotateZ(-90deg) translateZ(128px) translateX(0px) translateY(149px);
  left: 0;
  bottom: 0;
}
.telefono .corners {
  width: 100%;
  height: 100%;
  position: absolute;
}
.telefono .corners .bottom-left {
  position: absolute;
  left: 1px;
  bottom: 1px;
  transform-style: preserve-3d;
  transform: rotateY(-90deg) translateX(-10px);
}
.telefono .corners .bottom-right {
  position: absolute;
  right: 1px;
  bottom: 1px;
  transform-style: preserve-3d;
  transform: rotateY(90deg) translateX(-10px);
}
.telefono .corners .top-right {
  position: absolute;
  right: 1px;
  top: 1px;
  transform-style: preserve-3d;
  transform: rotateY(90deg) rotateX(90deg) translateX(-10px);
}
.telefono .corners .top-left {
  position: absolute;
  left: 1px;
  top: 1px;
  transform-style: preserve-3d;
  transform: rotateY(-90deg) rotateX(90deg) translateX(-10px);
}
.telefono .corners .c {
  position: absolute;
  width: 20px;
  height: 6px;
  background-color: #dddddd;
}
.telefono .corners .c0 {
  transform: translateY(-42px) translateZ(0px) rotateX(-3deg);
  height: 16px;
}
.telefono .corners .c1 {
  transform: translateY(-30px) translateZ(-1px) rotateX(-8deg);
}
.telefono .corners .c2 {
  transform: translateY(-25px) translateZ(-2px) rotateX(-14deg);
}
.telefono .corners .c3 {
  transform: translateY(-20px) translateZ(-4px) rotateX(-22deg);
}
.telefono .corners .c4 {
  transform: translateY(-15px) translateZ(-7px) rotateX(-36deg);
}
.telefono .corners .c5 {
  transform: translateY(-12px) translateZ(-10px) rotateX(-50deg);
}
.telefono .corners .c6 {
  transform: translateY(-9px) translateZ(-14px) rotateX(-56deg);
}
.telefono .corners .c7 {
  transform: translateY(-6px) translateZ(-19px) rotateX(-67deg);
}
.telefono .corners .c8 {
  transform: translateY(-4px) translateZ(-24px) rotateX(-74deg);
}
.telefono .corners .c9 {
  transform: translateY(-3px) translateZ(-29px) rotateX(-90deg);
}
.telefono .corners .top-left .c0,
.telefono .corners .top-right .c0 {
  transform: translateY(-7px) translateZ(-34px) rotateX(-88deg);
}
.telefono.movil {
  width: 319px;
  height: 658px;
}
.telefono.movil .front {
 border-radius: 35px;
}
.telefono.movil .sides span {
  width: 20px;
  height: 573px;
}
.telefono.movil .sides .top,
.telefono.movil .sides .bottom {
  height: 255px;
}
@keyframes rotate {
  0% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  10% {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  15% {
    transform: rotateX(320deg) rotateY(0deg) rotateZ(10deg);
  }
  20% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg);
  }
  25% {
    transform: rotateX(320deg) rotateY(320deg) rotateZ(-10deg);
  }
  30% {
    transform: rotateX(360deg) rotateY(0deg) rotateZ(0deg);
  }
  40% {
    transform: rotateX(390deg) rotateY(370deg) rotateZ(-92deg);
  }
  45% {
    transform: rotateX(390deg) rotateY(370deg) rotateZ(-92deg);
  }
  55% {
    transform: rotateX(390deg) rotateY(350deg) rotateZ(-92deg);
  }
  60% {
    transform: rotateX(390deg) rotateY(350deg) rotateZ(-92deg);
  }
  70% {
    transform: rotateX(-20deg) rotateY(-26deg);
  }
  75% {
    transform: rotateX(-20deg) rotateY(-26deg);
  }
  85% {
    transform: rotateX(20deg) rotateY(26deg);
  }
  95% {
    transform: rotateX(20deg) rotateY(26deg);
  }
}
@keyframes screen {
  0% {
    opacity: 0;
  }
  32% {
    opacity: 0;
  }
  35% {
    opacity: 1;
    transform: rotateX(0deg) translateZ(11px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  }
  99% {
    opacity: 1;
    transform: rotateX(0deg) translateZ(11px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
  }
}
.telefono.movil .front {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT8AAAKSCAYAAACkzNwGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowM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