- Code: Select all
overlaywrapper.css('display', 'none');
Now it looks so:
- Code: Select all
overlaywrapper.animate({
'opacity': 0
}, 500, function () {
setTimeout(function () {
overlay.css('display', 'none');
overlaywrapper.css('display', 'none');
}, 500);
});