Safari 15 奇怪的转换错误/故障
你好,我使用 GSAP 和 Safari 15(低于 15 没有问题)滚动动画 div 发生了奇怪的事情,部分字母在侧面留下残像。正如您在下面的屏幕上看到的,GSAP 仅添加了简单的变换来从左向右或从右左移动元素。
这是我使用的一段代码:
this.$refs.link.forEach((link, index) => {
gsap.to(link.$el, {
scrollTrigger: {
trigger: this.$el,
scrub: true,
start: 'top 70%',
end: 'bottom top'
},
duration: 1,
xPercent: index % 2 ? '-50' : '50'
})
})
有什么想法可能会导致此问题吗?
Hello im animation div on scroll using GSAP and on Safari 15 (below 15 no issues) weird thing is happening, part of letters stay as an afterimage on the sides. As you can see on screen below GSAP only adds simple transform to move element from left-right or right-left.
This is piece of code im using:
this.$refs.link.forEach((link, index) => {
gsap.to(link.$el, {
scrollTrigger: {
trigger: this.$el,
scrub: true,
start: 'top 70%',
end: 'bottom top'
},
duration: 1,
xPercent: index % 2 ? '-50' : '50'
})
})
Any ideas what may cause this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信 Safari 中的转换已损坏。就我而言,我开始拖放对变换后的元素进行放置操作 - 重影图像会被截断,就好像它在变换之前使用矩形一样,并且重影图像会被错误地剪切。这是非常一致的。如果我
transformX(-50%)
- 正好有一半的重影图像可见。如果我transformX(-100%)
- 没有任何重影图像可见。Firefox、Brave、Edge 和 Chrome 都很好。如果我关闭变换,则会显示整个图像(但会根据变换的数量而跳跃)。
I believe that transform in Safari is broken. In my case, I start a drag & drop operation on a transformed element - and the ghost image is truncated as if it was using the rectangle BEFORE the transform, and the ghost image is clipped incorrectly. It's very consistent. If I
transformX(-50%)
- exactly half the ghost image is visible. If ItransformX(-100%)
- NONE of the ghost image is visible.Firefox, Brave, Edge, and Chrome are all fine. If I turn-off transform, the entire image appears ( but jumps around based-upon how much of a transform there is ).