Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
body { display: flex; background: radial-gradient(circle at center, #fff 500px, #c0cdd7); justify-content: center; align-items: center; height: 100vh; position: relative; overflow: hidden; } body svg { position: absolute; width: 0; height: 0; } body #wrap { position: absolute; width: 600px; height: 600px; display: grid; grid-template-columns: repeat(3, 180px); grid-template-rows: repeat(3, 180px); grid-row-gap: 30px; grid-column-gap: 30px; z-index: 1; } body #wrap .inner { position: relative; overflow: hidden; box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.5); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(1) .filtered .frame { -webkit-transform: scale(0.075); transform: scale(0.075); } body #wrap .inner:nth-of-type(1) .filtered .clouds { -webkit-transform: scale(0.575); transform: scale(0.575); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(2) .filtered .frame { -webkit-transform: scale(0.15); transform: scale(0.15); } body #wrap .inner:nth-of-type(2) .filtered .clouds { -webkit-transform: scale(0.55); transform: scale(0.55); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(3) .filtered .frame { -webkit-transform: scale(0.225); transform: scale(0.225); } body #wrap .inner:nth-of-type(3) .filtered .clouds { -webkit-transform: scale(0.525); transform: scale(0.525); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(4) .filtered .frame { -webkit-transform: scale(0.3); transform: scale(0.3); } body #wrap .inner:nth-of-type(4) .filtered .clouds { -webkit-transform: scale(0.5); transform: scale(0.5); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(5) .filtered .frame { -webkit-transform: scale(0.375); transform: scale(0.375); } body #wrap .inner:nth-of-type(5) .filtered .clouds { -webkit-transform: scale(0.475); transform: scale(0.475); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(6) .filtered .frame { -webkit-transform: scale(0.45); transform: scale(0.45); } body #wrap .inner:nth-of-type(6) .filtered .clouds { -webkit-transform: scale(0.45); transform: scale(0.45); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(7) .filtered .frame { -webkit-transform: scale(0.525); transform: scale(0.525); } body #wrap .inner:nth-of-type(7) .filtered .clouds { -webkit-transform: scale(0.425); transform: scale(0.425); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(8) .filtered .frame { -webkit-transform: scale(0.6); transform: scale(0.6); } body #wrap .inner:nth-of-type(8) .filtered .clouds { -webkit-transform: scale(0.4); transform: scale(0.4); } body #wrap .inner:nth-of-type(even) { -webkit-transform: scaleX(-1); transform: scaleX(-1); } body #wrap .inner:nth-of-type(3n) { -webkit-transform: scaleX(-1) scaleY(-1); transform: scaleX(-1) scaleY(-1); } body #wrap .inner:nth-of-type(9) .filtered .frame { -webkit-transform: scale(0.675); transform: scale(0.675); } body #wrap .inner:nth-of-type(9) .filtered .clouds { -webkit-transform: scale(0.375); transform: scale(0.375); } body #wrap .inner .filtered { position: absolute; width: 200%; height: 200%; overflow: hidden; top: -50%; left: -50%; -webkit-filter: url(#wave); filter: url(#wave); } body .frame, body .clouds { content: ''; position: absolute; width: 900000px; height: 900000px; top: -900px; left: -900px; -webkit-transform-origin: 0% 0%; transform-origin: 0% 0%; -webkit-transform: scale(0.25); transform: scale(0.25); background: repeating-linear-gradient(-12deg, #c0cdd7 0px, #d773a0 150px, #c7bea5 200px, #008ec9 400px, #05419f 500px, #008ec9 700px, #c7bea5 750px, #d773a0 800px, #008ec9 850px, #c0cdd7 1100px); } body .clouds { background: repeating-linear-gradient(22deg, #05419f 100px, transparent 390px, #05419f 400px); }
JavaScript
var filter = document.querySelector("#turbulence"); var frames = 0; var rad = Math.PI / 180; function freqAnimation() { bfx = 0.005; bfy = .01; frames += .45 bfx += 0.001 * Math.cos(frames * rad); bfy += 0.005 * Math.sin(frames * rad); bf = bfx.toString() + ' ' + bfy.toString(); filter.setAttributeNS(null, 'baseFrequency', bf); window.requestAnimationFrame(freqAnimation); } window.requestAnimationFrame(freqAnimation);
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>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号