ViewTransition:skipTransition() 方法
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
ViewTransition
接口的 skipTransition()
方法跳过视图过渡的动画部分,但不跳过更新 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.