diff options
| author | Fuwn <[email protected]> | 2024-01-12 08:18:14 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-12 08:18:14 -0800 |
| commit | e662c6ba6b664cc7a930a391db59ab9a3d16c38c (patch) | |
| tree | 00854f15af86c90509e340a52de4b91239f490e2 /src/routes/+layout.svelte | |
| parent | feat(manga): more reactive loading progress (diff) | |
| download | due.moe-e662c6ba6b664cc7a930a391db59ab9a3d16c38c.tar.xz due.moe-e662c6ba6b664cc7a930a391db59ab9a3d16c38c.zip | |
feat(layout): disable animations setting
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 52d1b8ba..91d22613 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -102,18 +102,22 @@ <p /> <Notifications item={Notification} zIndex={5000}> - {#key data.url} - <div - in:fly={{ - x: way, - duration: animationDelay, - delay: animationDelay - }} - out:fly={{ x: -way, duration: animationDelay }} - > - <slot /> - </div> - {/key} + {#if $settings.displayDisableAnimations} + <slot /> + {:else} + {#key data.url} + <div + in:fly={{ + x: way, + duration: animationDelay, + delay: animationDelay + }} + out:fly={{ x: -way, duration: animationDelay }} + > + <slot /> + </div> + {/key} + {/if} </Notifications> </div> |