Add page transition
This commit is contained in:
parent
badb9c3990
commit
4c1f566855
3 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,15 @@
|
||||||
body {
|
body {
|
||||||
font-family: "Alata", sans-serif;
|
font-family: "Alata", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-enter-active, .page-leave-active {
|
||||||
|
transition: 500ms ease opacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-enter, .page-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-enter-to, .page-leave {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
|
@ -102,6 +102,8 @@ export class BackgroundCanvas {
|
||||||
// eslint-disable-next-line unicorn/prevent-abbreviations
|
// eslint-disable-next-line unicorn/prevent-abbreviations
|
||||||
const ctx = this._ctx;
|
const ctx = this._ctx;
|
||||||
|
|
||||||
|
if (ctx === null) return;
|
||||||
|
|
||||||
ctx.clearRect(0, 0, this.width, this.height);
|
ctx.clearRect(0, 0, this.width, this.height);
|
||||||
|
|
||||||
for (const line of this._lines) {
|
for (const line of this._lines) {
|
||||||
|
|
|
@ -19,6 +19,8 @@ export default {
|
||||||
** Global CSS
|
** Global CSS
|
||||||
*/
|
*/
|
||||||
css: ["@/assets/global.scss"],
|
css: ["@/assets/global.scss"],
|
||||||
|
|
||||||
|
layoutTransition: "page",
|
||||||
/*
|
/*
|
||||||
** Plugins to load before mounting the App
|
** Plugins to load before mounting the App
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue