Open Schweinepriester opened 2 years ago
The new Github repo for this element proposal is https://github.com/immersive-web/model-element. And draft spec: https://immersive-web.github.io/model-element/
For clarity, <model>
is currently in Safari Technology Preview, behind a feature flag.
I'd like to very much endorse the addition of a page for the <model>
element.
Similar to the img
, audio
, and video
elements, the model
element provides a way to embed 3D models into a web page.
This code example demonstrates how a .usdz
file can be shown on a webpage, with video files as fallbacks. The .usdz
file is a format for 3D geometric data.
<model style="width: 400px; height: 300px">
<source src="assets/example.usdz" type="model/vnd.usdz+zip">
<picture>
<source src="animated-version.mp4" type="video/mp4">
<source src="animated-version.webp" type="image/webp">
<img src="animated-version.gif"/>
</picture>
</model>
@Schweinepriester I'd appreciate it if you could take a look at my attempt to create a PR, and fix it. https://github.com/Fyrd/caniuse/pull/6228
https://developer.apple.com/documentation/safari-release-notes/safari-17-release-notes
Added experimental support for the
element. (100595523)
I ended up here after seeing <model>
added to Safari in macOS Sonoma, but couldn't find anything on caniuse.
It'd be great to keep an eye on this as support rolls out more widely. Maybe @jensimmons can re-open the PR? Thanks!
https://github.com/WebKit/explainers/tree/main/model
Since it's being added to Safari TP… https://webkit.org/blog/12156/release-notes-for-safari-technology-preview-137/: