#afbx-pre-loading {
    display: block;
    position: fixed;
    background: white;
    cursor: progress;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999999;
    transition: all .6s ease;
}

#afbx-pre-loading .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #292929;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#afbx-pre-loading.hide {
    opacity: 0;
    height: 0;

}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}