# Cara de cubo (B 117)

Categoría: Botones  
Etiquetas: text-swap, flip, 3d, rounded, two-labels  
Página: https://designforai.dev/es/snippet/btn-117

## Prompt

Un botón azul #2563eb (radio de 10px, 150px por 44px) cuya etiqueta "Download" gira alejándose sobre el eje X como la cara de un cubo al pasar el cursor, mientras una segunda cara "4.2 MB" en azul pálido #dbeafe entra girando desde abajo, en 450ms, usando perspective y backface-visibility hidden. Active #1d4ed8. Foco con outline azul de 2px y offset de 3px.

## HTML

```html
<button class="btn-117"><span>Download</span><i aria-hidden="true">4.2 MB</i></button>
```

## CSS

```css
.btn-117 {
  position: relative;
  font: 600 14px/1 system-ui,sans-serif;
  color: #fff;
  background: #2563eb;
  border: 0;
  border-radius: 10px;
  width: 150px;
  height: 44px;
  cursor: pointer;
  perspective: 300px;
  transition: background .2s
}
.btn-117 span,.btn-117 i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  backface-visibility: hidden;
  transition: transform .45s
}
.btn-117 i {
  transform: rotateX(-90deg) translateZ(22px);
  color: #dbeafe;
  font-weight: 500
}
.btn-117 span {
  transform: rotateX(0) translateZ(22px)
}
.btn-117:hover span {
  transform: rotateX(90deg) translateZ(22px)
}
.btn-117:hover i {
  transform: rotateX(0) translateZ(22px)
}
.btn-117:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px
}
.btn-117:active {
  background: #1d4ed8
}
```
