Foggy 是一种模糊的页面元素的jQuery插件,
它支持IE(8),火狐,Safari和Chrome浏览器。
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis commodo massa viverra diam pharetra quis dictum mauris bibendum. In eget tortor id risus suscipit facilisis. Duis luctus tortor non sem mollis sodales. Cras et cursus justo. Phasellus vel libero erat, vel mattis justo. Aenean tempor bibendum euismod. Vivamus erat justo, lacinia vitae facilisis quis, luctus sed mauris. Suspendisse lectus dolor, accumsan eu lacinia in, dapibus vitae nunc.
$('.your-selector').foggy();
$('.your-selector').foggy({ blurRadius: 2, opacity: 0.8, cssFilterSupport: true });
$('.your-selector').foggy(false);
Version 1.1 | jquery.foggy.min.js | 2012-09-15 |
Version 1.02 | jquery.foggy.min.js | 2012-09-03 |
Foggy默认使用 “-webkit的过滤器:模糊”CSS属性
If the browser doesn't support it, Foggy falls back to a manual blur. It makes several copies of the selected HTML element. It adds transparency to all copies and moves each of them by small amount, thus creating the blur effect.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis commodo massa viverra diam pharetra quis dictum mauris bibendum. In eget tortor id risus suscipit facilisis. Duis luctus tortor non sem mollis sodales. Cras et cursus justo. Phasellus vel libero erat, vel mattis justo. Aenean tempor bibendum euismod. Vivamus erat.