<iframe id="api-frame"></iframe>
html,
body {
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: 0;
}
xxxxxxxxxx
const iframe = document.getElementById("api-frame");
const client = new Sketchfab(iframe);
client.init("dGUrytaktlDeNudCEGKk31oTJY", {
autostart: 1,
success: (api) => console.log("Sketchfab API success"),
error: () => console.error("Sketchfab API error")
});
This Pen doesn't use any external CSS resources.