Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
alankrantas committed May 5, 2023
1 parent 3f92eb8 commit 8d2990b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/utils/Showcase.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@
{#if colIdx + listStartWorkId < works.length}
{#if !works[colIdx + listStartWorkId].loaded}
<p class="placeholder-glow">
<span class="placeholder w-50" />
<span class="placeholder w-50" />
<span class="placeholder w-50" />
<span class="placeholder w-75" />
<span class="placeholder w-75" />
<span class="placeholder w-75" />
<span class="placeholder w-75" />
<span class="placeholder w-75" />
</p>
{/if}
<a href={'#'} on:click={() => popShowcaseDetail(works[colIdx + listStartWorkId])}>
<img
loading="lazy"
class="img-thumbnail bg-light border-light rounded-4"
style="width: 100%; object-fit: contain;"
style={`width: 100%; object-fit: contain; visibility: ${
works[colIdx + listStartWorkId].loaded ? `visible` : `hidden`
};`}
src={works[colIdx + listStartWorkId].imgUrl}
alt={works[colIdx + listStartWorkId].name}
on:load={() => {
Expand Down

0 comments on commit 8d2990b

Please sign in to comment.