Skip to content

NewsTicker is a jQuery plugin which allows you to create a scrolling news ticker.

Notifications You must be signed in to change notification settings

jwilsson/NewsTicker

Repository files navigation

jQuery NewsTicker 1.2.1

NewsTicker is a little plugin which allows you to create a scrolling news ticker.

http://jonathanwilsson.com/projects/jquery-newsticker/

Features

  • Custom easings
  • Multiple tickers on one page.
  • Scroll the content up- or downwards.
  • Small, 591 bytes (< 1kB) minified and gzipped.

Options

  • direction (Deafult "down") string The direction to scroll in.
  • easing (Default "swing") string Name of a custom easing. For example via the jQuery Easing plugin.
  • interval (Default 5000) int Time in milliseconds before next item is shown.
  • pauseOnHover (Default true) boolean Whether to pause the scrolling on hover.
  • speed (Default 800) int Animation time in milliseconds. Setting this option to 0 will disable animation.
  • startSlide (Default 1) int Number of the starting slide. Starting from 1.

Minimum required jQuery version is 1.4.0.

License

Free to use and abuse under the MIT license.

Changelog

1.2.1

  • Added support for custom easings.
  • Added the ability to set the starting slide.
  • Restructured the CSS to help with the setup of NewsTicker.

1.2

  • Rewrote the whole script.
  • Added the "direction" option to control the slide direction.
  • Added support for multiple tickers on one page.
  • Stripped down the Copyright notice in the JavaScript file.

1.1.1

  • Fixed a bug where the ticker would run even if there's only one item.
  • Removed the ID dependency. You're now free to use any selector (with or without an ID).

1.1

  • Improved accessibility when JavaScript is disabled.
  • Added option to control the speed of the animation.
  • Added option to pause the ticker on hover.
  • Code improvements.

1.0.3

  • Changed setInterval to setTimeout.

1.0.2

  • Rewrote bits of the code to perform better.

1.0.1

  • Added a option for the interval.
  • Removed the hardcoding of marginTop when sliding. It now pulls the value from the height of the ticker.

1.0

  • Initial release.

Copyright

Copyright 2011 Jonathan Wilsson

About

NewsTicker is a jQuery plugin which allows you to create a scrolling news ticker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published