showing results for - "adding a preloader in elementor"
Fabian
17 Jul 2020
1<div class="loader" ></div>
2<script>
3document.addEventListener('DOMContentLoaded', function() {
4jQuery(function($){
5$('.loader').fadeOut('slow');
6}); });
7</script>
8<style>
9.loader {
10position: fixed;
11left: 0px;
12top: 0px;
13width: 100%;
14height: 100%;
15z-index: 9999;
16background: url('https://elementorcodes.b-cdn.net/wp-content/uploads/images/loader.svg') 50% 50% no-repeat #fff; /* Change the #fff here to your background color of choice for the preloader fullscreen section */
17}
18.elementor-editor-active .loader{
19display: none;
20}
21</style>
22