Last active
March 9, 2019 17:09
-
-
Save New0/2f8203671270bedd4dcb87a0214160f4 to your computer and use it in GitHub Desktop.
Change Direct Stripe spinner animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Custom Direct Stripe spinner animation */ | |
add_filter( 'direct_stripe_processing_transaction_spinner', function( $html, $begin, $end, $text, $dots, $instance){ | |
return '<div id="loadingDS-' . $instance . '" class="loadingDS-container loader" style="display:none;"></div>'; | |
}, 10, 6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* insert this styles in theme stylesheet or via admij at Appearance -> Customize -> Additional CSS */ | |
.loader { | |
border: 16px solid #f3f3f3; /* Light grey */ | |
border-top: 16px solid #3498db; /* Blue */ | |
border-radius: 50%; | |
width: 120px; | |
height: 120px; | |
animation: spin 2s linear infinite; | |
margin-top: -5em !important; | |
} | |
@keyframes spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment