feat(projects): intro and outro animations
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -6,7 +6,8 @@ const store = useProjectsStore();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Background />
|
||||
|
||||
<Project v-if="!store.loading" />
|
||||
<template v-if="!store.loading">
|
||||
<Background />
|
||||
<Project />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user