Placeholdem: Placeholder Caret Animation
Mar 04, 2014
in Forms
2903 views
Download
User Rating: 0/5 ( 0 votes)
Placeholdem is a JavaScript plugin that animates placeholder carets on inputs and textareas. The placeholder value will incrementally delete on focus, and restore on blur.
Use It
<!-- add placeholder to input or textarea --/>
<input name="fieldname" placeholder="Placeholder Value" />
// run Placeholdem on all elements with placeholders
Placeholdem( document.querySelectorAll( '[placeholder]' ) );