Skip to content

Instantly share code, notes, and snippets.

Created July 3, 2014 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4ace1c015779ab6d7997 to your computer and use it in GitHub Desktop.
Save anonymous/4ace1c015779ab6d7997 to your computer and use it in GitHub Desktop.
A Pen by Rafi Benkual.
<button type="Submit" class="button postfix "><span class="button-content">Submit</span></button>
$('button').on('click', function(event){
event.preventDefault();
$(this)
.blur()
.addClass('is-submitted')
.find('.button-content')
.text('Got it, thanks!');
});
$(document).foundation();
button:active,
button.is-submitted,
button.is-submitted:hover,
button.is-submitted:active {
background: #27ae60;
outline: 0;
}
.button {
height: 6rem;
width:20rem;
font-size:2rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment