Permalink
Browse files

Decreased slide time on main menu from 200ms to 100ms as per usabilit…

…y expert Jakob Nielsen's advice for large drop-down menus.
  • Loading branch information...
1 parent 135b3b2 commit 719517cdf79a5efb5f219bccb410baf8c6aa1a8a @morrisonlevi morrisonlevi committed May 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/common.js
View
@@ -67,7 +67,7 @@ $(document).ready(function() {
var activate = function(){
clickedMenu.addClass('current');
clickedMenu.find("div.children").appendTo(container);
- container.find("div.children").slideUp(0).slideDown("fast",
+ container.find("div.children").slideUp(0).slideDown(100,
function(){ container.removeClass('busy'); }
);
};
@@ -79,7 +79,7 @@ $(document).ready(function() {
activeMenu.removeClass('current');
}
if (activeSubMenu.length) {
- activeSubMenu.slideUp('fast', function(){
+ activeSubMenu.slideUp(100, function(){
activeSubMenu.appendTo(activeMenu);
if (activeMenu[0] != clickedMenu[0])
activate();

0 comments on commit 719517c

Please sign in to comment.