This donation button toggles between 2 view states via CSS and the slide-down effect is powered by some simple jQuery.
The second function appends the "amount" query string parameter and the value of your selected radio button to the end of the destination page URL upon a "faux" form submission.
This can be customized for all types of input fields.
A Pen by Mark Hillard on CodePen.