Skip to content
Snippets Groups Projects
Commit 2c6fe860 authored by Christian Bager Bach Houmann's avatar Christian Bager Bach Houmann
Browse files

fix: don't set opacity to 0 if not necessary for transition

parent ec2bbfa1
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
{src}
{alt}
class={_class}
style:opacity={loaded ? 1 : 0}
style:opacity={!fadeIn ? 1 : loaded ? 1 : 0}
style:transition={fadeIn ? "opacity 0.5s ease-out" : ""}
on:load={() => {loaded = true; loading = false;}}
on:error={() => {failed = true; loading = false;}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment