This commit is contained in:
Prasanta Kumar Dutta 2023-11-07 14:34:14 +05:30
parent 0880e56e8a
commit c99197e68f

View file

@ -14,7 +14,7 @@
<div <div
class="step-background step-{i + 1} w-full absolute" class="step-background step-{i + 1} w-full absolute"
class:visible="{stackBackground ? i <= index : i === index}" class:visible="{stackBackground ? i <= index : i === index}"
class:hidden="{stackBackground ? i > index : i !== index}" class:invisible="{stackBackground ? i > index : i !== index}"
> >
<svelte:component <svelte:component
this="{step.background}" this="{step.background}"
@ -28,7 +28,7 @@
.step-background { .step-background {
transition: 0.35s opacity ease; transition: 0.35s opacity ease;
&.hidden { &.invisible {
opacity: 0; opacity: 0;
} }
} }