artpolikarpov/fotorama — pull request #137 by JohnSoutar-ColeAD (2013-10-25 16:04:35+00:00)
Title: Added wordWrap()

wordWrap() will wrap the first x words in each image slide's caption.

Options available for count (# of words to wrap), wrapclass (CSS class
to give to the wrapped phrase) and restclass (CSS class to give to the
rest of the caption).

wrapword: {
count: 1,
wrapclass: 'first-word',
restclass: 'rest'
}

This was helpful when using building Fotorama for the Wordpress plugin. See example screenshot below:
![Screenshot](https://f.cloud.github.com/assets/5681218/1409216/1469ac06-3d8f-11e3-8d0e-32dc18425129.png)