Hi,
Made a five elements timeline animation, they all start together, and I notice that it's like flickering a bit on mobile (safari/chrome). Is that a browser issue like computing power capacity too low? Or maybe because they all start together? Can't reproduce on codepen easily. I leave here the page link and the piece of code.
Link (the toggle animation, see the snapshot)
That's the whole animation code
const toggleTl = gsap.timeline({
scrollTrigger: {
trigger: '.toggle-section',
pin: true,
toggleActions: 'restart play reverse reverse',
startTrigger: '.toggle-button',
start: 'center center',
endTrigger: '.toggle-button',
end: () => '+=' + (document.querySelector('.toggle-button').clientWidth * 2),
},
});
ScrollTrigger.clearScrollMemory();
toggleTl
.to(".toggle-section", { background: 'white', duration: 0.5, ease: 'ease' }, 'start')
.to(".toggle-section-text-1", { color: '#1a1a1d', duration: 0.5, ease: 'ease' }, 'start')
.to(".toggle", { background: '#1a1a1d', duration: 0.5, ease: 'ease' }, 'start')
.to(".toggle-button", { background: 'white', duration: 0.5, ease: 'ease' }, 'start')
.to(".toggle-button", { right: 5, transformOrigin: "left center", duration: 0.5, ease: 'ease' }, 'start');
Thank you for your support