File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,13 @@ const animate = async (element, action, id, opts = {}) => {
440440
}
441441
};
442442

443-
handleAnimation.begin();
443+
await handleAnimation.begin();
444444
if (typeof start === 'function') {
445445
initCallback(trigger, start, 'start');
446446
}
447447
element.classList.add(CLASS_NAMES[action][id]);
448448
element.classList.remove(CLASS_NAMES[OPPOSITE_ACTION[action]][id]);
449-
handleAnimation.middle();
449+
await handleAnimation.middle();
450450

451451
setTimeout(() => {
452452
handleAnimation.end();

0 commit comments

Comments
 (0)