working animations

This commit is contained in:
2026-03-13 22:24:12 +01:00
parent 4293eef824
commit b5291caa6e
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import gsap from 'gsap'
const AnimateTextIn = ({children,animation="type",position}:{children:ReactNode,animation?:"type"|"slide",position:gsap.Position}) => {
const el = useRef<HTMLDivElement>(null)
const gsapContext = useGsapContext();
useEffect(() => {
useLayoutEffect(() => {
console.log("aniamte text with:",position)
const tl = gsap.timeline();
const chars = new SplitText(el.current,{type:'chars'})