Drupal Technical
[Drupal] How to create a scrolling marquee content in Drupal site?
Are you trying to create a scrolling marquee content programatically in Drupal. Then read on!
jQuery Marquee plugin is your friend in achieving this.
jQuery Marquee plugin is a 4.8Kb minified jQuery plugin to scroll the text like the old traditional marquee.
Usage
HTML
Lorem ipsum dolor sit amet, consectetur adipiscing elit END.
How to apply plugin
/**
* Example of starting a plugin with options.
* I am just passing some of the options in the following example.
* you can also start the plugin using $('.marquee').marquee(); with defaults
*/
$('.marquee').marquee({
//speed in milliseconds of the marquee
duration: 15000,
//gap in pixels between the tickers
gap: 50,
//time in milliseconds before the marquee will start animating
delayBeforeStart: 0,
//'left' or 'right'
direction: 'left',
//true or false - should the marquee be duplicated to show an effect of continues flow
duplicated: true
});
You can find more examples of this in here http://aamirafridi.com/jquery/jquery-marquee-plugin#examples