【发布时间】:2012-09-13 07:10:38
【问题描述】:
这是我想做的:
初始显示
---------------------------------------------
| |
| |
| |
| .span12 #col1 |
| |
| |
| |
| [#button] |
| |
| |
---------------------------------------------
然后,当#button 被点击时,#col1 内容会以动画方式向右滑动到 .span3 中,而 #col2 .span9 会从左向右(从屏幕外)动画:
按钮点击/动画后
-------------------------------------------------
| | |
| | |
| | |
| .span9 #col2 | .span3 #col1 |
| | |
| | |
| | |
| | [#button] |
| | |
| | |
-------------------------------------------------
然后反过来可能会碰巧回到原始状态。
谢谢!
问题是
我正在使用 Twitter Bootstrap 网格系统。谷歌搜索Twitter Bootstrap column transtions animation 和变化没有出现任何东西。我不是 jquery 动画大师,所以我想我会恳求 kind 堆栈溢出的人。
希望这里有人可能比我更了解这类事情,并会提供一些代码来说明如何实现。抱歉,我以为只是在网站上发布就暗示了这一点。
这是我尝试过的
【问题讨论】:
-
对于使用 Bootstrap 4 的未来读者,请参阅 stackoverflow.com/questions/42979772/…
标签: jquery html animation twitter-bootstrap jquery-animate