image-loader-spinner
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "image-loader-spinner", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Use a spinner until your images are completely loaded in the DOM", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -89,5 +89,7 @@ | ||
image.setAttribute("spinner", "true"); | ||
image.setAttribute("hsize", "200") | ||
image.setAttribute("wsize", "100%") | ||
setTimeout(() => { | ||
image.src = "https://i.imgur.com/rsjPao4.gif"; | ||
}, 5000); | ||
image.src = "https://i.imgur.com/rsjPao4.gif"; | ||
}, 5000) | ||
document.body.appendChild(image); | ||
@@ -104,4 +106,5 @@ ``` | ||
image.setAttribute("spinner", "true"); | ||
// image.setAttribute("size", "100"); // redefine size of the loader container | ||
image.src = "https://i.imgur.com/rsjPao4.gif"; | ||
}, 5000); | ||
``` |
34621
108