Avgrund is a jQuery plugin for modal boxes and popups. It uses interesting concept showing depth between popup and page. It works in all modern browsers and gracefully degrade in those that do not support CSS transitions and transformations (e.g. in IE 6-9 has standard behavior). File size is under 2Kb, MIT Licensed.
You can simply init Avgrund with one line:
$('element').avgrund();
Avgrund has several options for you to customize it easily:
$('element').avgrund({ width: 380, // max is 640px height: 280, // max is 350px showClose: false, // switch to 'true' for enabling close button showCloseText: '', // type your text for close button holderClass: '', // lets you name custom class for popin holder.. overlayClass: '', // ..and overlay block enableStackAnimation: false, // another animation type onBlurContainer: '', // enables blur filter for specified block template: 'Your content goes here..' });