fix: reset store + animate intro on mount, and fix wrong opacity/positions

This commit is contained in:
2025-11-17 01:22:13 +01:00
parent cde4b991d7
commit 1591f315e1
9 changed files with 34 additions and 16 deletions

View File

@@ -46,7 +46,8 @@ const getButtonOffset = (button: ButtonType) => {
const getOpacity = (button?: ButtonType) => {
if (store.isIntro) return store.intro.stage1Opacity;
if (selectedButton.value === button) return 1;
return store.outro.stage1Opacity;
if (store.isOutro) return store.outro.stage1Opacity;
return 1;
};
</script>