question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Marquee starts then stops on Safari until mouseover

See original GitHub issue

The marquee seems to be working fine in Firefox and Chrome, but in Safari specifically when the page loads, it starts animating then immediately stops until there’s a mouseover event.

I’m using one marquee for the loading state:

    renderLoadingState = () => (
        <Marquee play={false} gradient={false} pauseOnHover>
            <LoadingCard />
            <LoadingCard />
            <LoadingCard />
            <LoadingCard />
            <LoadingCard />
        </Marquee>
    );

and another for the actual loaded content:

    renderMarquee = () => {
        const { hikes } = this.state;

        return (
            <Marquee play pauseOnHover gradient={false} speed={30}>
                {hikes.map(
                    (
                        {
                            name,
                            city,
                            state,
                            coverPhoto,
                            review,
                            distance,
                            elevation,
                            difficulty,
                            hid,
                        },
                        index,
                    ) => (
                        <Card
                            name={name}
                            city={city}
                            state={state}
                            coverPhoto={coverPhoto}
                            review={review}
                            distance={distance}
                            elevation={elevation}
                            difficulty={difficulty}
                            hid={hid}
                            key={index}
                        />
                    ),
                )}
            </Marquee>
        );
    };

https://user-images.githubusercontent.com/1837100/122298126-5df53a00-ceca-11eb-8256-4d821b8523e5.mov

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
justin-chucommented, Jun 18, 2021

@pdugan20 thanks for the helpful info, I’ll investigate this.

0reactions
justin-chucommented, Jun 21, 2021

A code sample would be perfect, thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Marquee movement should stop on mouseover and start on ...
Show activity on this post. Hi ppl, I'm using a simple marquee to move my text upwards. when it is moving onmouseover of...
Read more >
Stopping & Starting HTML Marquees - Quackit Tutorials
This example allows the user to stop the marquee when they hover over the marquee with their cursor (i.e. onmouseover). The marquee then...
Read more >
Html Marquee Tag | change marquee speed, behavior ...
Marquee Elements supports javascript mouseover and mouseout events to stop and start. These events are using JavaScript Inline events attribute ...
Read more >
The Marquee Tag in HTML: Why We Want It Banned »
Is it inline? The content of does not start scrolling until the “ element becomes visible. Width and Height Attributes. WIDTH and ......
Read more >
The Marquee element - HTML: HyperText Markup Language
Chrome Edge marquee. Deprecated Full support. Chrome1. Toggle history Full support. Edge12. Toggle... behavior. Deprecated Full support. Chrome1. Toggle history Full support. Edge12. Toggle... bgcolor. Deprecated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found