cdtinney / react-double-marquee Goto Github PK
View Code? Open in Web Editor NEWA React marquee component that smoothly loops content.
Home Page: https://react-double-marquee.tinney.dev
License: MIT License
A React marquee component that smoothly loops content.
Home Page: https://react-double-marquee.tinney.dev
License: MIT License
I'm on the latest version, using Next.js. When navigating out of the page where this component is mounted, this error is thrown. Also when refreshing/hot-reloading it also throws the same error.
Hi, thanks for this package. I'm using it, but at NPM docs, there's nothing about setting the movement. Is that possible?
Have this on a couple of websites using Gatsby. And if you resize the browser or change page, I get multiple console errors saying;
Any ideas on how to resolve?
same as title, component doesnt mount on page change
I've written an external declaration for this module, maybe you want to include it in the package:
interface MarqueeProps {
speed?: number;
delay?: number;
direction?: 'right' | 'left';
childMargin?: number;
children?: React.ReactNode | React.ReactNode[];
}
declare module 'react-double-marquee' {
export default class Marquee extends React.PureComponent<MarqueeProps, any> {}
}
I added 'onMouseEnter' to set speed to 0.03 and onMouseLeave to set speed to 0 (There was already a hover request before me).
I would have loved it if we had a prop to decided how many loops would it does after on mouse leave. At the moment I'm just setting a setInterval function, which causes the end of the loop to jump.
I was trying to create a marquee that spanned the full page width and displayed announcements, but whenever the text got too short (i.e. too few characters). The marquee would stop scrolling.
To recreate, place the following in a div that spans the whole screen.
<div>
<Marquee>Hello World</Marquee>
</div>
Any way to pause the scroll on hover?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.