canvas-splash-screen
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -7,2 +7,3 @@ type CanvasSplashScreenConfig = { | ||
hidden?: boolean; | ||
debug?: boolean; | ||
angle?: number; | ||
@@ -9,0 +10,0 @@ sizeMultiplier?: number; |
@@ -30,7 +30,8 @@ "use strict"; | ||
logoUrl: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTgiIHdpZHRoPSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48dGl0bGU+Ym9sdCBsaWdodG5pbmc8L3RpdGxlPjxnIGZpbGw9IiNmZmZmIiBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIj48cGF0aCBkPSJNMTQuODY4LDYuMTkxYy0uMjEzLS40MjYtLjY0Mi0uNjkxLTEuMTE4LS42OTFoLTIuNjUzbDEuMDg4LTIuNzk4Yy4xNDktLjM4NSwuMDk5LS44MTgtLjEzNC0xLjE1OS0uMjMzLS4zNC0uNjE5LS41NDMtMS4wMzEtLjU0M0g2Ljg1Yy0uNTIyLDAtLjk5NCwuMzI5LTEuMTc0LC44MTlsLTIuMzg1LDYuNTAxYy0uMTQsLjM4My0uMDgzLC44MTIsLjE1LDEuMTQ2LC4yMzQsLjMzNCwuNjE3LC41MzMsMS4wMjQsLjUzM2gzLjc5bC0xLjcyNyw2LjA0NGMtLjEsLjM0OCwuMDYzLC43MTcsLjM4NywuODc4LC4xMDcsLjA1MywuMjIxLC4wNzgsLjMzNCwuMDc4LC4yMjksMCwuNDU0LS4xMDYsLjYtLjNMMTQuNzUxLDcuNWMuMjg1LS4zODEsLjMzLS44ODIsLjExNy0xLjMwOVoiIGZpbGw9IiNmZmZmIj48L3BhdGg+PC9nPjwvc3ZnPg==", | ||
animationDuration: 1.8, | ||
animationDuration: 1.5, | ||
logoSize: 50, | ||
angle: 360, | ||
hidden: false, | ||
sizeMultiplier: 20 | ||
sizeMultiplier: 20, | ||
debug: false | ||
}; | ||
@@ -75,3 +76,6 @@ const config = { ...defaultConfig, ...configuration }; | ||
onUpdate: draw, | ||
paused: true | ||
paused: true, | ||
defaults: { | ||
duration: 1.2 | ||
} | ||
}); | ||
@@ -101,3 +105,3 @@ svgImage.onload = () => { | ||
opacity: 0, | ||
duration: 1.2, | ||
duration: 1, | ||
// Duration in seconds | ||
@@ -104,0 +108,0 @@ ease: "power1.inOut", |
{ | ||
"name": "canvas-splash-screen", | ||
"author": "Julio Merisio <contatomerisio@gmail.com>", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A canvas splash screen animation", | ||
"scripts": { | ||
"build": "tsup ./src" | ||
}, | ||
"keywords": [ | ||
@@ -36,6 +39,3 @@ "canvas", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsup ./src" | ||
} | ||
} | ||
"types": "./dist/index.d.ts" | ||
} |
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
Sorry, the diff of this file is not supported yet
30030
345