Skip to content

Instantly share code, notes, and snippets.

@New0
Last active March 9, 2019 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save New0/2f8203671270bedd4dcb87a0214160f4 to your computer and use it in GitHub Desktop.
Save New0/2f8203671270bedd4dcb87a0214160f4 to your computer and use it in GitHub Desktop.
Change Direct Stripe spinner animation
<?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);
/* 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