Skip to content

Commit

Permalink
Faster browser anim
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Jun 12, 2024
1 parent df3388e commit 185b52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/pages/_Browser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
onMount(() => {
setTimeout(() => (showCursor = true), 0)
setTimeout(() => (animating = true), 400) // wait to show the pressed cursor state
setTimeout(() => (animating = true), 100) // wait to show the pressed cursor state
setTimeout(async () => {
await margin.set(23) // biggest value, in rems
animating = showCursor = false
Expand All @@ -30,7 +30,7 @@
duration: 0,
delay: 0
})
}, 400 /* initial delay */ + 250 /* another delay, accounting for cursor press transition */)
}, 100 /* initial delay */ + 250 /* another delay, accounting for cursor press transition */)
})
</script>

Expand Down

0 comments on commit 185b52f

Please sign in to comment.