Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
#loader { display: block; position: absolute; transform: translate(-50%, -50%); left: 50%; top: 50%; color: rgba(0, 0, 0, 0.8); background-color: #EEE; width: 100px; height: 100px; padding: 50px; user-select: none; cursor: default; transition: opacity 800ms; } .dotring { display: block; position: absolute; height: 100px; width: 100px; top: 50px; left: 50px; border-radius: 100%; border: 2px dashed; border-top: 2px solid transparent; border-left: 2px solid; animation: rotato 12000ms linear infinite; } .spheric { display: block; position: absolute; z-index: 5; width: 20px; height: 20px; border: 1px solid; border-radius: 100%; left: 3.5px; top: 3.5px; background-color: #eee; box-shadow: inset 3px -3px 6px 4px rgba(0, 0, 0, 0.8); animation: rotato 12000ms linear infinite reverse; } .pipline { display: block; position: absolute; z-index: 2; width: 90px; height: 90px; top: -5px; left: -5px; border-radius: 100%; border: 10px solid transparent; border-top: 10px solid #111; animation: rotato 4800ms linear infinite; overflow: visible; } .pipline:before { display: block; position: absolute; content: ''; width: 9px; height: 7px; border-radius: 100%; top: 5.5px; right: 5px; background-color: #888; transform: rotate(-45deg); } .pipline:after { display: block; position: absolute; content: ''; width: 9px; height: 7px; border-radius: 100%; top: 5.5px; left: 5px; background-color: #111; transform: rotate(45deg); } .loadbar { display: block; position: absolute; height: 40px; width: 200px; top: 200px; left: 0; background-color: #fff; } .loadbar:after { display: block; content: ''; z-index: -1; position: absolute; top: -100px; left: -75px; height: 118px; width: 118px; border-radius: 100% 0 0 100%; border: 2px dashed; border-right: 2px transparent; } .loadpac { display: inline-block; width: 12px; height: 25px; margin-top: 7px; margin-left: -2px; background: #777; background-image: url(http://www.transparenttextures.com/patterns/clean-gray-paper.png); transform: skew(0, 20deg); } .loadpac:first-child { margin-left: 10px; } .loadpac:after { display: block; content: ''; height: 25px; width: 4px; margin-top: -26px; margin-left: -4px; background: #222; transform: skew(0, -20deg); } .loadpac:before { display: block; content: ''; width: 12px; height: 2px; margin-top: 25px; margin-left: -2px; background: #CCC; transform: skew(-70deg); } .numbers { display: block; position: absolute; font-size: 40px; text-align: center; width: 100px; margin-top: 29px; font-family: droid sans mono, mono, sans; } @keyframes rotato { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
JavaScript
var loadSpace = document.getElementById('loader'); var mainLoop = document.createElement('div'); var shadeDot = document.createElement('div'); var arcaPipe = document.createElement('div'); var loadBars = document.createElement('div'); var loadNumb = document.createElement('div'); mainLoop.className = "dotring"; shadeDot.className = "spheric"; arcaPipe.className = "pipline"; loadBars.className = "loadbar"; loadNumb.className = "numbers"; function setPack(num) { loadBars.innerHTML = ''; for (i = 0; i < num; i++) { var loadPack = document.createElement('div'); loadPack.className = "loadpac"; loadPack.style.zIndex = 100 - i; loadPack.style.backgroundPosition = "0 " + (i * 30) + "px"; loadBars.appendChild(loadPack); } } mainLoop.appendChild(shadeDot); mainLoop.appendChild(arcaPipe); loadSpace.appendChild(mainLoop); loadSpace.appendChild(loadBars); var prog = 0; function loadry() { prog++; if (prog <= 100) { boxn = Math.floor(prog / 5.5); setPack(boxn); loadNumb.innerHTML = prog; loadSpace.appendChild(loadNumb); } else if (prog == 120) { loadSpace.style.opacity = 0; } else if (prog >= 130) { loadSpace.style.opacity = 1; prog = 0; }; setTimeout(loadry, (Math.random() * 120) + 40); } loadry();
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>loader加载动画-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号