A
A
Archer *range attack +10*2016-11-21 12:47:58
css
Archer *range attack +10*, 2016-11-21 12:47:58

How to fix blinking icons on hover?

Sometimes icons made using high-resolution pngs or svg backgrounds do not show the image that should be displayed on hover for literally a second. This only happens the first time, when the pictures have not yet been cached. It would seem that the way out is to use sprites, but here it will not work to use them. Are there any other options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Goryachev, 2016-11-21
@kon-rafikov

It would seem that the way out is to use sprites, but here it will not work to use them.

And what's the problem? It's a really good way.
You can, of course, make an image preloader on jquery , but sprites are better.

B
Briss, 2016-11-21
@Briss

Use svg icons in fonts.
fontawesome.io
If you wish, you can write a task for the collector (gulp, grung, webpack) so that it adds your icons to the font.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question