misc: tweak animation curves
This commit is contained in:
1 parent
aef676c8b5
commit
1771aa056e
6 files changed
+20
-12
No files matched your search
@@ -148,7 +148,7 @@
|
||||
{#if title && id}
|
||||
<a
|
||||
href="/post/{getInstance()}/{id}"
|
||||
class="font-medium text-base"
|
||||
class="font-medium text-base w-max"
|
||||
class:text-slate-600={$userSettings.markReadPosts && read}
|
||||
class:dark:text-zinc-400={$userSettings.markReadPosts && read}
|
||||
style="grid-area: title;"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
import { Button, Popover, buttonColor, toast } from 'mono-svelte'
|
||||
import { site } from '$lib/lemmy.js'
|
||||
import { fly } from 'svelte/transition'
|
||||
import { backOut } from 'svelte/easing'
|
||||
|
||||
export let post: Post
|
||||
export let vote: number = 0
|
||||
@@ -69,8 +70,8 @@
|
||||
{#key upvotes}
|
||||
<span
|
||||
style="grid-column: 1; grid-row: 1;"
|
||||
in:fly={{ duration: 200, y: -6 }}
|
||||
out:fly={{ duration: 200, y: 6 }}
|
||||
in:fly={{ duration: 400, y: -10, easing: backOut }}
|
||||
out:fly={{ duration: 400, y: 10, easing: backOut }}
|
||||
>
|
||||
<FormattedNumber number={upvotes} />
|
||||
</span>
|
||||
@@ -91,8 +92,8 @@
|
||||
{#key downvotes}
|
||||
<span
|
||||
style="grid-column: 1; grid-row: 1;"
|
||||
in:fly={{ duration: 200, y: -6 }}
|
||||
out:fly={{ duration: 200, y: 6 }}
|
||||
in:fly={{ duration: 400, y: -10, easing: backOut }}
|
||||
out:fly={{ duration: 400, y: 10, easing: backOut }}
|
||||
>
|
||||
<FormattedNumber number={downvotes} />
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user