Updated
This commit is contained in:
@@ -35,14 +35,16 @@ const progressStyle = computed(() => {
|
||||
// };
|
||||
|
||||
const onAssetFinished = () => {
|
||||
gsap.to("#loading-overlay", {
|
||||
opacity: 0,
|
||||
onComplete: () => {
|
||||
shouldRenderLoadingOverlay.value = false;
|
||||
isWindowScrollLocked.value = false;
|
||||
isSiteLoadingDisabled.value = true;
|
||||
},
|
||||
});
|
||||
if (!isSiteLoadingDisabled.value) {
|
||||
gsap.to("#loading-overlay", {
|
||||
opacity: 0,
|
||||
onComplete: () => {
|
||||
shouldRenderLoadingOverlay.value = false;
|
||||
isWindowScrollLocked.value = false;
|
||||
isSiteLoadingDisabled.value = true;
|
||||
},
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// watch
|
||||
|
||||
Reference in New Issue
Block a user