Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Ready
css
*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; } body { background: #32386D; font-family: Helvetica, Arial, sans-serif; } .demo { position: absolute; left: 50%; top: 50%; width: 500px; height: 140px; margin-top: -70px; padding: 10px; border-radius: 20px; transform: translateX(-50%); } .demo__colored-blocks { overflow: hidden; position: absolute; left: 50%; top: 0; width: 500px; height: 100%; margin-left: -250px; padding: 10px; border-radius: 20px; perspective: 1000px; -webkit-animation: demoAnim 4s ease-in-out infinite, contAnim 4s infinite; animation: demoAnim 4s ease-in-out infinite, contAnim 4s infinite; } .demo__colored-blocks-rotater { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; -webkit-animation: rotation 1.3s linear infinite; animation: rotation 1.3s linear infinite; } .demo__colored-blocks-inner { overflow: hidden; position: relative; height: 100%; background: #32386D; border-radius: inherit; } .demo__colored-block { position: absolute; left: 50%; top: 50%; width: 300%; height: 300%; transform-origin: 0 0; } .demo__colored-block:nth-child(1) { transform: rotate(0deg) skewX(-30deg); background-color: #FD3359; } .demo__colored-block:nth-child(2) { transform: rotate(120deg) skewX(-30deg); background-color: #F4D302; } .demo__colored-block:nth-child(3) { transform: rotate(240deg) skewX(-30deg); background-color: #21BDFF; } .demo__inner { overflow: hidden; position: relative; width: 100%; height: 100%; } .demo__numbers { overflow: visible; position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; margin-left: -50px; margin-top: -50px; } .demo__numbers-path { fill: none; stroke-width: 10px; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0, 518.055065155; stroke-dashoffset: 0; -webkit-animation: numAnim 4s ease-in-out infinite; animation: numAnim 4s ease-in-out infinite; opacity: 0; } .demo__text { position: absolute; left: 50%; top: 0; width: 500px; height: 100%; margin-left: -250px; text-align: center; line-height: 140px; font-size: 100px; color: #fff; text-transform: uppercase; letter-spacing: 15px; transform: translateX(10px); -webkit-animation: hideText 4s infinite; animation: hideText 4s infinite; } @-webkit-keyframes contAnim { 15%, 100% { margin-left: -250px; width: 500px; } 25%, 90% { margin-left: -70px; width: 140px; } } @keyframes contAnim { 15%, 100% { margin-left: -250px; width: 500px; } 25%, 90% { margin-left: -70px; width: 140px; } } @-webkit-keyframes numAnim { 15% { stroke-dasharray: 0, 518.055065155; stroke-dashoffset: 0; opacity: 0; } 25%, 41% { opacity: 1; stroke-dasharray: 144.4256591797, 518.055065155; stroke-dashoffset: -40; } 53%, 66% { stroke-dasharray: 136.0216217041, 518.055065155; stroke-dashoffset: -227.238697052; } 76% { stroke-dasharray: 113.4751205444, 518.055065155; stroke-dashoffset: -445.8995704651; } 88%, 100% { stroke-dasharray: 72.1554946899, 518.055065155; stroke-dashoffset: -445.8995704651; } 92% { opacity: 1; } 100% { opacity: 0; } } @keyframes numAnim { 15% { stroke-dasharray: 0, 518.055065155; stroke-dashoffset: 0; opacity: 0; } 25%, 41% { opacity: 1; stroke-dasharray: 144.4256591797, 518.055065155; stroke-dashoffset: -40; } 53%, 66% { stroke-dasharray: 136.0216217041, 518.055065155; stroke-dashoffset: -227.238697052; } 76% { stroke-dasharray: 113.4751205444, 518.055065155; stroke-dashoffset: -445.8995704651; } 88%, 100% { stroke-dasharray: 72.1554946899, 518.055065155; stroke-dashoffset: -445.8995704651; } 92% { opacity: 1; } 100% { opacity: 0; } } @-webkit-keyframes rotation { to { transform: rotate(360deg); } } @keyframes rotation { to { transform: rotate(360deg); } } @-webkit-keyframes demoAnim { 15% { border-radius: 20px; transform: rotate(0); } 30%, 43% { border-radius: 50%; transform: rotate(360deg); } 52%, 65% { border-radius: 0; transform: rotate(720deg); } 78%, 90% { border-radius: 50%; transform: rotate(1080deg); } 100% { border-radius: 20px; transform: rotate(1440deg); } } @keyframes demoAnim { 15% { border-radius: 20px; transform: rotate(0); } 30%, 43% { border-radius: 50%; transform: rotate(360deg); } 52%, 65% { border-radius: 0; transform: rotate(720deg); } 78%, 90% { border-radius: 50%; transform: rotate(1080deg); } 100% { border-radius: 20px; transform: rotate(1440deg); } } @-webkit-keyframes hideText { 15%, 100% { opacity: 1; } 20%, 96% { opacity: 0; } } @keyframes hideText { 15%, 100% { opacity: 1; } 20%, 96% { opacity: 0; } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>纯CSS SVG 倒计时-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号