ViewTransition: updateCallbackDone プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
updateCallbackDone
は ViewTransition
インターフェイスの読み取り専用のプロパティで、 document.startViewTransition()
のコールバックが返すプロミスが履行されると履行され、拒否されると拒否されるプロミス (Promise
) です。
updateCallbackDone
は、ビュー遷移のアニメーションの成否を気にせず、 DOM が更新されたかどうか、いつ更新されたかを知りたい場合に有益です。
値
プロミスです。
例
js
// 新しいビュー遷移を開始
const transition = document.startViewTransition(() => displayNewImage());
transition.updateCallbackDone.then(() => {
// 正常に更新された DOM に応答
});
有用な例は、 Transitions as an enhancement を参照してください。
仕様書
Specification |
---|
CSS View Transitions Module Level 1 # dom-viewtransition-updatecallbackdone |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
updateCallbackDone |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.