Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 393 Bytes
I was watching the Deus Ex Human Revolution end credts and thought the text fill they were using was cool.
http://www.youtube.com/watch?v=PMMcd6-D4x8
Here is my version of it. It should work on any div or span that has no child elements.
TODO:
- Make it fill in constant time.
- Add more "cool chars"
Useage:
$('#fillme').coolFill("text");
Demo:
http://jsfiddle.net/reconbot/2qNx4/12/