手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jQuery实现彩带延伸效果的网页加载条loading动画
jQuery实现彩带延伸效果的网页加载条loading动画
摘要:本文实例讲述了jQuery实现彩带延伸效果的网页加载条loading动画。分享给大家供大家参考,具体如下:这里介绍的jQuery彩带效果网页...

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

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

运行效果截图如下:

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

在线演示地址如下:

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></div> </body> </html>

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

【jQuery实现彩带延伸效果的网页加载条loading动画】相关文章:

jQuery插件Slider Revolution实现响应动画滑动图片切换效果

jQuery插件bgStretcher.js实现全屏背景特效

jquery实现图片左右切换的方法

jQuery实现返回顶部功能

jQuery实现返回顶部效果的方法

jQuery使用zTree插件实现树形菜单和异步加载

javascript实现树形菜单的方法

jQuery实现自动滚动到页面顶端的方法

jQuery实现仿腾讯微博滑出效果报告每日天气的方法

jQuery实现给页面换肤的方法

精品推荐
分类导航