Skip to content

Instantly share code, notes, and snippets.

@ryancollingwood
Created January 31, 2019 12:01
Show Gist options
  • Save ryancollingwood/43ff4404ad828017e246dbd2feb3c17f to your computer and use it in GitHub Desktop.
Save ryancollingwood/43ff4404ad828017e246dbd2feb3c17f to your computer and use it in GitHub Desktop.
Simple 404 Page
<div id="main">
<div class="fof">
<h1>Error 404</h1>
</div>
</div>
/*
<3 You xD
*/
*{
transition: all 0.6s;
}
html {
height: 100%;
}
body{
font-family: 'Lato', sans-serif;
color: #888;
margin: 0;
}
#main{
display: table;
width: 100%;
height: 100vh;
text-align: center;
}
.fof{
display: table-cell;
vertical-align: middle;
}
.fof h1{
font-size: 50px;
display: inline-block;
padding-right: 12px;
animation: type .5s alternate infinite;
}
@keyframes type{
from{box-shadow: inset -3px 0px 0px #888;}
to{box-shadow: inset -3px 0px 0px transparent;}
}
<link href="https://fonts.googleapis.com/css?family=Lato:100,300" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment