fixes background image flashing full size when page loads
This commit is contained in:
parent
ae13afa445
commit
a0fea7e99c
|
@ -22,6 +22,7 @@ model-viewer {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
outline: none;
|
outline: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -68,6 +69,12 @@ model-viewer {
|
||||||
<script type="module" src="/modules/Render3D/asset/vendor/google/model-viewer.js"></script>
|
<script type="module" src="/modules/Render3D/asset/vendor/google/model-viewer.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( document ).ready(function() {
|
||||||
|
$("model-viewer").css('visibility', 'visible')
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
echo $this->inlineScript()
|
echo $this->inlineScript()
|
||||||
|
|
Loading…
Reference in New Issue