Repository navigation
Examples revamp - #113
Examples revamp#113
Conversation
437c814 to
763afbc
Compare
cdata
left a comment
There was a problem hiding this comment.
Some minor feedback, otherwise looks great!
| <template> | ||
| <model-viewer id="toggle-image" backgroud-color="#ff0077" src="assets/DamagedHelmet/DamagedHelmet.gltf" controls auto-rotate></model-viewer> | ||
| <script> | ||
| const images = ['assets/equirectangular.png', 'does-not-exist.png', '']; |
There was a problem hiding this comment.
It is broken!! Filing follow ups
| $('#reveal').addEventListener('load', e => { | ||
| e.target.style.border = '2px solid red'; | ||
| }, { once: true }); | ||
| </script> |
There was a problem hiding this comment.
Did you intend to leave this script in there? Maybe add a comment if it is intentional, to explain its relevance to the example? Otherwise users just skimming might mistake it as a necessary part of the loading features.
There was a problem hiding this comment.
Yeah I did, to expose the loading status -- I'll add comments indicating that it's only for illustrative purposes
| <h2>With glTF model</h2> | ||
| <template> | ||
| <model-viewer | ||
| background-color='#db3236'; |
There was a problem hiding this comment.
Looks like you dropped a CSS property in here and it sort of worked ;P remove the ; and probably better to use consistent quotation marks. Same for several other examples in this file.
|
|
||
| </div> | ||
| <demo-snippet> | ||
| <h2>Cycling different models</h2> |
| <div id="container"> | ||
| <h1><model-viewer> - Multiple Canvases</h1> | ||
| <p class="desc">This page tests many models on the same page.</p> | ||
| <h1><model-viewer> - Multiple Elements</h1> |
| </head> | ||
| <body> | ||
| <div id="container"> | ||
| <h1><model-viewer> - Physically Based Rendering Materials</h1> |
…e demo-snippet for nicer examples, lazy load bandwidth-heavy pages, and add more scripting interaction in tests. Fixes #85
763afbc to
d6fd9b2
Compare



Clean up and standardize the examples, remove unused fonts/styles, use demo-snippet for nicer examples, lazy load bandwidth-heavy pages, and add more scripting interaction in tests. Fixes #85
Details: