jQuery模糊效果插件:Vague.js
jopen
9年前
jQuery插件通过SVG滤镜模糊HTML元素。
浏览器支持情况
- Mozilla Firefox (v10 and above)
- Google Chrome (v18 and above)
- Safari (v6.0 and above)
- Microsoft Internet Explorer (v7-9; v10+ not supported)
文档
Check the demos here on GitHub Pages and on Codepen.
Requisites
jQuery JavaScript Library
Installation
bower install vague.js --save
用法
var vague = $('#yourelement').Vague({ intensity: 3, // Blur Intensity forceSVGUrl: false, // Force absolute path to the SVG filter, // default animation options animationOptions: { duration: 1000, easing: 'linear' // here you can use also custom jQuery easing functions } }); vague.blur();