jQuery
【jQuery】背景画像にぼかし効果を与えるImage Blur Plugin
May 3, 2017

Image Blur Pluginは軽量で背景画像にぼかし効果を与えるjQueryプラグイン。
<script src="jquery.min.js"></script> <script src="background-blur.min.js"></script>
<div id='some-element'></div>
$('#some-element').backgroundBlur({ imageURL : 'http://URL-of-the-image', blurAmount : 50, imageClass : 'bg-blur' });
$('#some-element').backgroundBlur({ imageURL : 'http://URL-of-the-image', blurAmount : 50, imageClass : 'bg-blur' duration: 1000, // If the image needs to be faded in, how long that should take endOpacity : 1 // Specify the final opacity that the image will have });
// Initialize the blur $('#some-element').backgroundBlur({ imageURL : 'http://URL-of-the-image', blurAmount : 50, imageClass : 'bg-blur' duration: 1000, // If the image needs to be faded in, how long that should take endOpacity : 1 // Specify the final opacity that the image will have }); //Switch the image $('#some-element').backgroundBlur('http://URL-of-another-image');
MITライセンス