fix: reset store + animate intro on mount, and fix wrong opacity/positions
This commit is contained in:
@@ -56,12 +56,16 @@ useRender((ctx) => {
|
||||
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage1Opacity
|
||||
: store.outro.stage1Opacity;
|
||||
: store.isOutro
|
||||
? store.outro.stage1Opacity
|
||||
: 1;
|
||||
ctx.drawImage(clockImage.value, 13, 45);
|
||||
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage1Opacity
|
||||
: store.outro.stage2Opacity;
|
||||
: store.isOutro
|
||||
? store.outro.stage2Opacity
|
||||
: 1;
|
||||
const now = new Date();
|
||||
|
||||
const renderHand = (
|
||||
|
||||
Reference in New Issue
Block a user