gleenk
3/6/2015 - 1:04 PM

Vertical Center Tranform

Vertical Center Tranform

.parent-element {
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.element {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}