Created
September 15, 2019 11:37
-
-
Save jetstreamin/5d9775670ecff736c54f4f307e2fd8f4 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html, body { | |
| font-family: Open Sans; | |
| font-size: 18px; | |
| line-height: 28px; | |
| scroll-behavior: smooth; | |
| } | |
| h1 { | |
| letter-spacing: -15px; | |
| font-family: Open Sans; | |
| color: white; | |
| text-align: center; | |
| font-size: 200px; | |
| font-weight: 800; | |
| line-height: 200px; | |
| } | |
| .MainContainer { | |
| perspective: 1px; | |
| transform-style: preserve-3d; | |
| height: 100vh; | |
| overflow-x: hidden; | |
| overflow-y: scroll; | |
| } | |
| .ContentContainer { | |
| position: relative; | |
| display: block; | |
| background-color: white; | |
| z-index: 1; | |
| } | |
| .Content { | |
| max-width: 750px; | |
| margin: 0 auto; | |
| padding: 75px 0; | |
| } | |
| p { | |
| margin: 75px 0; | |
| } | |
| .ParallaxContainer { | |
| display: flex; | |
| flex: 1 0 auto; | |
| position: relative; | |
| z-index: -1; | |
| height: 100vh; | |
| justify-content: center; | |
| align-items: center; | |
| transform: translateZ(-1px) scale(2); | |
| background: url(https://www.toptal.com/designers/subtlepatterns/patterns/sakura.png); | |
| background-color: rgb(250,228, 216); | |
| } | |
| @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,800'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment