We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6a877a commit adc6cacCopy full SHA for adc6cac
src/tabs/tabs.js
@@ -26,6 +26,10 @@
26
event: 'click',
27
rotate: false,
28
29
+ // slide effect
30
+ slideUpSpeed: 400,
31
+ slideDownSpeed: 400,
32
+
33
// 1.2
34
history: false
35
},
@@ -51,7 +55,7 @@
51
55
*/
52
56
fade: function(i, done) {
53
57
54
- var conf = this.getConf(),
58
+ var conf = this.getConf(),
59
speed = conf.fadeOutSpeed,
60
panes = this.getPanes();
61
@@ -66,8 +70,10 @@
66
70
67
71
// for basic accordions
68
72
slide: function(i, done) {
69
- this.getPanes().slideUp(200);
- this.getPanes().eq(i).slideDown(400, done);
73
+ var conf = this.getConf();
74
75
+ this.getPanes().slideUp(conf.slideUpSpeed);
76
+ this.getPanes().eq(i).slideDown(conf.slideDownSpeed, done);
77
78
79
/**
0 commit comments