canvas水波纹效果,jquery鼠标水波纹插件

canvas水波纹效果,jquery鼠标水波纹插件

效果展示

jQuery水波纹效果,canvas水波纹插件

HTML代码片段

html 复制代码
<div class="scroll04wrap">
	<h3>发展历程</h3>
	<div class="scroll04">
		<p>不要回头,一直向前</p>
	</div>
</div>

css代码片段

css 复制代码
/* scroll04 */
.scroll04wrap{width: 100%;position: relative;margin-top: 100px;}
.scroll04wrap h3{font-size: 50px;color: #2e5c72;margin-bottom: 30px;line-height: 86px;font-weight: bold;text-align: center;}
.scroll04{width: 100%;position: relative;box-sizing: border-box;padding: 250px 0;background:url(images/qyqxbg02.jpg) no-repeat fixed;background-size: cover;display: flex;display: -webkit-flex;justify-content: center;-webkit-justify-content: center;}
.scroll04 p{font-size: 28px;color: #fff;writing-mode: vertical-lr;font-family: cursive;font-weight: bold;letter-spacing: 5px;}

js代码片段

注:需引入 jquery.js 插件和 ripples.js 插件

javascript 复制代码
<script src="js/ripples.js"></script>
<script>
	$(document).ready(function() {
		try {
			$('.scroll04').ripples({
				resolution: 512,
				dropRadius: 20, //px
				perturbance: 0.04,
			});
		}
		catch (e) {
			$('.error').show().text(e);
		}
	});
</script>
相关推荐
JIngJaneIL10 分钟前
基于springboot + vue房屋租赁管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
天天扭码11 分钟前
以浏览器多进程的角度解构页面渲染的整个流程
前端·面试·浏览器
你们瞎搞27 分钟前
Cesium加载20GB航测影像.tif
前端·cesium·gdal·地图切片
milanleon1 小时前
使用Spring Security进行登录认证
java·前端·spring
excel1 小时前
🚀 从零开始:如何从 GPTsAPI.net 申请 API Key 并打造自己的 AI 服务
前端
期待のcode2 小时前
@RequestBody的伪表单提交场景
java·前端·vue.js·后端
栀秋6662 小时前
防抖 vs 节流:从百度搜索到京东电商,看前端性能优化的“节奏哲学”
前端·javascript
一颗烂土豆2 小时前
vfit.js v2.0.0 发布:精简、语义化与核心重构 🎉
前端·vue.js·响应式设计
有意义2 小时前
深入防抖与节流:从闭包原理到性能优化实战
前端·javascript·面试
legendary_1632 小时前
Type-C 一拖二快充线:实用、便携的移动充电方式
计算机外设·电脑·音视频