ezekielaquino / Marquee3000

Marquees for the new millenium
https://ezekielaquino.com/2019/marquee
MIT License
440 stars 81 forks source link

How to target a specific marquee on the page? #42

Open romain-granai opened 1 year ago

romain-granai commented 1 year ago

Is it possible to target a specific marquee on the page and pause it?

Can I init a marquee without adding the class .marquee3k to the element. In the doc it says

Marquee3k.init({ selector: '.selector-name', // define a custom classname });

But that does absolutely nothing.

Is there a way to do somnething like that :


var footerMarquee = Marquee3k.init({
        selector: '.footer-marquee, // define a custom classname
        paused: true,
       speed: 2
 });

$('.footer-marquee').on('mouseover', function(){
footerMarquee.play();
});

$('.footer-marquee').on('mouseleave', function(){
footerMarquee.pause();
});
LauraPiccolo commented 1 year ago

Did you figure this out? My Marquee has the class is-init but isn't moving ...