Skip to content

Commit

Permalink
Merge pull request #311 from google/issue-310
Browse files Browse the repository at this point in the history
Add miniscule delay to tab buttons to fix #310
  • Loading branch information
addyosmani committed May 22, 2015
2 parents cd314b9 + 9ae3758 commit c0655b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/layout/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,7 @@
left: 0;
position: absolute;
background: $layout-header-tab-highlight;
-webkit-animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0s alternate forwards;
-moz-animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0s alternate forwards;
animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0.01s alternate forwards;
transition: all 1s cubic-bezier(0.4, 0.0, 1, 1);
}

Expand Down
17 changes: 2 additions & 15 deletions src/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@
left: 0px;
position: absolute;
background: $tab-highlight-color;
-webkit-animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0s alternate forwards;
-moz-animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0s alternate forwards;
animation: border-expand 0.2s cubic-bezier(0.4, 0.0, 0.4, 1) 0.01s alternate forwards;
transition: all 1s cubic-bezier(0.4, 0.0, 1, 1);
}

Expand Down Expand Up @@ -103,19 +102,7 @@
}
}

@-webkit-keyframes border-expand {
0% {
opacity: 0;
width: 0;
}

100% {
opacity: 1;
width: 100%;
}
}

@-moz-keyframes border-expand {
@keyframes border-expand {
0% {
opacity: 0;
width: 0;
Expand Down

0 comments on commit c0655b6

Please sign in to comment.