【问题标题】:Make wordpress twenty twelve theme responsive menu toggle with animation使用动画制作 wordpress 二十十二主题响应式菜单切换
【发布时间】:2013-05-15 20:34:21
【问题描述】:

responsivemobile 模式下,有没有一种好的方法可以让Wordpress 二十十二 主题菜单切换带有动画效果?

有点像..

jQuery(".menu-toggle").toggle(function(){
    jQuery(".main-menu-container").fadeIn('slow');
      },function(){
    jQuery(".main-menu-container").fadeOut('slow');
  });

【问题讨论】:

    标签: jquery wordpress responsive-design wordpress-theming


    【解决方案1】:

    使用fadeToggle,然后点击函数来切换你的菜单与淡入淡出。试试这个

    $(document).ready(function () {
      $('.menu-toggle').click(function () {
         $('.main-menu-container').fadeToggle('slow');
      });
    });
    

    Twenty twelwe 主题可能会使用 CSS 或 jQuery 来切换菜单。如果它们相互冲突,请尝试删除原始切换。

    【讨论】:

      猜你喜欢
      • 2013-01-18
      • 1970-01-01
      • 2015-05-26
      • 2013-09-30
      • 1970-01-01
      • 1970-01-01
      • 2013-10-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多