Skip to content

Instantly share code, notes, and snippets.

@vrej
Created March 23, 2017 21:49
Show Gist options
  • Save vrej/7a4294e307d496a1fad4ffea8dfa5fb8 to your computer and use it in GitHub Desktop.
Save vrej/7a4294e307d496a1fad4ffea8dfa5fb8 to your computer and use it in GitHub Desktop.
<script>jQuery(window).bind('load',function(){setTimeout(function(){jQuery('.munchkin-loading').fadeOut('fast');},500);});</script>
.munchkin-loading {
position: fixed;
z-index: 10000;
top: 0;
left: 0;
background: #efefef;
width: 100%;
height: 100%;
}
.munchkin-loading .pulse {
border: 5px;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
-webkit-animation: pulsate 1s ease-out;
-webkit-animation-iteration-count: infinite;
animation: pulsate 1s ease-out;
animation-iteration-count: infinite;
opacity: 0;
font-family: 'munchkin';
color: red;
font-size: 2em;
}
.munchkin-loading .pulse:before {
content: 'j';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment