带有 Scriptaculous 的水平 SlideUp SlideDown
您可能知道scriptaculous SlideUp 效果。 嗯,它垂直向上滑动一个 div 作为关闭效果。
我想让它水平工作。有一个选项可以做到这一点:scaleX:true,scaleY:false
但是它不能正常工作:div在关闭之前向下跳...
有谁知道如何使用slideUp效果进行水平滑动?
谢谢
You may know the scriptaculous SlideUp effect.
Well, It slides up a div vertically as a closing effect.
I would like to make it work horizontal. There is an option for this : scaleX:true, scaleY:false
But it doesn't work fine : the div jumps down before closing...
Does anyone know how to use the slideUp effect for horizontal sliding ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有任何内置的脚本效果可以实现此目的,但构建一个自定义组合效果相当容易,它可以满足您的要求。
这是我使用的代码要点: http://gist.github.com/374478
它是只是稍微修改了内置 SlideDown / SlideUp 的版本,使它们成为 SlideRight / SlideLeft。
There aren't any built in scriptaculous effects which accomplish this, but is fairly easy to build a custom combination effect that does just what you ask.
Here is a gist of code I use: http://gist.github.com/374478
It is just slightly modified versions of the built in SlideDown / SlideUp so that they become SlideRight / SlideLeft.