Marquee Like Horizontal Scroller with Pure JavaScript – marquee.js

Category: Animation , Javascript | August 2, 2019
Author: robertbossaert
Views Total: 5,611
Official Page: Go to website
Last Update: August 2, 2019
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
    
  });

Changelog:

08/02/2019

  • Removed unused codes

You Might Be Interested In:


Leave a Reply