使用js实现水波效果

使用到的工具:jQuery Ripples Plugin

$(function() {
$('.pool').ripples({
	  resolution: 512,
	  dropRadius: 20,
	  perturbance: 1,
	});
});

点击查看效果

需要注意的是

  • 该工具不能用在移动端上
  • 该工具只能作用在有背景图片的元素中
posted @ 2016-07-08 11:14  kevin.l  阅读(2412)  评论(0)    收藏  举报