Hey All, new to the GSAP library and loving it!
I tried looking into the question but cannot seem to find other reasons except for a possible CPU issue with the browser type? Safari desktop works great, I use a iPhone 12 Mini (see GIF). They are not supposed to be that slow and stuttery for a lack of a better term. Anyone ever come across the issue and could recommend anything from your experience?
I'll post the code I have below.
const homeController = new ScrollMagic.Controller()
const liTL = gsap.timeline();
liTL.fromTo(
"nav a",
{
color: "#fff"
},
{
color: "rgba(0,0,0,1)",
duration: 1,
},
);
let liScene= new ScrollMagic.Scene({
triggerElement: "header",
triggerHook: 1,
reverse: true,
offset: (document.querySelector("nav").offsetHeight) + 500,
duration: 0,
})
.setTween(liTL)
// .addIndicators()
.addTo(homeController);
const navTL = gsap.timeline();
navTL.fromTo(
"nav",
{
backgroundColor: "rgba(0,0,0,0)"
},
{
backgroundColor: "#fff",
duration: 1,
}
);
let navScene= new ScrollMagic.Scene({
triggerElement: "header",
triggerHook: 1,
reverse: true,
offset: (document.querySelector("nav").offsetHeight) + 510,
duration: 0,
})
.setTween(navTL)
// .addIndicators()
.addTo(homeController);
let headertl = gsap.timeline()
headertl.fromTo('nav', {
y: -200,
autoAlpha: 0,
},
{
y: 0,
autoAlpha: 1,
duration: 2,
delay: .1
}
)
headertl.fromTo('header', {
// y: -200,
autoAlpha: 0,
},
{
// y: 0,
autoAlpha: 1,
duration: 2,
delay: .4
},
);