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