--- handle: examples canonical: https://maze.digital/webticker/examples/ title: Web Ticker Examples | Using the various webticker options description: A guide showing how you update existing ticker data, stopping the animations, using different ease functions or setting up your ticker with images. --- ##Examples Below are examples of different methods that can be used with the web ticker. ### Example 1: Updating the Ticker Content {#update}
#### HTML The Markup Used for Initializing the Web Ticker ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.html} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #### Starting the Web Ticker The first ticker is running the default options with an exception to the height, which is being set to 75px. $("#webticker-update-example").webTicker({ height:'75px' }); #### Updating the Data The update method is called using the below trigger. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.javascript} $("#update-newsticker1").click(function(){ $("#webticker-update-example").webTicker('update', '
  • Web Ticker v3.0.0 has just been released! And the documentation has become even better!
  • The Web Ticker v3.0.0 commercial license no longer binds you to make your projects open source.
  • An OEM License is also available if your would like to make the WebTicker part of your website builder
  • Maze Digital will now be commercially supporting the Web Ticker
  • ', 'swap', true, false ); }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ### Example 2: Stop/Continue Ticker Scrolling {#stop-cont}
    #### Settings Used The second ticker is using some of the available options; such as having hover-pause disabled, transition set to 'ease' and 'duplicate' set to true. $("#webticker-stop-continue-example").webTicker({ height:'75px', duplicate:true, rssfrequency:0, startEmpty:false, hoverpause:false, transition: "ease" }); #### Methods Used The stop method is called using: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.javascript} $("#stop-newsticker2").click(function(){ $("#webticker-stop-continue-example").webTicker('stop'); }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The continue method is called using: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.javascript} $("#continue-newsticker2").click(function(){ $("#webticker-stop-continue-example").webTicker('cont'); }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ### Example 3: Transition Easing {#transitions}
    #### Methods Used The ease transition method is called using: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.javascript} $("#ease-financeticker").click(function(){ $("#webticker-transition-ease").webTicker('transition', 'ease'); }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The linear transition method is called using: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.javascript} $("#linear-financeticker").click(function(){ $("#webticker-transition-ease").webTicker('transition', 'linear'); }); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ### Example 4: Right-to-left {#right-to-left}
    #### HTML #### Settings Used The ticker can be set to scroll from left to right using the following initializing settings. $("#right-to-left-webticker").webTicker({ height:'75px', direction: 'right' }); ### Example 5: Images {#images}
    #### HTML The fifth ticker includes images instead of plain text. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.html}
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ### Example 6: RSS {#rss} Rss Feeds are automatically supported by the ticker; note that as per javascript cross-domain restrictions you can only load RSS feeds from your own website. $("#webticker").webTicker({ rssurl:'http://maze.digital/rss/', rssfrequency:5 });