<button class="rotate">Rotate</button >
<button class="press">Press Down</button >
body {
  padding: 10px;
}

.rotate {
  color: #1D9AF2;
  background-color: #292D3E;
  border: 1px solid #1D9AF2;
  border-radius: 4px;
  padding: 0 15px;
  cursor: pointer;
  height: 32px;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}
.rotate:hover{
  transform: rotateZ(-30deg);
}

.press {
  display: inline-block;
  position: relative;
  color: #1D9AF2;
  background-color: #292D3E;
  border: 1px solid #1D9AF2;
  border-radius: 4px;
  padding: 0 15px;
  cursor: pointer;
  height: 32px;
  font-size: 14px;
}
.press:active {
  box-shadow: 0 3px 0 #1D9AF2;
  top: 3px;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.