Last active
September 21, 2020 06:40
-
-
Save kenanchristian/a1c7fa8291d31d91c0271d19f2fdb238 to your computer and use it in GitHub Desktop.
[[Adventure.co] Styling] Basic styling #writing #animation-transition
This file contains 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
body, html { | |
margin: 0; | |
padding: 0; | |
font-size: 1rem; | |
font-family: "Montserrat"; | |
font-weight: 300; | |
background-color: #FFFFFF; | |
} | |
.container { | |
height: 100vh; | |
.hero { | |
height: 100%; | |
width: 100%; | |
position: relative; | |
display: flex; | |
align-items: flex-start; | |
justify-content: center; | |
flex-direction: column; | |
overflow: hidden; | |
.background { | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
object-fit: cover; | |
height: 100%; | |
width: 100%; | |
z-index: 0; | |
opacity: 0; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment