Skip to content

Instantly share code, notes, and snippets.

@thadallender
Created November 11, 2015 16:42
Show Gist options
  • Save thadallender/d1541abcb314e90bcf9b to your computer and use it in GitHub Desktop.
Save thadallender/d1541abcb314e90bcf9b to your computer and use it in GitHub Desktop.
Vanishing welcome message
.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