Comments (2)
Hi, not directly but it should be possible to do that yourself using setRate
from dynamic-marquee.
Here's an example function that would do it:
function pauseOnHover(marquee, $el) {
let rateOnEnter = null;
$el.addEventListener('mouseenter', () => {
if (rateOnEnter !== null) return;
rateOnEnter = marquee.getRate();
marquee.setRate(0);
});
$el.addEventListener('mouseleave', () => {
if (rateOnEnter === null) return;
marquee.setRate(rateOnEnter);
rateOnEnter = null;
});
}
Demo: https://stackblitz.com/edit/js-2v4d4c?file=index.js
from dynamic-marquee.
Related Issues (20)
- Word Wrap? HOT 6
- No room for item. HOT 2
- StartVisible Marquee HOT 7
- clear() is broken HOT 2
- How to start crawl from perticular position? HOT 6
- More than one Spacing issue between the text HOT 6
- Character Overlapping HOT 2
- How to add fetch support from json? HOT 1
- In Angular (above 2 version) getting error 'Cannot find name 'dynamicMarquee' HOT 10
- Is there any callback events available? HOT 6
- Marquee wont work in Angular after giving build HOT 8
- Javascript error on safari with loop function HOT 3
- Infinite loop when using images in upDown mode HOT 11
- [Question] HTML Content HOT 4
- [Question] Stop on touch? (loop?) HOT 1
- Why this is not working. HOT 6
- Question: loop same element with long activity, DOM slowdown? HOT 2
- Item already exists HOT 5
- Support scroll to item in marquee HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic-marquee.