Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
*, *::before, *::after { box-sizing: border-box; } body { display: flex; flex-wrap: wrap; font-family: "Source Serif Pro", serif; font-size: 16px; background: dodgerblue; counter-reset: spinnerCount; } .cell { width: 25%; } .cell .wrapper { position: relative; display: flex; justify-content: center; height: 10rem; margin: 1rem 1rem 0; padding-top: 2.2rem; background: rgba(255, 255, 255, 0.2); } .cell .wrapper::after { position: absolute; bottom: 0; width: 100%; padding: 0.2rem; text-align: center; background: rgba(255, 255, 255, 0.25); /* Increment the section counter */ counter-increment: spinnerCount; /* Display the counter on pseudo-elements */ content: counter(spinnerCount); } .spinner { width: 4rem; height: 4rem; } .spinner.spinner1 { border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: rgba(0, 0, 0, 0.5); border-radius: 50%; -webkit-animation: rotation .8s ease infinite; animation: rotation .8s ease infinite; } .spinner.spinner2 { border: 3px solid transparent; border-top-color: rgba(0, 0, 0, 0.5); border-bottom-color: rgba(0, 0, 0, 0.5); border-radius: 50%; -webkit-animation: rotation .8s ease infinite; animation: rotation .8s ease infinite; } .spinner.spinner3 { border-top: 3px solid rgba(0, 0, 0, 0.5); border-right: 3px solid transparent; border-radius: 50%; -webkit-animation: rotation .8s linear infinite; animation: rotation .8s linear infinite; } .spinner.spinner4 { background: rgba(0, 0, 0, 0.5); -webkit-animation: flip 1.2s ease infinite; animation: flip 1.2s ease infinite; } .spinner.spinner5 { margin-top: 2rem; overflow: hidden; position: relative; height: .5rem; background: rgba(255, 255, 255, 0.25); } .spinner.spinner5::before { content: ''; position: absolute; left: -130%; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); -webkit-animation: progress 4s linear infinite; animation: progress 4s linear infinite; } .spinner.spinner6 { position: absolute; top: 45%; left: 50%; background: #fff; border-radius: 50%; -webkit-animation: pulse 1s ease-in-out infinite; animation: pulse 1s ease-in-out infinite; -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0); } .spinner.spinner7 { position: relative; } .spinner.spinner7::before, .spinner.spinner7::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border-radius: 50%; -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0); } .spinner.spinner7::before { background: #fff; -webkit-animation: pulse2 2s ease-in-out infinite; animation: pulse2 2s ease-in-out infinite; } .spinner.spinner7::after { background: #fff; -webkit-animation: pulse2 2s 1s ease-in-out infinite; animation: pulse2 2s 1s ease-in-out infinite; } .spinner.spinner8 { position: relative; -webkit-perspective: 200px; perspective: 200px; } .spinner.spinner8::before { display: block; content: ''; width: 50%; height: 50%; background: rgba(0, 0, 0, 0.5); -webkit-animation: 2s flipWalker ease infinite; animation: 2s flipWalker ease infinite; } @-webkit-keyframes rotation { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes rotation { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-webkit-keyframes flip { 0% { -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg); transform: perspective(120px) rotateX(0deg) rotateY(0deg); } 50% { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(0deg); transform: perspective(120px) rotateX(-180deg) rotateY(0deg); } 100% { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); } } @keyframes flip { 0% { -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg); transform: perspective(120px) rotateX(0deg) rotateY(0deg); } 50% { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(0deg); transform: perspective(120px) rotateX(-180deg) rotateY(0deg); } 100% { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); } } @-webkit-keyframes progress { 0% { left: -130%; background: rgba(0, 0, 0, 0.5); } 50% { left: 130%; background: rgba(0, 0, 0, 0.5); } 51% { background: rgba(255, 255, 255, 0.5); } 100% { background: rgba(255, 255, 255, 0.5); } } @keyframes progress { 0% { left: -130%; background: rgba(0, 0, 0, 0.5); } 50% { left: 130%; background: rgba(0, 0, 0, 0.5); } 51% { background: rgba(255, 255, 255, 0.5); } 100% { background: rgba(255, 255, 255, 0.5); } } @-webkit-keyframes pulse { 0% { -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0); opacity: 1; } 100% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); opacity: 0; } } @keyframes pulse { 0% { -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0); opacity: 1; } 100% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); opacity: 0; } } @-webkit-keyframes pulse2 { 0%, 100% { -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0); opacity: 1; } 50% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); opacity: 0; } } @keyframes pulse2 { 0%, 100% { -webkit-transform: translate(-50%, -50%) scale(0); transform: translate(-50%, -50%) scale(0); opacity: 1; } 50% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); opacity: 0; } } @-webkit-keyframes flipWalker { 0% { -webkit-transform: translate(0, 0) rotateX(0) rotateY(0); transform: translate(0, 0) rotateX(0) rotateY(0); } 25% { -webkit-transform: translate(100%, 0) rotateX(0) rotateY(180deg); transform: translate(100%, 0) rotateX(0) rotateY(180deg); } 50% { -webkit-transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg); transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg); } 75% { -webkit-transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg); transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg); } 100% { -webkit-transform: translate(0, 0) rotateX(0) rotateY(360deg); transform: translate(0, 0) rotateX(0) rotateY(360deg); } } @keyframes flipWalker { 0% { -webkit-transform: translate(0, 0) rotateX(0) rotateY(0); transform: translate(0, 0) rotateX(0) rotateY(0); } 25% { -webkit-transform: translate(100%, 0) rotateX(0) rotateY(180deg); transform: translate(100%, 0) rotateX(0) rotateY(180deg); } 50% { -webkit-transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg); transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg); } 75% { -webkit-transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg); transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg); } 100% { -webkit-transform: translate(0, 0) rotateX(0) rotateY(360deg); transform: translate(0, 0) rotateX(0) rotateY(360deg); } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS3加载动画-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号