Skip to content

Commit

Permalink
Removed tab transitions [fix #7]
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislas Polu committed Jul 8, 2014
1 parent 5074d8d commit a1bae6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion controls/strip/strip.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
overflow: hidden;

cursor: pointer;
transition: left 0.1s;
/* transition: left 0.1s; */
}

.strip .tabs .tab > div.back-loading {
Expand Down
2 changes: 0 additions & 2 deletions controls/strip/strip_c.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,11 @@ var strip_c = function(spec, my) {

if((idx + 1) * (my.TAB_WIDTH + my.TAB_MARGIN) + tabs_left > my.wrapper_el.width()) {
my.tabs_el.css({
'transition': 'left 0.2s',
'left': (my.wrapper_el.width() - (idx + 1) * (my.TAB_WIDTH + my.TAB_MARGIN)) + 'px'
});
}
else if(-tabs_left > idx * (my.TAB_WIDTH + my.TAB_MARGIN)) {
my.tabs_el.css({
'transition': 'left 0.2s',
'left': -(idx * (my.TAB_WIDTH + my.TAB_MARGIN)) + 'px'
});
}
Expand Down

0 comments on commit a1bae6f

Please sign in to comment.