Image teaching

on the website i'm working on euroworker.no , I have a ton of CSS scroll that loads only when rolling, is there any way to force these onLoad to load so that they don't blink when rolling for the first time? This makes the site look broken. I could use <body onLoad...>, but I don’t know how to implement it.

Thank.

+3
source share
1 answer

Of course, just use image sprites . In short, this means that you put both image states (default and freeze) in the same image file. When you hover, you move the background-positioncorresponding item.

+5
source

Source: https://habr.com/ru/post/1741059/


All Articles