]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merge remote-tracking branch 'cadecairos/t551' into develop
authorJon Buckley <jon@jbuckley.ca>
Wed, 15 Jun 2011 18:58:29 +0000 (14:58 -0400)
committerJon Buckley <jon@jbuckley.ca>
Wed, 15 Jun 2011 18:58:29 +0000 (14:58 -0400)
1  2 
plugins/flickr/popcorn.flickr.js
plugins/subtitle/popcorn.subtitle.js
plugins/wordriver/popcorn.wordriver.js

Simple merge
Simple merge
index 370993b11ffd0c451d69767a341f42288f9b719a,aec6cea49595a19a6b2141b43339760a534f14b3..640f8cf2eca830a16ca9896702062ecbb06e8e04
    // 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 ) {