Created
November 11, 2015 16:42
-
-
Save thadallender/d1541abcb314e90bcf9b to your computer and use it in GitHub Desktop.
Vanishing welcome message
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
.vanishing-message { | |
position: relative; | |
} | |
.vanishing-message img { | |
width: 100%; | |
height: auto; | |
display: block; | |
} | |
.vanishing-message .text { | |
font-size: 56px; | |
font-size: 3.5rem; | |
-webkit-transition: all 0.25s ease-in-out; | |
-moz-transition: all 0.25s ease-in-out; | |
transition: all 0.25s ease-in-out; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
background-color: rgba(0, 0, 0, 0.3); | |
color: #fff; | |
font-weight: bold; | |
padding: 2em; | |
text-align: center; | |
text-shadow: 0 3px 3px rgba(0, 0, 0, 0.25); | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
.vanishing-message .text .prelude { | |
font-size: 16px; | |
font-size: 1rem; | |
color: rgba(255, 255, 255, 0.7); | |
display: block; | |
font-weight: normal; | |
font-style: italic; | |
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment