Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Loading
css
* { border: 0; box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #e3e4e8; --fg: #17181c; --dur: 8s; font-size: calc(20px + (30 - 20) * (100vw - 320px) / (1280 - 320)); } body { background: #ff9584; color: var(--fg); font: bold 1em/1.5 "Comfortaa", sans-serif; display: grid; place-items: center; align-content: center; height: 100vh; letter-spacing: 0.1em; text-transform: uppercase; } .hexagon { margin-bottom: 1.5em; overflow: hidden; position: relative; width: 15em; height: 15em; } .hexagon__group, .hexagon__sector, .hexagon__sector:before, .hexagon__sector:after { position: absolute; } .hexagon__group { width: 100%; height: 100%; } .hexagon__group:nth-child(2) .hexagon__sector, .hexagon__group:nth-child(2) .hexagon__sector:before, .hexagon__group:nth-child(2) .hexagon__sector:after { animation-delay: calc(var(--dur) * -1/6); } .hexagon__group:nth-child(3) .hexagon__sector, .hexagon__group:nth-child(3) .hexagon__sector:before, .hexagon__group:nth-child(3) .hexagon__sector:after { animation-delay: calc(var(--dur) * -2/6); } .hexagon__group:nth-child(4) .hexagon__sector, .hexagon__group:nth-child(4) .hexagon__sector:before, .hexagon__group:nth-child(4) .hexagon__sector:after { animation-delay: calc(var(--dur) * -3/6); } .hexagon__group:nth-child(5) .hexagon__sector, .hexagon__group:nth-child(5) .hexagon__sector:before, .hexagon__group:nth-child(5) .hexagon__sector:after { animation-delay: calc(var(--dur) * -4/6); } .hexagon__group:nth-child(6) .hexagon__sector, .hexagon__group:nth-child(6) .hexagon__sector:before, .hexagon__group:nth-child(6) .hexagon__sector:after { animation-delay: calc(var(--dur) * -5/6); } .hexagon__group:nth-child(odd) { transform: rotate(30deg); } .hexagon__sector, .hexagon__sector:before, .hexagon__sector:after { animation-duration: var(--dur); animation-iteration-count: infinite; animation-timing-function: linear; /*animation-play-state: paused;*/ width: 0.2em; height: 0.2em; } .hexagon__sector { animation-name: moveOut1; top: calc(50% - 0.1em); left: calc(50% - 0.1em); } .hexagon__sector:nth-child(2) { animation-name: moveOut2; } .hexagon__sector:nth-child(3) { animation-name: moveOut3; } .hexagon__sector:nth-child(4) { animation-name: moveOut4; } .hexagon__sector:nth-child(5) { animation-name: moveOut5; } .hexagon__sector:nth-child(6) { animation-name: moveOut6; } .hexagon__sector:before, .hexagon__sector:after { animation-name: ripple; background-color: currentColor; border-radius: 0.1em; content: ""; display: block; top: 0; left: 0; transform-origin: 0.1em 0.1em; } .hexagon__sector:before { transform: rotate(-30deg) } .hexagon__sector:after { transform: rotate(-150deg) } /* Dark theme */ @media (prefers-color-scheme: dark) { :root { --bg: #17181c; --fg: #e3e4e8; } } /* Animations */ @keyframes moveOut1 { from { transform: translateY(0) scale(0); } 3% { transform: translateY(0.2em) scale(1); } 97% { transform: translateY(7.3em) scale(1); } to { transform: translateY(7.5em) scale(0); } } @keyframes moveOut2 { from { transform: rotate(60deg) translateY(0) scale(0); } 3% { transform: rotate(60deg) translateY(0.2em) scale(1); } 97% { transform: rotate(60deg) translateY(7.3em) scale(1); } to { transform: rotate(60deg) translateY(7.5em) scale(0); } } @keyframes moveOut3 { from { transform: rotate(120deg) translateY(0) scale(0); } 3% { transform: rotate(120deg) translateY(0.2em) scale(1); } 97% { transform: rotate(120deg) translateY(7.3em) scale(1); } to { transform: rotate(120deg) translateY(7.5em) scale(0); } } @keyframes moveOut4 { from { transform: rotate(180deg) translateY(0) scale(0); } 3% { transform: rotate(180deg) translateY(0.2em) scale(1); } 97% { transform: rotate(180deg) translateY(7.3em) scale(1); } to { transform: rotate(180deg) translateY(7.5em) scale(0); } } @keyframes moveOut5 { from { transform: rotate(240deg) translateY(0) scale(0); } 3% { transform: rotate(240deg) translateY(0.2em) scale(1); } 97% { transform: rotate(240deg) translateY(7.3em) scale(1); } to { transform: rotate(240deg) translateY(7.5em) scale(0); } } @keyframes moveOut6 { from { transform: rotate(300deg) translateY(0) scale(0); } 3% { transform: rotate(300deg) translateY(0.2em) scale(1); } 97% { transform: rotate(300deg) translateY(7.3em) scale(1); } to { transform: rotate(300deg) translateY(7.5em) scale(0); } } @keyframes ripple { from, to { width: 0.2em; } 33% { width: 2.4em; } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>六边形波纹加载动画-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号