feat(contact): animate outro

This commit is contained in:
2025-11-17 23:13:40 +01:00
parent e4935a24a2
commit 98d5dd1ea0
9 changed files with 118 additions and 29 deletions

View File

@@ -7,10 +7,14 @@ const thingsImage = useTemplateRef("thingsImage");
useRender((ctx) => {
if (!backgroundImage.value || !thingsImage.value) return;
ctx.globalAlpha = store.isIntro ? store.intro.stage1Opacity : 1;
ctx.globalAlpha = store.isIntro
? store.intro.stage1Opacity
: store.outro.stage2Opacity;
ctx.drawImage(backgroundImage.value, 0, 0);
ctx.globalAlpha = store.isIntro ? store.intro.stage3Opacity : 1;
ctx.globalAlpha = store.isIntro
? store.intro.stage3Opacity
: store.outro.stage1Opacity;
ctx.drawImage(thingsImage.value, 0, 0);
});
</script>