以下是 纯CSS3的ajax loading加载 的示例演示效果:
部分效果截图:
HTML代码(index.html):
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>纯CSS3的ajax loading加载</title>
<script src="images/mootools-1.js" type="text/javascript"></script>
<link rel="stylesheet" href="images/main.css" type="text/css">
<link rel="stylesheet" href="images/loading.css" type="text/css">
<script src="images/browserCheck.js" type="text/javascript"></script>
</head><body>
<div id="container">
<br><br><br><br><br>
<div class="label">纯CSS3(无图像)的ajax风格loading加载效果</div>
<br><br><br>
<div id="loading">
<div id="Gen" class="marginLeft">
<div class="block" id="rotate_01"></div>
<div class="block" id="rotate_02"></div>
<div class="block" id="rotate_03"></div>
<div class="block" id="rotate_04"></div>
<div class="block" id="rotate_05"></div>
<div class="block" id="rotate_06"></div>
<div class="block" id="rotate_07"></div>
<div class="block" id="rotate_08"></div>
<div class="clearfix"></div>
</div>
<div id="facebook" class="marginLeft">
<div id="block_1" class="facebook_block"></div>
<div id="block_2" class="facebook_block"></div>
<div id="block_3" class="facebook_block"></div>
<div class="clearfix"></div>
</div>
<div id="circle" class="marginLeft">
<div id="circle_1" class="circle"></div>
<div id="circle_2" class="circle"></div>
<div id="circle_3" class="circle"></div>
<div class="clearfix"></div>
</div>
<div id="outer-bar" class="marginLeft">
<div id="front-bar" class="bar-animation">
<div id="bar_1" class="bar-line"></div>
<div id="bar_2" class="bar-line"></div>
<div id="bar_3" class="bar-line"></div>
<div class="clearfix"></div>
</div>
</div>
<div id="circular" class="marginLeft">
<div id="circular_1" class="circular"></div>
<div id="circular_2" class="circular"></div>
<div id="circular_3" class="circular"></div>
<div id="circular_4" class="circular"></div>
<div id="circular_5" class="circular"></div>
<div id="circular_6" class="circular"></div>
<div id="circular_7" class="circular"></div>
<div id="circular_8" class="circular"></div>
<div class="clearfix"></div>
</div>
</div>
<div class="clearfix"></div>
<br><br>
</div>
</body>
</html>