+
谁怕?一蓑烟雨任平生
@@ -32,6 +41,7 @@
.major {
@apply opacity-0;
animation: fadeIn 1.5s ease-in-out 3.5s forwards;
+ animation-play-state: paused !important;
}
.poe {
@@ -40,10 +50,15 @@
.poe div {
@apply block m-3 z-10 opacity-20 hover:opacity-100 duration-200;
- animation-fill-mode: forwards;
+ animation-play-state: paused !important;
white-space: nowrap;
}
+.animate .major,
+.animate .poe div {
+ animation-play-state: running !important;
+}
+
@keyframes fadeIn {
0% {
opacity: 0;
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 365e2f1..864b120 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -62,6 +62,7 @@ export default defineNuxtConfig({
'@nuxtjs/web-vitals',
'nuxt-gtag',
'@nuxt/eslint',
+ '@vueuse/nuxt',
],
eslint: {
diff --git a/package.json b/package.json
index b61a8ec..8f84067 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2",
"@vitest/coverage-v8": "^1.4.0",
+ "@vueuse/nuxt": "^10.9.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"consola": "^3.2.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e03c900..8f1ca8d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -29,6 +29,9 @@ importers:
'@vitest/coverage-v8':
specifier: ^1.4.0
version: 1.5.2(vitest@1.5.2(@types/node@20.12.7)(@vitest/ui@1.5.2)(sass@1.75.0)(terser@5.30.4))
+ '@vueuse/nuxt':
+ specifier: ^10.9.0
+ version: 10.9.0(nuxt@3.11.2(@parcel/watcher@2.4.1)(@types/node@20.12.7)(@unocss/reset@0.59.4)(encoding@0.1.13)(eslint@8.57.0)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.16.4))(vue@3.4.25(typescript@5.4.5)))(fuse.js@7.0.0)(ioredis@5.4.1)(meow@12.1.1)(optionator@0.9.3)(rollup@4.16.4)(sass@1.75.0)(terser@5.30.4)(typescript@5.4.5)(unocss@0.59.4(@unocss/webpack@0.59.4(rollup@4.16.4)(webpack@5.91.0))(postcss@8.4.38)(rollup@4.16.4)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)(terser@5.30.4)))(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)(terser@5.30.4))(vue-tsc@1.8.27(typescript@5.4.5))(xml2js@0.6.2))(rollup@4.16.4)(vue@3.4.25(typescript@5.4.5))
class-variance-authority:
specifier: ^0.7.0
version: 0.7.0