<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>html5 svg逼真水波纹动画特效 - 【更多源码:www.96flw.com】</title>
<link type="text/css" href="css/style.css" rel="stylesheet" />
</head>
<body>
<script src="js/TweenMax.min.js"></script>
<div id="container">
<div id="water"></div>
</div>
<svg xlmns="http://www.w3.org/2000/svg" version="1.1">
<filter id="turbulence" filterUnits="objectBoundingBox" x="0" y="0" width="100%" height="100%">
<feTurbulence id="feturbulence" type="fractalNoise" numOctaves="3" seed="2"></feTurbulence>
<feDisplacementMap xChannelSelector="G" yChannelSelector="B" scale="20" in="SourceGraphic"></feDisplacementMap>
</filter>
</svg>
<script>
let timeline = new TimelineMax({
repeat: -1,
yoyo: true }),
feTurb = document.querySelector('#feturbulence');
timeline.add(
TweenMax.to(feTurb, 15, {
onUpdate: function () {
let bfX = this.progress() * 0.005 + 0.015, //base frequency x
bfY = this.progress() * 0.05 + 0.1; //base frequency y
feTurb.setAttribute('baseFrequency', `${bfX} ${bfY}`);
} }),
0);</script>
</body>
</html>
html5 svg逼真水波纹动画特效.zip
版权申诉
138 浏览量
2023-10-14
23:59:13
上传
评论
收藏 55KB ZIP 举报
码云笔记
- 粉丝: 2w+
- 资源: 5837
最新资源
- 基于matlab实现夜间车牌识别程序(1).rar
- 基于matlab实现无线传感器网络无需测距定位算法matlab源代码 包括apit,dv-hop,amorphous在内的共7个
- 基于python的yolov5实现的旋转目标检测
- 基于matlab实现无线传感器网络 CAB定位仿真程序 这是无线传感器节点定位CAB算法的仿真程序,由matlab完成.rar
- 基于matlab实现图像处理,本程序使用背景差分法对来往车辆进行检测和跟踪.rar
- 基于matlab实现视频监控中车型识别代码,自己写的,希望和大家多多交流.rar
- springcodespringcodespringcodespringcode
- 基于matlab实现权值的MAXDEV无线传感器网络定位算法研究 MAXDEV 无线传感器 定位 算法.rar
- sdk.config
- 基于matlab实现配电网三相潮流计算方法,对几种常用的配电网潮流计算方法进行了对比分析.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈