Add sliding animation

This commit is contained in:
Roeland Jago Douma 2016-08-10 09:17:14 +02:00
parent 79b7ff3bf8
commit 0727f4e372
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 7 additions and 2 deletions

View File

@ -354,8 +354,13 @@
},
_toggleFormResult: function (showForm) {
this._form.toggleClass('hidden', !showForm);
this._result.toggleClass('hidden', showForm);
if (showForm) {
this._result.slideUp();
this._form.slideDown();
} else {
this._form.slideUp();
this._result.slideDown();
}
}
});