| Issue 460: | Overlay fade in | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
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?
|
||||||||
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); };