feat(projects): intro and outro animations

This commit is contained in:
2025-12-17 20:06:46 +01:00
parent fbcc7703c9
commit aabe895325
5 changed files with 77 additions and 13 deletions

View File

@@ -124,6 +124,9 @@ useRender((ctx) => {
"black",
"black",
);
ctx.fillStyle = `rgba(0, 0, 0, ${store.isIntro ? store.intro.fadeOpacity : store.isOutro ? store.outro.fadeOpacity : 0})`;
ctx.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
});
defineOptions({

View File

@@ -6,7 +6,8 @@ const store = useProjectsStore();
</script>
<template>
<Background />
<Project v-if="!store.loading" />
<template v-if="!store.loading">
<Background />
<Project />
</template>
</template>