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.

Icon Flash on Mouse Hover

See original GitHub issue

When using custom PNGs for the light/dark, I’m seeing a brief flash of the icon when the mouse hovers over the icon and when moving off of the icon. Using the OOTB icons this doesn’t happen.

dark-mode-toggle {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  --dark-mode-toggle-light-icon: url(/assets/moon.png);
  --dark-mode-toggle-dark-icon: url(/assets/sun.png);
  --dark-mode-toggle-icon-size: 2rem;
  --dark-mode-toggle-icon-filter: invert(100%);
  transform:translate3d(0, 0, 0);
}

Not sure why this would be happening with custom PNGs.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tomayaccommented, Jan 21, 2020

Thanks for letting me know. For your page, consider using SVGs instead of PNGs, they look a lot crisper, especially on high-resolution screens.

0reactions
tsewardcommented, Jan 20, 2020

Well, perhaps you were right! I had been working on this in localhost via jekyll serve where it showed the behavior, even though I did not have the dev tools in the browser open. I just pushed the changes to https://thesharepointfarm.com/ and they seem to be OK!

Thank you for providing the additional info, though. That should be helpful for others 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

When I mouse over on out side of div tag icon is getting blinking
I have a text strings in value column these are editable items. For indication I used pencil icon after text string. Problem is...
Read more >
windows 10 keeps displaying name of icon i am hovering over
i just uograded to windows 10 and whenever i hover my mouse over the taskview or notification icon, it says what the icon...
Read more >
How To Do a Mouseover Effect on an Image or Icon with HTML
I show you how to change between two images on your website when you mouse over them...not with Java Script but with HTMLTwitter ......
Read more >
[Bug] Cursor icon flickering on hover : r/Terraria - Reddit
[Bug] Cursor icon flickering on hover. I'm experiencing flickering on the item shown above the cursor when hovering on objects. anyone else?
Read more >
Hovering mouse over icons no longer tells me what they are!
Check your preferences and make sure Show Tool Tips is checked. Also try resetting your Premiere preferences and deleting all your media ...
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