diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f248b25..afa62bc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -29,10 +29,17 @@ let index = 0; let rol: NodeJS.Timeout; + let titleClass = 'italic'; onMount(() => { rol = setInterval(() => { - if (index === greetings.length - 1) index = 0; - else index++; + if (index === greetings.length - 1) { + index = 0; + // only show all the options onces, then stop sliding + clearInterval(rol); + titleClass = ''; + } else { + index++; + } }, 1250); }); @@ -167,8 +174,8 @@