import React, { useEffect, useRef } from 'react'; import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger); const FeatureSection: React.FC = () => { const sectionRef = useRef(null); const imageRef = useRef(null); const contentRef = useRef(null); useEffect(() => { const section = sectionRef.current; const image = imageRef.current; const content = contentRef.current; if (!section || !image || !content) return; // Image reveal animation gsap.fromTo( image, { clipPath: 'inset(100% 0 0 0)', opacity: 0 }, { clipPath: 'inset(0% 0 0 0)', opacity: 1, duration: 1.2, ease: 'power3.out', scrollTrigger: { trigger: section, start: 'top 60%', toggleActions: 'play none none reverse', }, } ); // Content fade in animation gsap.fromTo( content, { x: -60, opacity: 0 }, { x: 0, opacity: 1, duration: 1, ease: 'power3.out', scrollTrigger: { trigger: section, start: 'top 50%', toggleActions: 'play none none reverse', }, } ); return () => { ScrollTrigger.getAll().forEach((trigger) => trigger.kill()); }; }, []); return (
CRAFT

The Art of
Slow Living

We believe in the beauty of handmade objects. Our collection features a curated selection of ceramics designed to elevate the everyday. From sturdy mugs for your morning coffee to elegant vases that breathe life into a room, each piece is crafted with patience and intention.

Read Our Story
); }; export default FeatureSection;