Files
property-management-network/components/marketing/scroll-progress.tsx
T

17 lines
385 B
TypeScript
Raw Normal View History

"use client"
import { useScroll, motion } from "framer-motion"
export function ScrollProgress() {
const { scrollYProgress } = useScroll()
return (
<motion.div
className="fixed top-0 left-0 right-0 z-[200] h-[2px] origin-left"
style={{
scaleX: scrollYProgress,
background: "linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4)",
}}
/>
)
}