Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

configurable slide up/down speed for slide effect

default speeds to be the same for smoother effect
  • Loading branch information...
commit adc6cac8e08b7588e45e186b35e56ea27e6409b9 1 parent d6a877a
@bradrobertson bradrobertson authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/tabs/tabs.js
View
12 src/tabs/tabs.js
@@ -26,6 +26,10 @@
event: 'click',
rotate: false,
+ // slide effect
+ slideUpSpeed: 400,
+ slideDownSpeed: 400,
+
// 1.2
history: false
},
@@ -51,7 +55,7 @@
*/
fade: function(i, done) {
- var conf = this.getConf(),
+ var conf = this.getConf(),
speed = conf.fadeOutSpeed,
panes = this.getPanes();
@@ -66,8 +70,10 @@
// for basic accordions
slide: function(i, done) {
- this.getPanes().slideUp(200);
- this.getPanes().eq(i).slideDown(400, done);
+ var conf = this.getConf();
+
+ this.getPanes().slideUp(conf.slideUpSpeed);
+ this.getPanes().eq(i).slideDown(conf.slideDownSpeed, done);
},
/**
Please sign in to comment.
Something went wrong with that request. Please try again.