fixes background image flashing full size when page loads

This commit is contained in:
buttle 2021-10-13 11:43:59 +02:00
parent ae13afa445
commit a0fea7e99c
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ model-viewer {
height: 500px;
outline: none;
background-color: transparent;
visibility: hidden;
}
</style>
@ -68,6 +69,12 @@ model-viewer {
<script type="module" src="/modules/Render3D/asset/vendor/google/model-viewer.js"></script>
<script>
$( document ).ready(function() {
$("model-viewer").css('visibility', 'visible')
});
</script>
<?php
/*
echo $this->inlineScript()