Skip to content

Commit

Permalink
User updating
Browse files Browse the repository at this point in the history
  • Loading branch information
alankrantas committed Jun 30, 2024
1 parent 89cd169 commit 9ecfa54
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/NameTitle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
setInterval(() => {
titleIndex = titleIndex >= info.title.length - 1 ? 0 : titleIndex + 1;
}, 2500);
}, 2000);
</script>

{#if mode == 'main'}
Expand Down Expand Up @@ -148,11 +148,9 @@
</p>
<p class="h6 text-white-50 code p-md-1 m-md-1">
{#each info.title as title, index}
{#if index == titleIndex}
<span in:fade={{ duration: 750 }}>
{title}
</span>
{/if}
<div style={index == titleIndex ? 'font-weight: bold;' : 'font-weight: normal;'}>
{title}
</div>
{/each}
</p>
</div>
Expand All @@ -176,7 +174,7 @@
<p class="h6 text-white-50 code p-md-1 m-md-1">
{#each info.title as title, index}
{#if index == titleIndex}
<span in:fade={{ duration: 750 }}>
<span in:fade={{ duration: 1000 }}>
{title}
</span>
{/if}
Expand Down Expand Up @@ -204,7 +202,7 @@
<p class="h6 text-white-50 code p-md-1 m-md-1">
{#each info.title as title, index}
{#if index == titleIndex}
<span in:fade={{ duration: 750 }}>
<span in:fade={{ duration: 1000 }}>
{title}
</span>
{/if}
Expand Down

0 comments on commit 9ecfa54

Please sign in to comment.