Skip to content

enhance(frontend): 複雑なCSSアニメーションをWeb Animations APIに置き換え - #18152

Merged
syuilo merged 1 commit into
misskey-dev:developfrom
kakkokari-gtyih:enh-use-web-animations-api
Nov 17, 2026
Merged

syuilo merged 1 commit into
misskey-dev:developfrom
kakkokari-gtyih:enh-use-web-animations-api

Conversation

@kakkokari-gtyih

Copy link
Copy Markdown
Member

What

CSSアニメーションを何とかして使っているような部分を、Web Animations APIに変更してプログラマブルにアニメーションできるように

  • MkAnalogClock: 秒針の59秒→0秒の処理(transitionend待ち、requestAnimationFrame、transitionの一時無効化)をやめ、前の角度から時計回りに進める animate() に置き換え
  • MkDigitalClock: コロンの点滅を transition: 0s のクラス切り替えと setTimeout(30ms) から、秒が変わるたびの animate() 再生に置き換え
  • MkButton: リップルの setTimeout(1ms後に開始、1000ms後に透明化、2000ms後に削除)を animate() にまとめ、finished でDOMから削除するように変更
  • MkPlusOneEffect: setTimeout(10ms) による開始と setTimeout(1100ms) による終了を廃止し、ランダム角度を v-bind() ではなくキーフレームへ直接渡して、finished で end を発火するように
  • MkReactionEffect.vue: MkPlusOneEffect と同様に、setTimeout による開始・終了と v-bind() の角度を animate() と finished に置き換え
  • MkSparkle.vue: CSS変数経由の値渡しと infinite なアニメーションを dur - 100ms で削除する処理を廃止し、粒子ごとに1回だけ再生して finished で削除
  • directives/anim.ts: setTimeout(1ms) でtransitionを起こしてインラインstyleを残す方式から、要素本来のスタイルへ戻る animate() に変更
  • directives/click-anime.ts: バウンスをクラス付け外しと animationend から click 時の animate() に変更
    (子要素からバブリングしてきた animationend でバウンスが途中で止まる不具合も解消)

Why

  • setTimeout によるアニメーション制御を解消するため(パフォーマンス向上)
  • CSS変数経由で値を渡す形でのアニメーション制御を解消するため
  • アニメーションを本来表現したい形により忠実にするため

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the packages/frontend Client side specific issue/PR label Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 3.84615% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 12.82%. Comparing base (c696bf0) to head (fa3dc19).
⚠️ Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
packages/frontend/src/components/MkSparkle.vue 0.00% 9 Missing and 2 partials ⚠️
...kages/frontend/src/components/MkReactionEffect.vue 0.00% 4 Missing and 1 partial ⚠️
packages/frontend/src/directives/click-anime.ts 16.66% 5 Missing ⚠️
packages/frontend/src/components/MkButton.vue 0.00% 3 Missing ⚠️
packages/frontend/src/directives/anim.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #18152      +/-   ##
===========================================
+ Coverage    12.81%   12.82%   +0.01%     
===========================================
  Files          228      228              
  Lines        11181    11179       -2     
  Branches      3699     3701       +2     
===========================================
+ Hits          1433     1434       +1     
+ Misses        7661     7656       -5     
- Partials      2087     2089       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

🖥 Frontend Diagnostics Report

(No significant changes)

View details

Requests by resource type
Type Requests Encoded bytes
Base Head Δ Base Head Δ
Document 2 2 0 33 KB 33 KB 0 B
Script 146 146 0 2 MB 2 MB $\color{orange}{\text{+814 B}}$
Stylesheet 57 57 0 280 KB 279 KB $\color{green}{\text{-1.6 KB}}$
Fetch 20 20 0 46 KB 46 KB 0 B
Image 10 10 0 254 KB 254 KB 0 B
Font 2 2 0 118 KB 118 KB 0 B
Other 9 9 0 421 KB 421 KB $\color{green}{\text{-1 B}}$
V8 heap snapshot statistics
Metric @ Base @ Head Δ MAD
$\color{gray}{\rule{8pt}{8pt}}$ Total 11 MB
± 21 KB
11 MB
± 2.4 KB
$\text{-9.4 KB}$
$\text{-0.1\%}$
21 KB
$\color{orange}{\rule{8pt}{8pt}}$ Code 2.8 MB 2.8 MB $\text{-11 KB}$ 3.1 KB
$\color{red}{\rule{8pt}{8pt}}$ Strings 1.3 MB 1.3 MB $\text{+660 B}$ 68 B
$\color{cyan}{\rule{8pt}{8pt}}$ JS arrays 112 KB 112 KB $\text{+132 B}$ 92 B
$\color{green}{\rule{8pt}{8pt}}$ Typed arrays 0 B 0 B 0 B 0 B
$\color{yellow}{\rule{8pt}{8pt}}$ System objects 0 B 0 B 0 B 0 B
$\color{violet}{\rule{8pt}{8pt}}$ Other JS objs 2 MB 2 MB $\text{+364 B}$ 1.3 KB
$\color{pink}{\rule{8pt}{8pt}}$ Other non-JS objs 4.9 MB 4.9 MB $\text{+2.4 KB}$ 3 KB

Download representative heap snapshot: base / head

📦 Bundle Stats

Chunk size diff (2 updated, 0 added, 0 removed)
Chunk Base Head Δ Δ (%)
(total) 6 MB 6 MB $\text{+766 B}$ $\text{+0\%}$
src/widgets/WidgetClock.vue ja-JP/gmWUURLNV-DT8cG3Eo.js → ja-JP/gmWUURLNV-N7MxHegz.js
6.9 KB 6.9 KB $\text{+47 B}$ $\color{orange}{\text{+0.7\%}}$
src/_boot_.ts ja-JP/gmWUURLNV-D4NRfFgU.js → ja-JP/gmWUURLNV-CrCi5hac.js
65 KB 65 KB $\text{-46 B}$ $\text{-0.1\%}$
(other generated chunks) 2.1 MB 2.1 MB $\text{+765 B}$ $\text{+0\%}$
Startup chunk size (1 updated, 0 added, 0 removed)
Chunk Base Head Δ Δ (%)
(total) 1 MB 1 MB $\text{+407 B}$ $\text{+0\%}$
src/_boot_.ts ja-JP/gmWUURLNV-D4NRfFgU.js → ja-JP/gmWUURLNV-CrCi5hac.js
65 KB 65 KB $\text{-46 B}$ $\text{-0.1\%}$
(other generated chunks) 718 KB 719 KB $\text{+453 B}$ $\text{+0.1\%}$
(other) 219 KB 219 KB 0 B 0%

Startup chunks are the Vite entry for src/_boot_.ts and its static imports.

Bundles Modules Entries Imports Size
Static Dynamic Rendered Gzip Brotli
Base 474 2,881 22 10,565 339 10 MB 2.8 MB 2.4 MB
Head 474 2,881 22 10,565 339 10 MB 2.8 MB 2.4 MB
Δ 0 0 0 0 0 $\color{orange}{\text{+1.1 KB}}$ $\text{+611 B}$ $\text{+587 B}$
Δ (%) 0% 0% 0% 0% 0% $\text{+0\%}$ $\text{+0\%}$ $\text{+0\%}$

Open treemap HTML

@kakkokari-gtyih
kakkokari-gtyih marked this pull request as ready for review November 17, 2026 11:06
@syuilo
syuilo merged commit 6edd5a4 into misskey-dev:develop Nov 17, 2026
25 of 26 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in [実験中] 管理用 Nov 17, 2026
@syuilo

syuilo commented Nov 17, 2026

Copy link
Copy Markdown
Member

🙏🏻

@kakkokari-gtyih
kakkokari-gtyih deleted the enh-use-web-animations-api branch November 17, 2026 11:08
anatawa12 added a commit to anatawa12/misskey that referenced this pull request Nov 26, 2026
* [skip ci] Update CHANGELOG.md (prepend template)

* fix(backend): チャット履歴の取得時に必要ない情報の取得が行われていた問題を修正 (misskey-dev#18144)

* fix(backend): チャット履歴の取得時に不要な処理が行われていた問題を修正

* Update Changelog

* ✌️

* fix: Windowsで開発環境が起動できない問題を修正 (misskey-dev#18147)

* fix: Windowsで開発環境が起動できない問題を修正

* Update Changelog

* fix(gh): workflowの高速化 (misskey-dev#18138)

* fix: wrong scope in cache slows down ci

* fix: 不要なfetch-depthを削除

* fix: 不要なfetch-depthを削除

* clean up

* fix: 不要なビルドを実行しない

* fix: 本体リポジトリ上のPRで同じワークフローが2回回る問題を修正

* fix

* fix

* Revert "fix: 本体リポジトリ上のPRで同じワークフローが2回回る問題を修正"

This reverts commit 3ea0981.

* Revert "fix"

This reverts commit efc57bd.

* enhance(devcontainer): Node.js と pnpm のバージョンを .node-version / package.json から取得する (misskey-dev#18136)

* enhance(devcontainer): Node.js と pnpm のバージョンを .node-version / package.json から取得する

devcontainer.json に Node.js / pnpm のバージョンを直書きせず、
onCreateCommand で .node-version と package.json の packageManager を読んで導入する。
これにより、バージョン更新時に devcontainer 側の修正が漏れることを防ぐ。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devcontainer): ツールチェーンの導入を updateContentCommand で行う

Codespaces の prebuild 更新時にも .node-version / packageManager の変更に追従させるため。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Revert "fix(devcontainer): ツールチェーンの導入を updateContentCommand で行う"

This reverts commit e23a7d6.

既存コンテナは Rebuild 前提であり、ローカル環境では onCreateCommand と
updateContentCommand の実行タイミングに差がないため、onCreateCommand に戻す。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* enhance(frontend): アンテナのタイムラインページから他のアンテナに切り替えられるように (misskey-dev#18137)

* Update CHANGELOG.md

* fix(frontend): みつけるのリモートのユーザー一覧にローカルのユーザーが表示される問題を修正 (misskey-dev#18159)

* fix(frontend): みつけるのリモートのユーザー一覧にローカルのユーザーが表示される問題を修正

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update CHANGELOG.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* enhance(frontend): URLプレビューを自動展開できるオプションを追加 (misskey-dev#18160)

* enhance(frontend): 複雑なCSSアニメーションをWeb Animations APIに置き換え (misskey-dev#18152)

* enhance(frontend): 画像ビューワーの範囲外タップで閉じられるように (misskey-dev#18031)

* enhance(frontend): close lightbox on background taps

* enhance(frontend): close lightbox on video background taps

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* Bump version to 2026.11.1-alpha.0

* fix(backend): フォロー解除やフォローリクエストの取り消しを行った時に相手サーバー側に反映されないことがある問題を修正 (misskey-dev#18163)

* fix(backend): フォロー解除やフォローリクエストの取り消しを行った時に相手サーバー側に反映されないことがある問題を修正

* Update Changelog

* test(backend): add tests

* fix(frontend): ログイントークン再生成後のログアウトに失敗する問題を修正 (misskey-dev#18162)

* fix(frontend): ログイントークン再生成後のログアウトに失敗する問題を修正 (Elythia-Network/elythia#4207)

Co-Authored-By: しろは <admin@k7a.org>

* Update Changelog

* fix: トークン再生成時はログアウトまでやってしまうように

---------

Co-authored-by: しろは <admin@k7a.org>

* enhance(dev): プルリクエストの正味の変更行数を見てラベルを付与するように (misskey-dev#18084)

* fix(frontend/aiscript): UIコンポーネント生成時のメモリリークを修正 (misskey-dev#18075)

* fix(frontend/aiscript): UIコンポーネント生成時のメモリリークを修正

* Update Changelog

* fix review

* fix reviews

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* fix: connect through an IPv6 HTTP proxy (misskey-dev#18155)

fix: IPv6プロキシのホスト名から角括弧を外して渡す

hpagent が URL.hostname を http.request の host に渡すと、IPv6 の角括弧付きのまま名前解決に失敗する。

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* fix(frontend,backend): handle deletion of the default upload folder (misskey-dev#18151)

* fix(frontend,backend): handle deletion of the default upload folder

Deleting the folder set as the default upload folder left the preference
pointing at the removed folder, so later uploads failed with
INTERNAL_ERROR and no actionable message

- ask for confirmation before deleting the default upload folder and clear
  the preference after the deletion succeeds
- return NO_SUCH_FOLDER instead of INTERNAL_ERROR when an upload targets a
  nonexistent folder and show a localized message on the client
- add a regression test for uploading into a nonexistent folder

Refs misskey-dev#16775

* fix(backend): validate upload folder before duplicate hash check

Move folder lookup before the duplicate md5 early return in
DriveService.addFile so uploads with force=false and a nonexistent
folderId reject with NO_SUCH_FOLDER instead of returning the cached file

- pass optional force flag through uploadFile test helper
- cover both force=true and force=false when uploading to a nonexistent folder

Refs misskey-dev#16775

* fix(frontend): 登録フォームで、直前の値の利用可否チェック結果で状態が上書きされることがある問題を修正 (misskey-dev#18106)

* fix(frontend): 登録フォームで、直前の値の利用可否チェック結果で状態が上書きされることがある問題を修正

* fix

* fix

* Bump version to 2026.11.1-alpha.1

* fix(backend): リストメンバーとstreamの処理を修正 (misskey-dev#18166)

* fix(backend): リストメンバーとstreamの処理を修正

* update changelog

* Update UserListService.ts

* fix reviews

* fix

* fix

* fix

* fix(gh): リリースレビュー依頼のコメントが完全一致でないと反応しない問題を修正 (misskey-dev#18169)

* Merge commit from fork

* fix(backend): check visibility for notes inbox/creation

* fix

* Merge commit from fork

* Bump version to 2026.11.1-beta.0

* fix(backend): 管理者がアイコン/バナーを解除したときにその変更が伝わらない問題を修正 (misskey-dev#18175)

* fix(backend): 管理者がアイコン/バナーを解除したときにその変更が伝わらない問題を修正

* Update Changelog

* fix review

* fix(backend): サーバー管理コマンドが起動直後にエラーで終了する問題を修正 (misskey-dev#18178)

reflect-metadata (CJS) をバンドルすると、ESM の @nestjs/common が行う
`import 'reflect-metadata'` の評価がデコレーター適用より後ろへずれ、
cli.js などで `Reflect.getOwnMetadata is not a function` で落ちていた。
external にして Node 本来の ESM 評価順で読み込ませる。

これにより generate_api_json.js での reflect-metadata の事前 import も不要になったため削除。

Fix misskey-dev#18177

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* chore(config): migrate Renovate config (misskey-dev#18173)

* chore(config): migrate config renovate.json5

* chore(config): restore comments removed by Renovate config migration

Renovate の自動移行で JSON5 のコメントが全削除され、配列の書式も
変わっていたため、develop の renovate.json5 を元に移行分のみを当て直す。

- dependencyDashboardAutoclose -> dependencyDashboard.autoclose
- dependencyDashboardOSVVulnerabilitySummary -> dependencyDashboard.osvVulnerabilitySummary

パース結果は Renovate が生成した内容と同一。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: samunohito <46447427+samunohito@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* deps: update dependencies (misskey-dev#18170)

* deps: update dependencies

* deps: update dependencies

* fix

* fix: rollback vue-tsc to v3.3.11

* Revert "fix"

This reverts commit 9e38322.

* fix: rollback web-push to v3.6.7

* Bump version to 2026.11.1-beta.1

* fix: review fixes for 2026.11.1 (misskey-dev#18181)

* fix(frontend): プレイヤーを表示すべきでない場所でもプレイヤーが表示される問題を修正

* fix(frontend): センシティブなURLではプレイヤーを展開しないように

* fix(frontend): トークンの再発行中にエラーが発生した際に操作不能になる問題を修正

* review fixes

* fix review

* New Crowdin updates (misskey-dev#18171)

* New translations ja-jp.yml (German)

[ci skip]

* New translations ja-jp.yml (Italian)

[ci skip]

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (Persian)

[ci skip]

* New translations ja-jp.yml (Catalan)

[ci skip]

* New translations ja-jp.yml (Italian)

[ci skip]

* New translations ja-jp.yml (Korean)

[ci skip]

* Update CHANGELOG.md

* Bump version to 2026.11.1-rc.0

* perf(backend): register API routes for GET and POST only (misskey-dev#18190)

Co-authored-by: Rei Mizushima <183242690+lqvp@users.noreply.github.com>

* fix(gh): follow-up of misskey-dev#18084 (misskey-dev#18189)

* Bump version to 2026.11.1-rc.1

* Merge commit from fork

* Bump version to 2026.11.1-rc.2

* Update SECURITY.md

* Merge commit from fork

* Merge commit from fork

* New Crowdin updates (misskey-dev#18182)

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (English)

[ci skip]

* New translations ja-jp.yml (Spanish)

[ci skip]

* New translations ja-jp.yml (Indonesian)

[ci skip]

* New translations ja-jp.yml (Indonesian)

[ci skip]

* New translations ja-jp.yml (Chinese Traditional)

[ci skip]

* New translations ja-jp.yml (Italian)

[ci skip]

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (Chinese Traditional)

[ci skip]

* New translations ja-jp.yml (French)

[ci skip]

* New translations ja-jp.yml (French)

[ci skip]

* New translations ja-jp.yml (Italian)

[ci skip]

* Bump version to 2026.11.1-rc.3

* Merge commit from fork

* Merge commit from fork

* Bump version to 2026.11.1-rc.4

* fix parse-untrusted-html

Co-Authored-By: おさむのひと <46447427+samunohito@users.noreply.github.com>

* Release: 2026.11.1

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: 有機酸 <87631398+organic-san@users.noreply.github.com>
Co-authored-by: Syogo-Suganoya <55225064+Syogo-Suganoya@users.noreply.github.com>
Co-authored-by: namiyama <namiyama814@gmail.com>
Co-authored-by: しろは <admin@k7a.org>
Co-authored-by: Ikki Nishihara <b25d025@akita-pu.ac.jp>
Co-authored-by: Asuka <Kayano04@outlook.jp>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rei Mizushima <183242690+lqvp@users.noreply.github.com>
Co-authored-by: mq1 <74494945+chan-mai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/frontend Client side specific issue/PR

Projects

Development

Successfully merging this pull request may close these issues.

2 participants