Created
June 21, 2012 16:04
-
-
Save stefancova/2966706 to your computer and use it in GitHub Desktop.
Simple CSS loading zone @ CodePen
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Simple CSS loading zone · CodePen</title> | |
<style> | |
#wrapper{ | |
background-color: #eee; | |
font-family: sans-serif; | |
margin:0; | |
padding:20px 0 200px 0 | |
} | |
h1{ | |
text-align: center; | |
} | |
#loading{ | |
width:400px; | |
height: 20px; | |
/*background: url(loading.png) repeat-x 0 0;*/ | |
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAIAAAAVyRqTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjkwNUFDQ0Y1QkJCMzExRTFBQ0RCQkQ1MUMxNjJCQkMwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjkwNUFDQ0Y2QkJCMzExRTFBQ0RCQkQ1MUMxNjJCQkMwIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTA1QUNDRjNCQkIzMTFFMUFDREJCRDUxQzE2MkJCQzAiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OTA1QUNDRjRCQkIzMTFFMUFDREJCRDUxQzE2MkJCQzAiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5WvhOzAAAAkUlEQVR42mL8//8/A1mg5lzZ2ocr8ShgopG5lXr1TDQyN045iYlG5pIcIMSbS5rRJJlLgtGkmkus0WSYS5TR5JlL2GiyzSVgNCXm4jOaQnNxGk3Q3HLdGvzmYjeaGHMTVFIJxj8LGr/qbMn6R6spNxfd1VQ0F8Vo6pqLMJrq5kKNpoW5QMD8y/cLLcwFAoAAAwBA1Hi2CmQ5QQAAAABJRU5ErkJggg==) repeat-x 0 0; | |
border: 1px solid #ccc; | |
margin:50px auto 0; | |
-webkit-border-radius: 20px; | |
-moz-border-radius: 20px; | |
border-radius: 20px; | |
-webkit-animation: load 0.5s linear 0s infinite; | |
-moz-animation: load 0.5s linear 0s infinite; | |
animation: load 0.5s linear 0s infinite; | |
} | |
@-webkit-keyframes load{ | |
from {background-position: 0px 0px;} | |
to {background-position: 30px 0px;} | |
} | |
@-moz-keyframes load{ | |
from {background-position: 0px 0px;} | |
to {background-position: 30px 0px;} | |
} | |
@keyframes load{ | |
from {background-position: 0px 0px;} | |
to {background-position: 30px 0px;} | |
} | |
</style> | |
<style> | |
#codepen-footer, #codepen-footer * { | |
-webkit-box-sizing: border-box !important; | |
-moz-box-sizing: border-box !important; | |
box-sizing: border-box !important; | |
} | |
#codepen-footer { | |
display: block !important; | |
position: fixed !important; | |
bottom: 0 !important; | |
left: 0 !important; | |
width: 100% !important; | |
padding: 0 10px !important; | |
margin: 0 !important; | |
height: 30px !important; | |
line-height: 30px !important; | |
font-size: 12px !important; | |
color: #eeeeee !important; | |
background-color: #505050 !important; | |
text-align: left !important; | |
background: -webkit-linear-gradient(top, #505050, #383838) !important; | |
background: -moz-linear-gradient(top, #505050, #383838) !important; | |
background: -ms-linear-gradient(top, #505050, #383838) !important; | |
background: -o-linear-gradient(top, #505050, #383838) !important; | |
border-top: 1px solid black !important; | |
border-bottom: 1px solid black !important; | |
border-radius: 0 !important; | |
box-shadow: inset 0 1px 0 #6e6e6e, 0 2px 2px rgba(0, 0, 0, 0.4) !important; | |
z-index: 300 !important; | |
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, sans-serif !important; | |
letter-spacing: 0 !important; | |
word-spacing: 0 !important; | |
} | |
#codepen-footer a { | |
color: #a7a7a7 !important; | |
text-decoration: none !important; | |
} | |
#codepen-footer a:hover { | |
color: white !important; | |
} | |
</style> | |
<script src="http://codepen.io/javascripts/libs/prefixfree.min.js"></script> | |
</head> | |
<body> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loading Zone</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<h1>Simple CSS loading zone</h1> | |
<div id="loading"></div> | |
</div> | |
</body> | |
</html> | |
<script src="http://codepen.io/javascripts/libs/modernizr.js"></script> | |
<script> | |
(function() { | |
/* nothing ;)*/ | |
})(); | |
</script> | |
<div id="codepen-footer"> | |
<a style="color: #f73535 !important;" href="https://codepen.wufoo.com/forms/m7x3r3/def/field14=" onclick="window.open(this.href, null, 'height=517, width=680, toolbar=0, location=0, status=1, scrollbars=1, resizable=1'); return false">Report Abuse</a> | |
| |
<a href="/stefancova/pen/simple_css_loading_zone/2">Edit this Pen</a> | |
</div> | |
</body> | |
</html> |
This file contains 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
/* nothing ;)*/ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loading Zone</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<h1>Simple CSS loading zone</h1> | |
<div id="loading"></div> | |
</div> | |
</body> | |
</html> |
This file contains 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
#wrapper{ | |
background-color: #eee; | |
font-family: sans-serif; | |
margin:0; | |
padding:20px 0 200px 0 | |
} | |
h1{ | |
text-align: center; | |
} | |
#loading{ | |
width:400px; | |
height: 20px; | |
/*background: url(loading.png) repeat-x 0 0;*/ | |
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAIAAAAVyRqTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlw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it-animation: load 0.5s linear 0s infinite; | |
-moz-animation: load 0.5s linear 0s infinite; | |
animation: load 0.5s linear 0s infinite; | |
} | |
@-webkit-keyframes load{ | |
from {background-position: 0px 0px;} | |
to {background-position: 30px 0px;} | |
} | |
@-moz-keyframes load{ | |
from {background-position: 0px 0px;} | |
to {background-position: 30px 0px;} | |
} | |
@keyframes load{ | |
from {background-position: 0px 0px;} | |
to {background-position: 30px 0px;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment