feat(contact): animate outro

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

View File

@@ -7,10 +7,10 @@ const contactBackgroundImage = useTemplateRef("contactBackgroundImage");
useRender((ctx) => {
if (!homeBackgroundImage.value || !contactBackgroundImage.value) return;
if (store.isIntro) {
ctx.drawImage(homeBackgroundImage.value, 0, 0);
ctx.globalAlpha = store.intro.stage2Opacity;
}
ctx.drawImage(homeBackgroundImage.value, 0, 0);
ctx.globalAlpha = store.isIntro
? store.intro.stage2Opacity
: store.outro.stage3Opacity;
ctx.drawImage(contactBackgroundImage.value, 0, 0);
});