tabs - 在 Zurb Foundation 中淡入标签?

标签 tabs fade zurb-foundation

我想弄清楚 Zurb Foundation 中是否有设置可以很好地淡入标签。

如果没有,有没有人知道手动实现这一目标的最佳方法?

jQuery 的目标是什么?

谢谢。

最佳答案

使用 Zurb v5 和 this post我能够通过在 中添加自定义部件来完成淡入淡出标签。基础.css 如下:

.tabs-content {
  *zoom: 1;
  margin-bottom: 1.5rem; 

  /* Customized */
  display:block:important!
  opacity: 0;
}
  /* Customized */
  @-webkit-keyframes fadeIn {
      from { opacity: 0; }
        to { opacity: 1; }
  }
  @keyframes fadeIn {
      from { opacity: 0; }
        to { opacity: 1; }
  }
  .tabs-content:before, .tabs-content:after {
    content: " ";
    display: table; }
  .tabs-content:after {
    clear: both; }
  .tabs-content > .content {
    display: none;
    float: left;
    padding: 0.9375rem 0; }
    .tabs-content > .content.active {

      /* Customized */
      -webkit-animation: fadeIn 1s;
      animation: fadeIn 1s;
      opacity: 1;

      display: block; }

关于tabs - 在 Zurb Foundation 中淡入标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14337948/

相关文章:

html - 折叠到一列时如何让右侧的 div 落在 Foundation 中的左侧 div 之上

requirejs - Zurb 基金会 3 + RequireJS : plugins loading problems

c++ - 如何用空格和制表符区分文件行?

html - 使用基础制作一个盒子容器

c - 在 C 中将制表符扩展为空格?

JavaScript 文本转换

jQuery : crossfading image on hover

jquery - 当弹出窗口可见时创建 css 和 jquery 淡入淡出/模糊背景

android - 设置 ActionBar 选项卡的样式

android - 将选定的 TAB 设置为下方有一个小三角形