Add sliding animation

This commit is contained in:
Roeland Jago Douma 2016-08-10 09:17:14 +02:00
parent 965804425d
commit 7d643fc539
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();
}
}
});