Marquee starts then stops on Safari until mouseover
See original GitHub issueThe 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:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pdugan20 thanks for the helpful info, I’ll investigate this.
A code sample would be perfect, thanks a lot!