My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 460: Overlay fade in
2 people starred this issue and may be notified of changes. Back to list
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

Powered by Google Project Hosting