feat(intro): adjust intro timing and set booted to false by default
This commit is contained in:
@@ -45,7 +45,7 @@ export const useAppStore = defineStore("app", {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
ready: false,
|
ready: false,
|
||||||
booted: true,
|
booted: false,
|
||||||
settings,
|
settings,
|
||||||
previousScreen: "home" as AppScreen,
|
previousScreen: "home" as AppScreen,
|
||||||
screen: "home" as AppScreen,
|
screen: "home" as AppScreen,
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ export const useIntroStore = defineStore("intro", {
|
|||||||
|
|
||||||
gsap
|
gsap
|
||||||
.timeline()
|
.timeline()
|
||||||
.to({}, { duration: 2 })
|
|
||||||
.to(
|
.to(
|
||||||
this.intro,
|
this.intro,
|
||||||
{
|
{
|
||||||
@@ -34,7 +33,7 @@ export const useIntroStore = defineStore("intro", {
|
|||||||
duration: 0.1,
|
duration: 0.1,
|
||||||
ease: "none",
|
ease: "none",
|
||||||
},
|
},
|
||||||
3,
|
4.1,
|
||||||
)
|
)
|
||||||
.to(
|
.to(
|
||||||
this.intro,
|
this.intro,
|
||||||
@@ -43,11 +42,15 @@ export const useIntroStore = defineStore("intro", {
|
|||||||
duration: logoDuration,
|
duration: logoDuration,
|
||||||
ease: "steps(" + (totalFrames - 1) + ")",
|
ease: "steps(" + (totalFrames - 1) + ")",
|
||||||
},
|
},
|
||||||
3,
|
4.1,
|
||||||
)
|
)
|
||||||
.call(() => {
|
.call(
|
||||||
|
() => {
|
||||||
this.isIntro = false;
|
this.isIntro = false;
|
||||||
});
|
},
|
||||||
|
[],
|
||||||
|
4.1,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
animateOutro() {
|
animateOutro() {
|
||||||
|
|||||||
Reference in New Issue
Block a user