The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 50 more by this user. Created: 06/7/12
Last CDN Push: 06/13/12
Build Tag: gallery-2012.06.13-20-30
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.1
Free for use.
Displays text in a way similar to the credits for The Matrix.
Shows how to instantiate the widget.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.06.13-20-30'
}).use('gallery-matrix-credits', function(Y) {
var mc = new Y.MatrixCredits(
{
width: 400,
height: 400,
charRange: [ 'A', 'Z' ],
textSequence:
[
{ lines: [ 'KEANU REEVES' ] },
{ lines: [ 'LAURENCE FISHBURNE' ] },
{ lines: [ '"THE MATRIX"' ] },
{ lines: [ 'CARRIE-ANNE MOSS' ] },
{ lines: [ 'HUGO WEAVING' ] },
{
intro: [ 'and' ],
lines: [ 'JOE PANTOLIANO' ]
},
{
intro: [ 'Written and Directed by' ],
lines: [ 'THE WACHOWSKI BROTHERS' ]
},
{
intro: [ 'Produced by' ],
lines: [ 'JOEL SILVER' ]
}
]
});
mc.render('#matrix');
});
All code on this site is licensed under the BSD License unless stated otherwise.