Giter Club home page Giter Club logo

react-double-marquee's People

Contributors

antontsvil avatar cdtinney avatar dependabot[bot] avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-double-marquee's Issues

Component does not update or unmount

Have this on a couple of websites using Gatsby. And if you resize the browser or change page, I get multiple console errors saying;

  1. Cannot read property 'clientWidth' of null
  2. Cannot read property 'style' of null

Any ideas on how to resolve?

Add TypeScript declarations

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> {}
}

Add loop prop

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.

Text does not scroll on a wide screen

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.