0

How can I show a background-image when the image is completely loaded in a div with javascript?

The background-image load lowly then I need show it just when it's completely downloaded pls help :(

21st Jan 2020, 2:20 AM
Jesuss L
Jesuss L - avatar
1 Resposta
+ 1
by assigning onload callback for Image() object. https://code.sololearn.com/WgJfIUJ1tX7j/?ref=app
21st Jan 2020, 3:35 AM
Gordon
Gordon - avatar