diff --git a/src/app/HomePage.js b/src/app/HomePage.js index 73d636f..66723db 100644 --- a/src/app/HomePage.js +++ b/src/app/HomePage.js @@ -38,6 +38,7 @@ function HomePage() { colorId={previewState?.colorId} pose={previewState?.pose} wornItemIds={[]} + loadingDelay="1.5s" placeholder={ ); @@ -63,6 +71,7 @@ export function OutfitLayers({ loading, visibleLayers, placeholder, + loadingDelay = "0.5s", doAnimations = false, }) { const [isMounted, setIsMounted] = React.useState(false); @@ -70,9 +79,6 @@ export function OutfitLayers({ setTimeout(() => setIsMounted(true), 0); }, []); - console.log("opacity", isMounted && loading ? 1 : 0); - console.log("transition delay", loading ? "0.5s" : "0s"); - return ( {placeholder && ( @@ -153,7 +159,7 @@ export function OutfitLayers({ // (This starts the opacity at 0, then fires an immediate callback to // set it to 1, triggering the transition.) opacity={isMounted && loading ? 1 : 0} - transition={`opacity 0.2s ${loading ? "0.5s" : "0s"}`} + transition={`opacity 0.2s ${loading ? loadingDelay : "0s"}`} >