Hello,
I create portfolio in NuxtJS 3 SSR. I apend gsap to my project and animate only position and opacity.
I test my page on diffrent phone. I noticed that on xiaomi my animation are lagging is not liquid.
U can test it in my link. What could be the problem?
Link to page: https://rucinskyd.netlify.app/
Code:
Animate about section:
gsap.fromTo(
"#about",
{ opacity: 0, y: "+=200" },
{
opacity: 1,
y: 0,
stagger: 0.2,
duration: 1,
scrollTrigger: { trigger: "#about", start: "top 80%" },
}
);
Animate card:
gsap.fromTo(
"#additionalInfo .card",
{ opacity: 0, x: "-20px" },
{
opacity: 1,
x: "0",
duration: 1,
stagger: 0.3,
scrollTrigger: { trigger: "#additionalInfo", start: "top 40%" },
}
);