让 jQuery 排序更流畅
我第一次使用 jQuery 可排序。我试图让排序更顺畅一点,但在在线doku中找不到任何内容。问题是,jQuery 可排序仅生成一个占位符,该占位符仅跳转到可捕捉区域。会更平滑,当离开一个区域时,会生成另一个占位符(隐藏)。所以两者都可以使用 SlideToggle 进行动画处理。 有没有办法实现这一点?
Im working the first time with jQuery sortable. And i tried to make the sorting a little bit smoother, but found nothing in online doku. The issue is, that jQuery sortable produces only one placeholder, which just jumps to the snappable areas. It will be much smoother, when on leaving an area, an other placeholder will be generated (hidden). So both can be animated with slideToggle.
Is there a way to realize this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,不确定我能完全解决你的问题,但这可能会让它更平滑一点:
这使得它(而不是捕捉)平滑地滑到它的位置,但对于当时没有被拖动的其他项目来说,它不会这样做,而且我认为这可能有点问题,因为它是为可拖动而设计的。希望这有帮助:D
Um, not sure I can solve your problem completely but this might make it a little bit smoother:
That makes it (instead of snapping) smoothly glide to its position, but it doesn't do this for other items not being dragged at the time, and also I think it might be a bit glitchy cos it's designed for draggable. Hope this helps :D