feat: 1-to-1 message render + web data-lake backend
This commit is contained in:
1 parent
f0afb7ec5b
commit
75425d1bee
110 files changed
+10199
-54
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { cubicOut } from "svelte/easing";
|
||||
|
||||
interface AppearParams {
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export function appear(
|
||||
_node: HTMLElement,
|
||||
{ disabled = false }: AppearParams = {}
|
||||
) {
|
||||
if (disabled) {
|
||||
return { duration: 0 };
|
||||
}
|
||||
return {
|
||||
duration: 200,
|
||||
easing: cubicOut,
|
||||
css: (t: number) => `opacity: ${t}; transform: scale(${0.85 + t * 0.15});`,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user