このページの実装

HTML

                
                    <div id="VRM-canvas"></div>
                    <script type="module">
                        import { VRMViewer } from "/js/VRMViewer.js";

                        const vrmViewer = new VRMViewer({
                            canvasId: "VRM-canvas",
                        });
                        vrmViewer.animation({
                            vrmPath: "/models/sample.vrm",
                        });
                    </script>
                
            

CSS

                
                    #VRM-canvas {
                        width: 100%;
                        max-width: 600px;
                        height: 600px;
                    }