ibozdemir70 adlı üyeden alıntı: mesajı görüntüle
Daha fazlası için kaynak koda göz atmak gerekiyor. Bu şekilde ihtimal çok ama kodu görünce daha netleşir.

Aynen koduma simdi baktim. domcontent icinde window onload kullanmisim. onunda icinde gsap koymusum. Aslinda body background renginide animasyon verirsem belki kullaniciyi yaniltarak bu durumu idare edersin ama oda ektra zaman aliyor timeline'da. Ama suan yaptigim son guncellemelerle mimimum'a indirdim bu olayi. linte r10 tiklayinca o dedigim olay halen var. cerezleri silmeye gerek yok. tekrardan refresh yapinca o goruntu olmuyor. keske direk girincede oyle olsa

document.addEventListener("DOMContentLoaded", function (event) {
// wait until window is loaded - all images, styles-sheets, fonts, links, and other media assets
    window.onload = function () {
// OPTIONAL - waits til next tick render to run code (prevents running in the middle of render tick)
        window.requestAnimationFrame(function () {
// Check if current page is the home page
            const isHomePage = document.body.classList.contains("home");

            // Conditionally run the timeline code based on the current page
            if (isHomePage) {
// GSAP custom code goes here

                let heroSlogan__splitText = new SplitText(".hero__slogan", {
type: "lines",
                });

                gsap.to(
".services__image-left, .services__image-middle, .services__image-right",
                    {
scrollTrigger: {
trigger: ".services__image-left",
                            start: "top bottom",
                            end: "bottom top",
                            scrub: true,
                        },
                        y: -25,
                    }
);