ViewTransition: skipTransition() メソッド
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
skipTransition()
は ViewTransition
インターフェイスのメソッドで、ビュー遷移のアニメーション部分をスキップしますが、 DOM を更新する document.startViewTransition()
コールバックの実行はスキップしません。
構文
js
skipTransition()
引数
なし。
返値
undefined
です。
例
js
// 新しいビュー遷移を開始
const transition = document.startViewTransition(() => displayNewImage());
// アニメーションをスキップし、DOM を更新する
transition.skipTransition();
仕様書
Specification |
---|
CSS View Transitions Module Level 1 # dom-viewtransition-skiptransition |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
skipTransition |
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.