Edit: px_loader5.php
<?php $divi_pxpre_preloader_color = et_get_option('divi_PX_pre_preloader_color'); $divi_pxpre_background_color = et_get_option('divi_PX_pre_background_color'); $divi_pxpre_body_opacity = et_get_option('divi_PX_pre_body_opacity'); $divi_pxpre_preloader_images = get_option( 'divi_pxpre_preloader_images') ; if ( $divi_pxpre_preloader_images != '' ){ $divi_pxpre_preloader_images = get_option( 'divi_pxpre_preloader_images' ) ; }else{ $divi_pxpre_preloader_images = 'px_loader1' ; } $divi_PX_pre_display_text_preloader = et_get_option('divi_PX_pre_display_text_preloader','off'); ?> <div class="px-overlay-loader <?php echo esc_attr($divi_pxpre_preloader_images); if ( $divi_PX_pre_display_text_preloader == 'on' ){ echo ' px_text px_text_'.esc_attr($divi_pxpre_preloader_images);}?>"> <div class="px-loader"> <div class="px-dot"></div><div class="px-dot"></div><div class="px-dot"></div><div class="px-dot"></div> </div> <?php if ( $divi_PX_pre_display_text_preloader == 'on' ){ include get_stylesheet_directory() . '/extra-options/preloader/px_text_loader.php'; } ?> </div> <style type="text/css"> .px-overlay-loader {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: <?php echo esc_attr($divi_pxpre_background_color); ?>; opacity: <?php echo esc_attr($divi_pxpre_body_opacity); ?>;z-index: 999999;height: 100%;width: 100%;overflow: hidden !important;margin: auto;} .px-loader{ position: relative; top: 35%; background-repeat: no-repeat; background-position: center; -webkit-background-size: cover; background-size: cover; width: 6.250em; height: 6.250em; margin: 50px auto 0; animation: rotate 2.4s linear infinite; } .px-loader .px-dot{ width: 2.4em; height: 2.4em; margin: auto; border-radius: 100%; position: absolute; } .px-loader .px-dot:nth-child(1){ background: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; top: 0; bottom: 0; left: 0; animation: dotsY 2.4s linear infinite; } .px-loader .px-dot:nth-child(2){ background: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; left: 0; right: 0; top: 0; animation: dotsX 2.4s linear infinite; } .px-loader .px-dot:nth-child(3){ background: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; top: 0; bottom: 0; right: 0; animation: dotsY 2.4s linear infinite; } .px-loader .px-dot:nth-child(4){ background: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; left: 0; right: 0; bottom: 0; animation: dotsX 2.4s linear infinite; } @keyframes rotate{ 0% { transform: rotate( 0 ); } 10% { width: 6.250em; height: 6.250em; } 66% { width: 2.4em; height: 2.4em; } 100%{ transform: rotate(360deg); width: 6.250em; height: 6.250em; } } @keyframes dotsY{ 66% { opacity: .1; width: 2.4em; } 77%{ opacity: 1; width: 0; } } @keyframes dotsX{ 66% { opacity: .1; height: 2.4em; } 77%{ opacity: 1; height: 0; } } </style>
Save
Back