diff --git a/shop/components/ScrollIndicator.tsx b/shop/components/ScrollIndicator.tsx new file mode 100644 index 0000000..7d6dd1f --- /dev/null +++ b/shop/components/ScrollIndicator.tsx @@ -0,0 +1,20 @@ +'use client' + +import React from 'react' +import { motion, useScroll, useSpring } from 'framer-motion' + +export function ScrollIndicator() { + const { scrollYProgress } = useScroll() + const scaleX = useSpring(scrollYProgress, { + stiffness: 100, + damping: 30, + restDelta: 0.001 + }) + + return ( + + ) +}