Skip to content
Permalink
Browse files

Add deep and perspective-origin

  • Loading branch information
061375 committed Oct 13, 2019
1 parent 3a7c1fa commit 4f24c55fdcb6b335c96ab815346f4be8f3b76368
Showing with 6 additions and 1 deletion.
  1. +6 −1 working/sass/_parallax.scss
@@ -3,6 +3,7 @@
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
perspective-origin-x: 100%;
.group {
position: relative;
height: 100vh;
@@ -14,11 +15,15 @@
right: 0;
bottom: 0;
left: 0;
perspective-origin-x: 100%;
&.base {
transform: translateZ(0);
}
&.back {
transform: translateZ(-1px);
transform: translateZ(-1px) scale(2);
}
&.deep {
transform: translateZ(-2px) scale(3);
}
}
}

0 comments on commit 4f24c55

Please sign in to comment.
You can’t perform that action at this time.