Skip to content
forked from jakiestfu/Blur.js

blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements.

Notifications You must be signed in to change notification settings

sthapaun/Blur.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blur.js

blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements.

Usage

$('.target').blurjs({
	source: 'body',
	radius: 7,
	overlay: 'rgba(255,255,255,0.4)'
});

Defaults

$('.target').blurjs({
	source: 'body',		//Background to blur
	radius: 5,			//Blur Radius
	overlay: '',		//Overlay Color, follow CSS3's rgba() syntax
	offset: {			//Pixel offset of background-position
		x: 0,
		y: 0
	},
	optClass: '',					//Class to add to all affected elements
	cache: false,					//If set to true, blurred image will be cached and used in the future. If image is in cache already, it will be used.
	cacheKeyPrefix: 'blurjs-',		//Prefix to the keyname in the localStorage object
	draggable: false				//Only used if jQuery UI is present. Will change background-position to fixed
});

Licensing

MIT

About

blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published