Skip to content

Instantly share code, notes, and snippets.



Last active Mar 9, 2019
What would you like to do?
Change Direct Stripe spinner animation
/* 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);
/* 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
You can’t perform that action at this time.