Edit: px_loader2.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 id="circularG" 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 px-3x"><div></div><div></div><div></div><div></div><div></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,.px-loader>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.px-loader{display:block;font-size:0} .px-loader>div {display:inline-block;float:none; background-color:<?php echo esc_attr($divi_pxpre_preloader_color); ?>;border:0 solid <?php echo esc_attr($divi_pxpre_preloader_color); ?>;} .px-loader{width:16px;height:16px} .px-loader>div{position:absolute;top:0;left:-100%;display:block;width:100%;height:100%;border-radius:100%;opacity:.5;-webkit-animation:2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-position,2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-size;-moz-animation:2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-position,2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-size;-o-animation:2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-position,2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-size;animation:2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-position,2.5s cubic-bezier(.25,0,.75,1) infinite px-ball-circus-size} .px-loader>div:first-child{-webkit-animation-delay:0s,-.5s;-moz-animation-delay:0s,-.5s;-o-animation-delay:0s,-.5s;animation-delay:0s,-.5s} .px-loader>div:nth-child(2){-webkit-animation-delay:-.5s,-1s;-moz-animation-delay:-.5s,-1s;-o-animation-delay:-.5s,-1s;animation-delay:-.5s,-1s} .px-loader>div:nth-child(3){-webkit-animation-delay:-1s,-1.5s;-moz-animation-delay:-1s,-1.5s;-o-animation-delay:-1s,-1.5s;animation-delay:-1s,-1.5s} .px-loader>div:nth-child(4){-webkit-animation-delay:-1.5s,-2s;-moz-animation-delay:-1.5s,-2s;-o-animation-delay:-1.5s,-2s;animation-delay:-1.5s,-2s} .px-loader>div:nth-child(5){-webkit-animation-delay:-2s,-2.5s;-moz-animation-delay:-2s,-2.5s;-o-animation-delay:-2s,-2.5s;animation-delay:-2s,-2.5s} .px-loader.px-sm,.px-loader.px-sm>div{width:8px;height:8px} .px-loader.px-2x,.px-loader.px-2x>div{width:32px;height:32px} .px-loader.px-2x,.px-loader.px-3x{left:0;top:0;right:0;margin:auto;bottom:0;position:absolute} .px-loader.px-3x,.px-loader.px-3x>div{width:48px;height:48px} @-webkit-keyframes px-ball-circus-position{50%{left:100%}} @-moz-keyframes px-ball-circus-position{50%{left:100%}} @-o-keyframes px-ball-circus-position{50%{left:100%}} @keyframes px-ball-circus-position{50%{left:100%}} @-webkit-keyframes px-ball-circus-size{50%{-webkit-transform:scale(.3,.3);transform:scale(.3,.3)}} @-moz-keyframes px-ball-circus-size{50%{-moz-transform:scale(.3,.3);transform:scale(.3,.3)}} @-o-keyframes px-ball-circus-size{50%{-o-transform:scale(.3,.3);transform:scale(.3,.3)}} @keyframes px-ball-circus-size{50%{-webkit-transform:scale(.3,.3);-moz-transform:scale(.3,.3);-o-transform:scale(.3,.3);transform:scale(.3,.3)}} </style>
Save
Back