marquee-line
Installing
Package manager
Using npm:
$ npm install marquee-line
Using yarn:
$ yarn add marquee-line
JS
import marquee from 'marquee-line';
$('.marquee').marquee({
mask: '.mask',
line: '.line',
animSpeed: 30,
pauseOnHover: true,
});
Options
mask: null
line: '>*'
handleFlexible: true,
pauseOnHover: true,
hoverClass: 'hover',
direction: 'left',
cloneClass: 'cloned',
animSpeed: 10,
initialDelay: 0
HTML
<div class="marquee">
<div class="mask">
<div class="line">
<div>Hello</div>
<div>Hello</div>
<div>Hello</div>
</div>
</div>
</div>