<body>
    <div class="model">
        <div id="container3d_replace"></div>
        <div class="loadingContent" id="loadingContent">
            Loading 3D Model
            <div class="loading">
                <div id="loadingBar" class="bar"></div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.threedium.co.uk/deviceCheck/v1.0/script.js"></script>
    <script src="https://distcdn.unlimited3d.com/pres/v/2.5.0/unlimited3d.min.js"></script>
body, html {
    margin:0;
    overflow: hidden;
    font-size: 16px;
}

img {
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: top center;
}


.objCover {
    object-fit: cover;
}

.loadingContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #000;
    display: flex;
    flex-direction: column;
}

.loading {
    width: 270px;
    height: 8px;
    border-radius: 6.5px;
    background-color: #fff;
    margin-bottom: 11px;
}

.loading .bar {
    position: absolute;
    height: 8px;
    width: 0;
    border-radius: 6.5px;
    background-color: rgb(74, 144, 226);
    margin-top: 5px;
}

.model,
#container3d_replace {
    width: 100vw;
    height: 100vh;
}

@media (max-width: 1399px) {
	html, body {
		font-size: 15px;
    }
}

@media (max-width: 1199px) {
	html, body {
		font-size: 14px;
    } 
}

@media (max-width: 991px) {
	html, body {
		font-size: 13px;
    }    
}

@media (max-width: 767px) {
	html, body {
		font-size: 12px;
    }
}

@media (max-width: 575px) {
    html, body {
		font-size: 10px;
    }
}

@media (max-width: 360px) {
    
}
var options = {    
    distID: 'latest',
    solution3DName: 'shower-oil-devdocs',
    projectName: 'documentation-examples',
    solution3DID:  '55757',
    containerID: 'container3d_replace',

    onLoadingChanged: function(loading) {
        loadingBar.style.width = loading.progress + "%";
    }
};

Unlimited3D.init(options, {}, function(error, status){
    if (error || !status) {
        console.log(error);

        return;
    }

    loadingContent.style.display = "none";  
});
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.