🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

image-loader-spinner

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-loader-spinner - npm Package Compare versions

Comparing version

to
1.1.8

11

dist/index.js

@@ -61,9 +61,10 @@ "use strict";

e.target.style.display = "block";
const element = e.target;
const interval = window.setInterval(() => {
if (parseFloat(e.target.style.opacity) >= maxOpacity)
if (parseFloat(element.style.opacity) >= maxOpacity)
return window.clearInterval(interval);
const opacityImage = parseFloat(e.target.style.opacity);
e.target.style.opacity = opacityImage + 0.05;
if (parseFloat(e.target.style.opacity) > maxOpacity)
e.target.style.opacity = maxOpacity;
const opacityImage = parseFloat(element.style.opacity);
element.style.opacity = opacityImage + 0.05;
if (parseFloat(element.style.opacity) > maxOpacity)
element.style.opacity = maxOpacity;
}, 1e3 / 20);

@@ -70,0 +71,0 @@ } else

{
"name": "image-loader-spinner",
"version": "1.1.7",
"version": "1.1.8",
"description": "Use a spinner until your images are completely loaded in the DOM",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet