Skip to content

Instantly share code, notes, and snippets.

@kenanchristian
Last active September 21, 2020 06:40
Show Gist options
  • Save kenanchristian/a1c7fa8291d31d91c0271d19f2fdb238 to your computer and use it in GitHub Desktop.
Save kenanchristian/a1c7fa8291d31d91c0271d19f2fdb238 to your computer and use it in GitHub Desktop.
[[Adventure.co] Styling] Basic styling #writing #animation-transition
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