Hello, colleagues,
I'm faced with another one mobile Safari issue.
This is how it should work and it work in any other browsers => https://youtube.com/shorts/ShZ4IlI2AEI
This is how it works in mobile Safari => https://youtube.com/shorts/r5BSIsRKXZk
Short version of my code is below:
initMobile(triggerBlock, animatedCards, animDuration, idx) {
const cards = this.$gsap.utils.toArray(animatedCards)
const timeline = this.$gsap.timeline({ paused: true })
cards.forEach((card) => {
timeline.to(card, {
y: 0,
x: 0,
z: 0,
transformPerspective: 30,
boxShadow: '0px 0px 13px rgba(0, 0, 0, 0.3)'
})
})
const config = {
trigger: triggerBlock,
start: 'top top',
end: '+=' + animDuration,
pin: true,
scrub: true,
animation: timeline
}
this.$ScrollTrigger.create(config)
}
I already tried a lot of options: with different z-indexes (i know about this Safary's "feature"), with "fromTo", with "to", animating "yPercent", "y" only. The final version is with x/y/z animation to force "transform3d". Nothing is helpful
I have no any other ideas. Could you please help?
Thanks