import { cn } from "@/lib/utils"; import React from "react"; import { motion } from "framer-motion"; export const BackgroundGradient = ({ children, className, containerClassName, animate = true, }: { children?: React.ReactNode; className?: string; containerClassName?: string; animate?: boolean; }) => { const variants = { initial: { backgroundPosition: "0 50%", }, animate: { backgroundPosition: ["0, 50%", "100% 50%", "0 50%"], }, }; return (
{children}
); };