Edit: px_loader4.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-box1 px-loader-inner"></div> <div class="px-box2 px-loader-inner"></div> <div class="px-box3 px-loader-inner"></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_text.px_loader4 .px-loader {top: 35%;} .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: absolute; top: 35%; background-repeat: no-repeat; background-position: center; -webkit-background-size: cover; background-size: cover; width: 112px; height: 112px; margin: 0 auto; position: relative; } .px-loader .px-loader-inner{ border-width: 16px; border-style: solid; border-radius: 5px; box-sizing: border-box; position: absolute; display: block; } .px-loader .px-box1{ width: 112px; height: 48px; margin-top: 64px; margin-left: 0px; border-color:<?php echo esc_attr($divi_pxpre_preloader_color); ?>; border-left-color:<?php echo esc_attr($divi_pxpre_preloader_color); ?>; border-right-color: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; animation: anime1 2.5s 0s forwards ease-in-out infinite; } .px-loader .px-box2{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; border-color: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; border-left-color: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; border-right-color:<?php echo esc_attr($divi_pxpre_preloader_color); ?>; animation: anime2 2.5s 0s forwards ease-in-out infinite; } .px-loader .px-box3{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; border-color: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; border-left-color: <?php echo esc_attr($divi_pxpre_preloader_color); ?>; border-right-color:<?php echo esc_attr($divi_pxpre_preloader_color); ?>; animation: anime3 2.5s 0s forwards ease-in-out infinite; } @keyframes anime1{ 0%{ width: 112px; height: 48px; margin-top: 64px; margin-left: 0px; } 12.5%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 0px; } 25%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 0px; } 37.5%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 0px; } 50%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 0px; } 62.5%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 0px; } 75%{ width: 48px; height: 112px; margin-top: 0px; margin-left: 0px; } 87.5%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; } 100%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; } } @keyframes anime2{ 0%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; } 12.5%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; } 25%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; } 37.5%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 0px; } 50%{ width: 112px; height: 48px; margin-top: 0px; margin-left: 0px; } 62.5%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; } 75%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; } 87.5%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; } 100%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; } } @keyframes anime3{ 0%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; } 12.5%{ width: 48px; height: 48px; margin-top: 0px; margin-left: 64px; } 25%{ width: 48px; height: 112px; margin-top: 0px; margin-left: 64px; } 37.5%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 64px; } 50%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 64px; } 62.5%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 64px; } 75%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 64px; } 87.5%{ width: 48px; height: 48px; margin-top: 64px; margin-left: 64px; } 100%{ width: 112px; height: 48px; margin-top: 64px; margin-left: 0px; } } </style>
Save
Back