Skip to content

jayvin/placeholdem

 
 

Repository files navigation

Placeholdem

Placeholder Caret Animation

  • Version: v1.0.2
  • Date: 2015-02-08

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.

<!-- add placeholder to input or textarea -->
<input name="fieldname" placeholder="Placeholder Value" />
// run Placeholdem on all elements with placeholders
Placeholdem( document.querySelectorAll( '[placeholder]' ) );

Packages

No packages published

Languages

  • CSS 76.8%
  • JavaScript 14.3%
  • HTML 8.9%