Skip to content
Permalink
Browse files

Create _parallax.scss

  • Loading branch information
061375 committed Oct 13, 2019
1 parent d80be28 commit 09a4bf61ddf097a43659e8f25e2c908a88775e6c
Showing with 25 additions and 0 deletions.
  1. +25 −0 working/sass/_parallax.scss
@@ -0,0 +1,25 @@
.parallax {
perspective: 1px;
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
.group {
position: relative;
height: 100vh;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
.layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
&.base {
transform: translateZ(0);
}
&.back {
transform: translateZ(-1px);
}
}
}
}

0 comments on commit 09a4bf6

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