Preloader Plus elementor code example
Example: adding a preloader in elementor
<div class="loader" ></div>
<script>
document.addEventListener('DOMContentLoaded', function() {
jQuery(function($){
$('.loader').fadeOut('slow');
}); });
</script>
<style>
.loader {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url('https://elementorcodes.b-cdn.net/wp-content/uploads/images/loader.svg') 50% 50% no-repeat #fff;
}
.elementor-editor-active .loader{
display: none;
}
</style>