From: Jon Buckley Date: Wed, 15 Jun 2011 18:58:29 +0000 (-0400) Subject: Merge remote-tracking branch 'cadecairos/t551' into develop X-Git-Tag: v0.7^2~43 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1e8c9df8659361f90fc8eee836cd73a55cbb3ed0;p=popcorn-js.git Merge remote-tracking branch 'cadecairos/t551' into develop --- 1e8c9df8659361f90fc8eee836cd73a55cbb3ed0 diff --cc plugins/wordriver/popcorn.wordriver.js index 370993b,aec6cea..640f8cf --- a/plugins/wordriver/popcorn.wordriver.js +++ b/plugins/wordriver/popcorn.wordriver.js @@@ -42,20 -42,29 +42,40 @@@ // Garbage collect support test span document.head.removeChild( span ); + /** + * Word River popcorn plug-in + * Displays a string of text, fading it in and out + * while transitioning across the height of the parent container + * for the duration of the instance (duration = end - start) + * + * @param {Object} options + * + * Example: + var p = Popcorn( '#video' ) + .wordriver({ + start: 5, // When to begin the Word River animation + end: 15, // When to finish the Word River animation + text: 'Hello World', // The text you want to be displayed by Word River + target: 'wordRiverDiv', // The target div to append the text to + color: "blue" // The color of the text. (can be Hex value i.e. #FFFFFF ) + } ) + * + */ + Popcorn.plugin( "wordriver" , { - manifest: {}, + manifest: { + about:{ + name: "Popcorn WordRiver Plugin" + }, + options:{ + start : {elem:'input', type:'text', label:'In'}, + end : {elem:'input', type:'text', label:'Out'}, + target : 'wordriver-container', + text : {elem:'input', type:'text', label:'Text'}, + color : {elem:'input', type:'text', label:'Color'} + } + }, _setup: function( options ) {