working animations
This commit is contained in:
@@ -7,7 +7,7 @@ const AnimatedPageTitle = (
|
||||
) => {
|
||||
const el = useRef<HTMLHeadingElement>(null)
|
||||
const gsapContext = useGsapContext();
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
console.log("add animated title with:",position)
|
||||
const split = new SplitText(el.current, { type: "chars" })
|
||||
gsapContext?.addAnimation(gsap.to(el.current, { opacity: 100 }),position)
|
||||
|
||||
Reference in New Issue
Block a user