Safari 15 奇怪的转换错误/故障

发布于 2025-01-16 20:23:02 字数 661 浏览 1 评论 0原文

你好,我使用 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?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

芯好空 2025-01-23 20:23:02

我相信 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 I transformX(-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 ).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文