【问题标题】:Angular bootstrap animated tabs transition in but not outAngular bootstrap 动画选项卡转入但不转出
【发布时间】:2014-04-05 04:52:23
【问题描述】:

我正在尝试在页面上选择不同的选项卡时添加动画幻灯片效果。到目前为止,它只工作了一半。

我正在使用 animate.css,因为我希望它可以使事情变得非常简单,但我发现过渡似乎只影响内容进入,而不是退出(即内容正确反弹) ,但不会滑出)。

我看到了这个未回答的问题,它似乎解决了同样的问题,但没有帮助我找到答案 (https://stackoverflow.com/questions/19961952/angularjs-1-2-animations-with-animate-css-hide-animation-doesnt-seem-to-fire)。

谁能指出我正确的方向?

戳这里:http://plnkr.co/edit/cERDGS2zvUxOyqboFZXT?p=preview

谢谢

【问题讨论】:

    标签: css angularjs twitter-bootstrap animation


    【解决方案1】:

    您可以在选项卡区域内覆盖引导程序的 css:

    .tab-content>.tab-pane {
        display: none;
    }
    

    .tab-content>.tab-pane {
        display: block;
    }
    

    然后你可以做一些 CSS/JS 技巧来绝对定位其他元素,这样它就不会超出布局。我实际上有同样的问题。我看到了这篇文章,我认为它也帮助我解决了我的问题。谢谢,我希望这会有所帮助。

    我的朋友:http://plnkr.co/edit/tgpyZq3JD1hwxtwCwWv8?p=preview

    【讨论】:

      猜你喜欢
      • 2016-09-21
      • 2017-01-09
      • 1970-01-01
      • 2015-11-27
      • 1970-01-01
      • 1970-01-01
      • 2015-06-27
      • 1970-01-01
      • 2019-04-14
      相关资源
      最近更新 更多