I guess you haven't seen it yet. Updated the link once again. I was able to access it logged out:
https://codesandbox.io/p/github/oelbaga/nexts13.4_gsap_scrolltrigger_bug/main
"use client";
import { useEffect, useRef, useState } from "react";
import Image from "next/image";
import styles from "./page.module.css";
import { gsap } from "gsap";
//importing gsap scrolltrigger throws console log error
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);
export default function Home() {
const tl = useRef();
const h1Ref = useRef();
useEffect(() => {
let ctx = gsap.context(() => {
gsap.fromTo(
h1Ref.current,
{
opacity: 0,
},
{
opacity: 1,
duration: 1,
}
);
});
return () => ctx.revert();
}, []);
return (
<main className={styles.main}>
<h1 ref={h1Ref}>Hello World</h1>
</main>
);
}
Scroll Trigger import error:
Warning: Extra attributes from the server: style