├── styles.css └── index.html /styles.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | } 6 | 7 | .btn { 8 | position: absolute; 9 | top: 50%; 10 | left: 50%; 11 | transform: translate(-50%, -50%); 12 | z-index: 2; 13 | background: none; 14 | border: none; 15 | outline: none; 16 | font-family: Helvetica, sans-serif; 17 | font-weight: 300; 18 | text-decoration: underline; 19 | text-transform: uppercase; 20 | font-size: 2em; 21 | cursor: pointer; 22 | } 23 | 24 | .header { 25 | position: fixed; 26 | width: 100%; 27 | height: 100vh; 28 | background: #0f0f0f; 29 | color: #fff; 30 | display: flex; 31 | justify-content: center; 32 | align-items: center; 33 | z-index: -2; 34 | font-family: "Voyage"; 35 | font-size: 8em; 36 | } 37 | 38 | .text-container { 39 | position: fixed; 40 | width: 100%; 41 | height: 100vh; 42 | background: #de5e40; 43 | z-index: -1; 44 | } 45 | 46 | .text-wrapper { 47 | position: fixed; 48 | width: 100%; 49 | height: 100vh; 50 | left: -50%; 51 | display: flex; 52 | flex-direction: column; 53 | justify-content: space-between; 54 | cursor: default; 55 | } 56 | 57 | .text { 58 | width: 300%; 59 | font-family: "Voyage"; 60 | font-size: 5vw; 61 | text-transform: uppercase; 62 | opacity: 0.1; 63 | } 64 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |