A jquery plugin to simulate live text typing.
#textplayer.js (a jquery plugin to simulate live text typing)
textplayer.js lets you easily simulate live typing of a text.
##Basic installation
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/bootstrap UI/js/jquery-ui-1.8.16.custom.min.js"></script>
<div class="foobar" data-text="that's a nice text i'm typing right now."></div>
$('.foobar').textplayer();
That's it!
##Options
You can customize the behavior of your text with custom buttons, delays between each character typed and a flashing cursor (in progress):
$(".foobar").textplayer({
autoPlay: false, // default: true
btnPlay: "#play", // default: null
btnPause: "#pause", // default: null
btnStop: "#stop", // default: null
slider: "#slider", // default: null
delay: 40, // default: 100
cursor: false // default: false
});
##Testing
Tested and works fine on Chrome 17.0.963.79, Safari 5.0.5 and Firefox 10.0.2.
##Contributing
I just started this project a few hours ago so it may definitely need improvements. Feel free to get in touch via Github/Twitter for suggestions or just start submitting patches!
##Follow me!