Issue 460: Overlay fade in
Status:  Fixed
Owner: ----
Closed:  Apr 2010
Reported by feed...@gmail.com, Apr 14, 2010
Hi, I'm trying to make the overlay fade in, I've read the documentation and
came up with this:

$.fn.nyroModal.settings.showBackground = function(elts, settings, callback) {
	elts.bg
		.css({
			 opacity: 0
		})
		.show()
		.animate({
		  opacity: 1
		}, {complete: callback, duration: 2000});
};


It should work, right?

Apr 17, 2010
Project Member #1 nyro...@gmail.com
not exactly, I think you missused the animate function.
It might looks like:
$.fn.nyroModal.settings.showBackground = function(elts, settings, callback) {
	elts.bg
		.css({
			 opacity: 0
		})
		.show()
		.animate({
		  opacity: 1
		}, 2000, callback);
};

Status: Fixed