fix(settings): fix menu icon flashing the wrong image for a frame
This commit is contained in:
@@ -10,10 +10,9 @@ export const useMenuAnimation = (key: string, isOpen: Ref<boolean>) => {
|
||||
}));
|
||||
|
||||
watch(isOpen, (current, previous) => {
|
||||
const timeline = gsap.timeline({
|
||||
onStart: () => {
|
||||
animation.value.playing = true;
|
||||
},
|
||||
|
||||
const timeline = gsap.timeline({
|
||||
onComplete: () => {
|
||||
animation.value.playing = false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user