Marquee Like Horizontal Scroller with Pure JavaScript – marquee.js

Category: Animation , Javascript | December 3, 2015
Author: robertbossaert
Views Total: 5,468
Official Page: Go to website
Last Update: December 3, 2015
License: MIT

Preview:

Marquee Like Horizontal Scroller with Pure JavaScript – marquee.js

Description:

marquee.js is a lightweight JavaScript library which allows to scroll horizontally and infinitely through html elements like the traditional marquee element.

Basic usage:

Place the marquee.js JavaScript files into your document.

<script src="marquee.js"></script>

Create a new marquee instance and done.

new Marquee('SELECTOR');

Customize the scrolling behavior.

new Marquee('SELECTOR', {

    // once or continuous
    continuous: true,

    // 'rtl' or 'ltr'
    direction: 'rtl',

    // pause between loops
    delayAfter: 1000,

    // when to start
    delayBefore: 0,

    // scroll speed
    speed: 0.5,

    // loops
    loops: -1
    
  });

 

You Might Be Interested In:


Leave a Reply