Skip to content

Instantly share code, notes, and snippets.

View offroadkev's full-sized avatar
😎

Kev offroadkev

😎
  • Las Vegas, Nevada
View GitHub Profile
@offroadkev
offroadkev / functions.php
Created July 20, 2018 22:05
Change Gravity Forms Spinner to CSS Spinner
// Changes Gravity Forms Ajax Spinner (next, back, submit) to a transparent image
// this allows you to target the css and create a pure css spinner like the one used below in the style.css file of this gist.
add_filter( 'gform_ajax_spinner_url', 'spinner_url', 10, 2 );
function spinner_url( $image_src, $form ) {
return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder
}
@offroadkev
offroadkev / vk-modal.css
Created August 17, 2018 20:10
Simple, Minimalist Modal Box w/Slide-In Effect
.vk-modal--overlay {
display: block;
z-index: -1;
position: fixed;
top: 100%;
left: 0;
width: 100vw;
height: 100vh;
/* background-color: rgba(252, 124, 86, 0.7); */
background-color: rgba(17, 158, 230, 0.7);