feat(frontend): staggered list reveals + toast tone accents (level 5 polish)

This commit is contained in:
asepharyana committed 2026-09-20 14:57:18 +07:00
1 parent ae3b22df93
commit d7aa034661
6 files changed
+37 -9

No files matched your search

+7
View File
@@ -4,3 +4,10 @@ import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
/** Inline `animationDelay` for staggered list reveals. Pair with the
* `animate-stagger` class on the item root. steps=45ms, capped at 600ms so
* long lists don't drag the reveal out. */
export function staggerDelay(i: number, step = 45, max = 600) {
return { animationDelay: `${Math.min(i * step, max)}ms` };
}