# Tilt card press (B 054)

Category: Buttons  
Tags: 3d, perspective, tilt, hover-rotate  
Page: https://designforai.dev/snippet/btn-054

## Prompt

A teal #0f766e button with white 15px semibold text, 10px radius, 14px by 28px padding and a teal 0 6px 14px shadow. On hover it tilts back 12deg in 3D perspective (500px, origin at the bottom edge) and the shadow moves further away; on press it tilts forward 8deg with a tight shadow. Focus ring translucent teal.

## HTML

```html
<button class="btn-054">Flip it</button>
```

## CSS

```css
.btn-054 {
  font: 600 15px/1 system-ui,sans-serif;
  color: #fff;
  background: #0f766e;
  border: 0;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transform: perspective(500px) rotateX(0);
  transform-origin: bottom;
  box-shadow: 0 6px 14px rgba(15,118,110,.35);
  transition: transform .2s,box-shadow .2s
}
.btn-054:hover {
  transform: perspective(500px) rotateX(-12deg);
  box-shadow: 0 14px 24px rgba(15,118,110,.35)
}
.btn-054:focus-visible {
  outline: 3px solid rgba(15,118,110,.5);
  outline-offset: 3px
}
.btn-054:active {
  transform: perspective(500px) rotateX(8deg);
  box-shadow: 0 2px 6px rgba(15,118,110,.35)
}
```
