From 10dfe6c17904cbeb6c3750cdd8778e7784e28722 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Mon, 11 May 2026 19:07:58 +0200 Subject: [PATCH] variants --- src/lib/utils/variants.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/lib/utils/variants.ts diff --git a/src/lib/utils/variants.ts b/src/lib/utils/variants.ts new file mode 100644 index 0000000..19fca21 --- /dev/null +++ b/src/lib/utils/variants.ts @@ -0,0 +1,28 @@ +import { Variants } from "framer-motion"; + +export const container: Variants = { + hidden: {}, + show: { + transition: { + staggerChildren: 0.2, + delayChildren: 0.2, + }, + }, +}; + +export const item: Variants = { + hidden: { + opacity: 0, + y: 12, + filter: "blur(10px)", + }, + show: { + opacity: 1, + y: 0, + filter: "blur(0px)", + transition: { + duration: 0.6, + ease: "easeOut" as const, + }, + }, +};