具有制定运动布局的动画不起作用

发布于 2025-02-13 04:07:07 字数 401 浏览 2 评论 0原文

我有一个带有过滤功能的图像库。我想在过滤时动画图像的变化。我在线阅读有关使用Framer Motion的布局功能的信息。我看到了模仿我想做的示例一个。当我将其设置在工作区中时,它无法正常工作,它可以做奇怪的伸展动画,而且看起来很恐怖。我创建了一个代码沙盒。我想修复动画,以便正确地重新排序。任何帮助将不胜感激!

I have an image gallery with a filtering function. I want to animate the shifting of the images when they get filtered. I read online about using framer motion's layout feature. I saw examples emulating exactly what I want to do like this one. When I set it up in my workspace it does not work, it does weird stretch animations and looks horrible. I created a code sandbox to demonstrate the issue. I would like to fix the animation so the tiles re-order properly. Any help would be appreciated thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文