fix: reset store + animate intro on mount, and fix wrong opacity/positions
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user