Add parallax and reveal effects + performances on transitions
This commit is contained in:
@@ -28,19 +28,19 @@
|
||||
// Center vertically
|
||||
@mixin center-y {
|
||||
top: 50%;
|
||||
transform: translate3d(0,-50%,0);
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
|
||||
// Center horizontally
|
||||
@mixin center-x {
|
||||
left: 50%;
|
||||
transform: translate3d(-50%,0,0);
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
// Center vertically and horizontally
|
||||
@mixin center-xy {
|
||||
top: 50%; left: 50%;
|
||||
transform: translate3d(-50%,-50%,0);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
// Smooth fonts
|
||||
|
||||
Reference in New Issue
Block a user