Skip to content

Instantly share code, notes, and snippets.

@shalaby
Created June 5, 2014 14:20
Show Gist options
  • Save shalaby/f7daa6582697afab6617 to your computer and use it in GitHub Desktop.
Save shalaby/f7daa6582697afab6617 to your computer and use it in GitHub Desktop.
.parent-element {
-webkit-transform-style: preserve-3d;
}
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment