code: function addClassFor ( element, className, duration ) {
          if (duration > 0) {
              addClass(element, className);
              setTimeout(function(){
                  removeClass(element, className);
              }, duration);
          }
      }
docs: Sets a class and removes it after [duration] ms.