jQuery实现彩带延伸效果的网页加载条loading动画

2019-12-17,,,

本文实例讲述了jQuery实现彩带延伸效果的网页加载条loading动画。分享给大家供大家参考,具体如下:

这里介绍的jQuery彩带效果网页加载条动画,我觉得挺有创意的,虽然难度不算大,但能想到用这样一个背景来做Loading加载条,也实属不易,不服气的,你为什么就没有想到这样做呢?本网页加载条效果使用了jQuery插件。

运行效果截图如下:

在线演示地址如下:

http://demo.jb51.net/js/2015/jquery-n-color-cha-web-loading-demo/

具体代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>页面初加载的动画</title>
<style type="text/css">
body{margin:0;}
.top_bg{height:5px;width:0;background-color:#093; background-image:url(images/colorbg.png);}/*如果你喜欢博主的那个彩带背景欢迎下载,直接把background:#f03换成背景*/
</style>
<script src="jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
   //顶部背景动画
   $(".top_bg").animate({
    width: "100%"
   },
   {
    queue: false,
    duration:4000
   });
 })
</script>
</head>
<body>
 <div class="top_bg"></div>
</body>
</html>

希望本文所述对大家jQuery程序设计有所帮助。

您可能感兴趣的文章:

  • iOS动画教你编写Slack的Loading动画进阶篇
  • 一步步教你写Slack的Loading动画
  • Android自定义加载loading view动画组件
  • Android实现创意LoadingView动画效果
  • 一看就喜欢的loading动画效果Android分析实现
  • 三款Android炫酷Loading动画组件推荐
  • Winform圆形环绕的Loading动画实现代码
  • javascript制作loading动画效果 loading效果
  • javascript 通用loading动画效果实例代码
  • loading动画特效小结

《jQuery实现彩带延伸效果的网页加载条loading动画.doc》

下载本文的Word格式文档,以方便收藏与打印。