atitit.loading的设计与实现控件选型attilax 总结

1. Percentage Loader(推荐) 1

1.1. 起始百分比::调整  progress 1

2. CSS3 Loading Spinners Without Images 2

2.1.1. CSS Transforms 2

2.1.2. Animation 3

3. Ajax Style Loading Animation in CSS3 ( no Images ) 3

4. PageLoading - jQuery plugin 5

5. Edit fiddle - JSFiddle.htm 5

6. jQuery Circular Progress Bar 5

7. jQuery Progress Bar 6

8. 参考 6

1. Percentage Loader(推荐)

一款轻量的 jQuery 进度条插件,以百分比的形式呈现加载进度,同时显示已加载的内容大小。

1.1. 起始百分比::调整  progress

var $topLoader = $("#topLoader").percentageLoader({width: 256, height: 256, controllable : true, progress : 0.01, onProgressUpdate : function(val) {

var totalKb = 3000;  ///  more bit more time

作者:: 老哇的爪子 Attilax 艾龙,  EMAIL:1466519819@qq.com

转载请注明来源: http://blog.csdn.net/attilax

2. CSS3 Loading Spinners Without Images

2.0.1. CSS Transforms

CSS transform (in Firefox 3.5+ and Webkit-based browsers) has a whole bunch of interesting functions, such as rotation, translation, scaling and skewing. To learn more about the different functions, check out the Mozilla developer center overview of CSS transform. After playing around with chaining different transforms and seeing the effect, I found out something interesting:

transform:rotate(45deg) translate(0, -35px);

If you rotate first, and then translate (move), it will move along the rotated axis. The above code translates a block to the top-right corner (45 degrees). (the gray div is not transformed while the black one is.)

Using this, I could rotate and translate a bunch of divs to create loading spinners (though this one doesn’t spin yet!):

In this example, each div is rotated an additional 45 degrees. The first one is not rotated, the second one is rotated 45 degrees, the one after that 90 degrees, and so forth. Additionally, each div has increased opacity to make it look like most loading spinners.

2.0.2. Animation

Webkit supports CSS animations, but these are continuous while most loading spinners are not. On the left side is a spinner animated with CSS animation (only works in Safari and Chrome), on the right there’s one animated with a small bit of JavaScript to look like regular loading spinners:

The code for the CSS animation is fa

3. Ajax Style Loading Animation in CSS3 ( no Images )

Facebook style

HTML

<div id='facebook' >             <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>

CSS

#facebook{ margin-top:30px; float:left;}.facebook_block{ background-color:#9FC0FF; border:2px solid #3B5998; float:left; height:30px; margin-left:5px; width:8px;        opacity:0.1; -webkit-transform:scale(0.7); -webkit-animation-name: facebook;  -webkit-animation-duration: 1s;  -webkit-animation-iteration-count: infinite;  -webkit-animation-direction: linear; }#block_1{  -webkit-animation-delay: .3s; }#block_2{  -webkit-animation-delay: .4s;}#block_3{  -webkit-animation-delay: .5s;}@-webkit-keyframes facebook{ 0%{-webkit-transform: scale(1.2);opacity:1;} 100%{-webkit-transform: scale(0.7);opacity:0.1;}}

4. PageLoading - jQuery plugin

5. Edit fiddle - JSFiddle.htm

6. jQuery Circular Progress Bar

这款环形进度条加载插件可以非常灵活的定制外观、加载速度以及设置特定的进度值。

源码下载    在线演示

7. jQuery Progress Bar

一款非常简单的百分比进度条插件,可以参数灵活的控制百分比的增减,有动画效果。

源码下载    在线演示

8. 参考

Ajax Style Loading Animation in CSS3 ( no Images ) - nikesh.me.htm

10个漂亮的CSS3+jQuery的Loading加载条动画设计插件 - JavaScript - 酷站代码.htm

8款效果精美的 jQuery 加载动画和进度条插件 - 梦想天空(山边小溪) - 博客园.htm

8款效果精美的 jQuery 加载动画和进度条插件 - 梦想天空(山边小溪) - 博客园.htm

atitit.loading的设计与实现控件选型attilax 总结相关推荐

  1. atitit.提升开发效率---使用server控件生命周期 asp.net 11个阶段 java jsf 的6个阶段比較...

    atitit.提升开发效率---使用server控件生命周期  asp.net 11个阶段  java jsf 的6个阶段比較 例如以下列举了server控件生命周期所要经历的11个阶段. (1)初始 ...

  2. 如何设计一个 iOS 控件?(iOS 控件完全解析)

    前言 一个控件从外在特征来说,主要是封装这几点: 交互方式 显示样式 数据使用 对外在特征的封装,能让我们在多种环境下达到 PM 对产品的要求,并且提到代码复用率,使维护工作保持在一个相对较小的范围内 ...

  3. 为Windows mobile编写设计友好的控件[Writing designer friendly controls for Windows Mobile]

      在 J2i.Net 上看到了这篇文章 Making Designer Friendly Controls . 原文地址为Simon Hart 的 Writing designer friendly ...

  4. Winform中在使用Dock属性设计页面布局控件的顺序导致页面效果不同的问题

    场景 在Winform中进行页面设计时,常使用控件的Dock属性来进行布局调整.但是由于设置属性的顺序问题,导致达不到想要的效果. 比如以下两个控件 下面的控件设置的Dock属性是Bottom,即在页 ...

  5. extjs年月日时分选择控件_UI设计|网站公共控件及交互事件

    一.网站地图与模块设计 网站地图又名SITE MAP,站点地图呈现树状结构,以主页为树的跟节点,站点地图采用树状结 构的优点是可以让我们对我们的产品整体模块和不同栏目.功能单元有一个清晰的认识. 网站 ...

  6. iOS界面设计之基础控件的学习 --- UITextField

    学习iOS界面设计也有段时间了,每次写到一些基础控件(如:UILable . UITextField)的时候就深觉应该总结一个函数来实现这些基础控件的属性设置,所以下面就是我对UITextField的 ...

  7. iOS项目开发实战——使用Xcode6设计自己定义控件与图形

    在iOS开发中,有很多控件都是Xcode默认提供的.使用这些控件是很方便的.可是因为某些须要.须要自己设计控件,那么应该怎么做呢?在Xcode6中提供了这种接口,同意开发人员高速开发自己定义控件,而且 ...

  8. 解决!Android Studio 设计 UI 界面控件全在左上角

    Android Studio在进行界面设计的时候 UI 界面的 Layout 控件全在左上角 1.点击红色圈中的图标,Infer Constraints即可 2.这是之后的效果图 3.运行

  9. QtUI设计:设置控件透明

    QT设置按钮控件透明: 代码: //设置按钮 背景 前景this->ui->ShowCvRGB->setStyleSheet(QString("color:rgba(255 ...

最新文章

  1. SpringBoot缓存应用实践
  2. HashMap 的 7 种遍历方式与性能分析!(强烈推荐)
  3. Android数据库专家秘籍(七)经验LitePal查询艺术
  4. html背景过大,html – CSS – 背景大小:封面太大了
  5. python读取rar文件_在 python 中,如何读取由 7z 压缩的文本文件_python_酷徒编程知识库...
  6. 如何自行查询SAP Spartacus Organization Unit List的取数逻辑
  7. 解决百度富文本框中添加的表格页面获取后不显示表格边框的问题
  8. 中琛源主要的产品是什么
  9. 微信开放平台Android应用签名的获取
  10. oracle12能卸干净吗,Oracle卸载干净方法
  11. 大数据之数据仓库分层
  12. 巩固大一,大二知识 练习计划
  13. 外贸独立站SEO技巧
  14. 桌面微信协议分享小程序code
  15. 计算机网络手写笔记图片,一键收藏!清华学子这样记笔记!
  16. 不同tab页sessionStorage共享情况
  17. 小米node2红外_简单易懂,联动好用:小米 米家蓝牙温湿度计2 晒单
  18. 定了!不缴社保的,惨了!
  19. The 2020 ICPC Asia Macau Regional Contest
  20. 【信号与系统】(十四)傅里叶变换与频域分析——周期信号的频谱及特点

热门文章

  1. oracle用户、表空间操作常用命令
  2. Java代码中常见技术债务处理之Exception
  3. Flutter:Stream.periodic 示例
  4. 连接数据库版本不一致
  5. python中csv库_关于python 自带csv库的使用心得 附带操作实例以及excel下乱码的解决...
  6. 深入浅出理解神经网络召回模型的优势
  7. StarlingMVC Framework中文教程
  8. SQL Server 2008 开启远程连接
  9. 30分钟全面解析-SQL事务+隔离级别+阻塞+死锁
  10. android(cm11)状态栏源码分析(一)