Is it possible to remove the slide animation in mmenu?

自古美人都是妖i 提交于 2019-12-25 04:24:20

问题


I can't find the setting to remove the opening slide animation introduced by mmenu. I have managed to get it to close instantly by setting transition duration to zero.

$("nav#menu").mmenu({
  searchfield: false,
  slidingSubmenus: false,
  header: {
    add : true,
    update : true,
    title : 'application'
  },
}, {
  transitionDuration: 0,
});

回答1:


By changing the values from 0.4s to 0.0s like below in the jquery.mmenu.all.css file i managed to open the menu without the slide animation.

.mm-fixed-bottom {
  -webkit-transition: none 0.0s ease;
  -moz-transition: none 0.0s ease;
  -ms-transition: none 0.0s ease;
  -o-transition: none 0.0s ease;
}



回答2:


Think you need 'transitionDuration' option, set it to 0. look on this page.



来源:https://stackoverflow.com/questions/25051887/is-it-possible-to-remove-the-slide-animation-in-mmenu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!