CSS and SVG recreation of the new Google material design loading spinner.
A Pen by Fran Pérez on CodePen.
CSS and SVG recreation of the new Google material design loading spinner.
A Pen by Fran Pérez on CodePen.
| // Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
| $('[placeholder]').focus(function() { | |
| var input = $(this); | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input = $(this); |