具有制定运动布局的动画不起作用
我有一个带有过滤功能的图像库。我想在过滤时动画图像的变化。我在线阅读有关使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论