Skip to content

Instantly share code, notes, and snippets.

@anpleenko
Created March 25, 2015 08:23
Show Gist options
  • Save anpleenko/38bcb4ced62cd6a0ac29 to your computer and use it in GitHub Desktop.
Save anpleenko/38bcb4ced62cd6a0ac29 to your computer and use it in GitHub Desktop.
CSS3 transform middle
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// CSS3 trasform middle
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@mixin transform-middle(){
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