Textplayer banner
gwendall gwendall

Textplayer

Development community

Description

A jquery plugin to simulate live text typing.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

#[textplayer.js](http://gwendall.github.com/) (a jquery plugin to simulate live text typing)

textplayer.js lets you easily simulate live typing of a text.

[Check a live demo here](http://gwendall.github.com/)

##Basic installation

  1. Insert the jquery and jquery UI plugins.

  1. Create a container with the "data-text" attribute set to the value you want to be typed.
  1. Indicate to javascript where the text container is:
$('.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!

[@gwendall](https://twitter.com/gwendall)