mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-12 20:01:53 +00:00
Added animation transition for breadcrumb dropdown load
Animates the height on breadcrumb dropdown menus to transition to the loaded animations quicker. Includes a new animation helper for doing similar tasks in future.
This commit is contained in:
parent
89dfa43e73
commit
35a47a273b
2 changed files with 35 additions and 0 deletions
resources/js/components
|
@ -1,4 +1,5 @@
|
|||
import {debounce} from "../services/util";
|
||||
import {transitionHeight} from "../services/animations";
|
||||
|
||||
class DropdownSearch {
|
||||
|
||||
|
@ -51,7 +52,9 @@ class DropdownSearch {
|
|||
|
||||
try {
|
||||
const resp = await window.$http.get(this.getAjaxUrl(searchTerm));
|
||||
const animate = transitionHeight(this.listContainerElem, 80);
|
||||
this.listContainerElem.innerHTML = resp.data;
|
||||
animate();
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue