-
-
-
-
-
- {{
- [
- author.displayName.charAt(0).toUpperCase(),
- author.displayName.charAt(1).toUpperCase(),
- ].join('')
- }}
-
-
+
+
+
+
+
+
+ {{
+ [
+ author.displayName.charAt(0).toUpperCase(),
+ author.displayName.charAt(1).toUpperCase(),
+ ].join('')
+ }}
+
+
-
-
- {{ author.displayName }}
-
-
-
-
-
+
+
+
diff --git a/docs/.vitepress/theme/theme-animations.css b/docs/.vitepress/theme/theme-animations.css
index acc2bcf18..9dee5210e 100644
--- a/docs/.vitepress/theme/theme-animations.css
+++ b/docs/.vitepress/theme/theme-animations.css
@@ -1,9 +1,53 @@
.fade-enter-active,
.fade-leave-active {
- transition: opacity 0.15s ease-in-out;
+ transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
+}
+
+.fade-enter-from {
+ opacity: 0;
+ transform: translateY(0.5rem);
}
-.fade-enter-from,
.fade-leave-to {
opacity: 0;
+ transform: translateY(-0.5rem);
+}
+
+/* Search dialog close: reverse of the open FLIP morph (--morph-* set in
+ SearchTrigger.vue); reka-ui's Presence waits for these animations. */
+.search-overlay[data-state='closed'] {
+ animation: search-fade-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
+}
+
+.search-dialog[data-state='closed'] {
+ animation: search-morph-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
+}
+
+@keyframes search-fade-out {
+ from { opacity: var(--morph-from-opacity, 1); }
+ to { opacity: 0; }
+}
+
+/* The `from` frame starts from the snapshot SearchTrigger.vue wrote before
+ cancelling the opening animation, so a mid-flight close does not flash the
+ full visible state first. */
+@keyframes search-morph-out {
+ from {
+ transform: var(--morph-from-transform, none);
+ opacity: var(--morph-from-opacity, 1);
+ }
+ to {
+ transform: translate(var(--morph-x, 0px), var(--morph-y, 0px))
+ scale(var(--morph-sx, 1), var(--morph-sy, 1));
+ opacity: 0;
+ }
+}
+
+/* Honor the user's reduced-motion preference for the route transition
+ (Docs.vue also keeps its transition name empty in that case). */
+@media (prefers-reduced-motion: reduce) {
+ .fade-enter-active,
+ .fade-leave-active {
+ transition: none;
+ }
}
diff --git a/docs/content/en/docs/contributing/design-guidelines/resources.md b/docs/content/en/docs/contributing/design-guidelines/resources.md
index 7aa95065f..89f4a791f 100644
--- a/docs/content/en/docs/contributing/design-guidelines/resources.md
+++ b/docs/content/en/docs/contributing/design-guidelines/resources.md
@@ -7,7 +7,7 @@ description: Resources for referencing and taking inspiration from
One of the greatest CSS stage transition author I know is **[yui540](https://yui540.com/)**, he/she designed so many other stunning looking ACG websites, and the most famous one was [臆病な魔女](https://cowardly-witch.netlify.app/) (source code can be found under [yui540](https://github.com/yui540?tab=repositories)).
-To achieve the similar transition effect like the above, you may reference to this repository [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations), it has a [live demo](https://yui540.github.io/css-animations/2025-02-25/transitions/) you can play around too.
+To achieve the similar transition effect like the above, you may reference to this repository [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations).
### [Nihe Works](https://nihe.work/)
diff --git a/docs/content/ja/docs/contributing/design-guidelines/resources.md b/docs/content/ja/docs/contributing/design-guidelines/resources.md
index 74d852a25..fd5295432 100644
--- a/docs/content/ja/docs/contributing/design-guidelines/resources.md
+++ b/docs/content/ja/docs/contributing/design-guidelines/resources.md
@@ -7,7 +7,7 @@ description: 参照やインスピレーションを得るためのリソース
私が知る限り、最も素晴らしい CSS ステージ遷移の作者の一人は **[yui540](https://yui540.com/)** です。彼/彼女は他にも多くの素晴らしい見た目の ACG ウェブサイトをデザインしており、最も有名なものは [臆病な魔女](https://cowardly-witch.netlify.app/) でした (ソースコードは [yui540](https://github.com/yui540?tab=repositories) で見つけることができます)。
-上記のような同様の遷移効果を実現するには、このリポジトリ [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations) を参照してください。遊べる [ライブデモ](https://yui540.github.io/css-animations/2025-02-25/transitions/) もあります。
+上記のような同様の遷移効果を実現するには、このリポジトリ [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations) を参照してください。
### [Nihe Works](https://nihe.work/)
diff --git a/docs/content/ko/docs/contributing/design-guidelines/resources.md b/docs/content/ko/docs/contributing/design-guidelines/resources.md
index d52e9bf4d..5c6b1f958 100644
--- a/docs/content/ko/docs/contributing/design-guidelines/resources.md
+++ b/docs/content/ko/docs/contributing/design-guidelines/resources.md
@@ -7,7 +7,7 @@ description: 참고하고 영감을 얻을 수 있는 자료들
제가 아는 최고의 CSS 화면 전환 제작자 중 한 명은 **[yui540](https://yui540.com/)** 입니다. 눈부신 ACG 웹사이트를 정말 많이 디자인했고, 그중 가장 유명한 작품은 [臆病な魔女](https://cowardly-witch.netlify.app/) 입니다 (소스 코드는 [yui540](https://github.com/yui540?tab=repositories) 에서 찾아볼 수 있습니다).
-위와 비슷한 전환 효과를 구현하고 싶다면 [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations) 저장소를 참고하세요. 직접 만져볼 수 있는 [라이브 데모](https://yui540.github.io/css-animations/2025-02-25/transitions/) 도 있습니다.
+위와 비슷한 전환 효과를 구현하고 싶다면 [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations) 저장소를 참고하세요.
### [Nihe Works](https://nihe.work/)
diff --git a/docs/content/public/_redirects b/docs/content/public/_redirects
index be165f567..60ddcbbc9 100644
--- a/docs/content/public/_redirects
+++ b/docs/content/public/_redirects
@@ -3,4 +3,6 @@
/* /zh-Hans/:splat 301 Language=zh-CN
/* /ko/:splat 301 Language=ko
/* /ko/:splat 301 Language=ko-KR
+/* /ja/:splat 301 Language=ja
+/* /ja/:splat 301 Language=ja-JP
/* /en/:splat 301
diff --git a/docs/content/zh-Hans/docs/contributing/design-guidelines/resources.md b/docs/content/zh-Hans/docs/contributing/design-guidelines/resources.md
index 01b45e4ca..3ffa61ca9 100644
--- a/docs/content/zh-Hans/docs/contributing/design-guidelines/resources.md
+++ b/docs/content/zh-Hans/docs/contributing/design-guidelines/resources.md
@@ -7,7 +7,7 @@ description: 用于参考和获取灵感的资源
我所知道的最伟大的 CSS 场景过渡效果作者之一是 **[yui540](https://yui540.com/)**,他/她设计了许多其他外观惊艳的 ACG 网站,其中最著名的是 [臆病な魔女](https://cowardly-witch.netlify.app/)(源代码可以在 [yui540](https://github.com/yui540?tab=repositories) 下找到)。
-要实现类似上述的过渡效果,您可以参考这个仓库 [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations),它还有一个 [在线演示](https://yui540.github.io/css-animations/2025-02-25/transitions/) 供您试玩。
+要实现类似上述的过渡效果,您可以参考这个仓库 [yui540/css-animations: 俺流CSSアニメーション](https://github.com/yui540/css-animations)
### [Nihe Works](https://nihe.work/)