Skip to content

Commit

Permalink
Minor fix to bubble-top effect as it wasn't animating in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLunn committed Feb 28, 2014
1 parent f0418fa commit d386afb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/hover-min.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions css/hover.css
Original file line number Diff line number Diff line change
Expand Up @@ -1827,12 +1827,13 @@
border-style: solid;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: top;
transition-property: top;
left: -webkit-calc(50% - 10px);
left: calc(50% - 10px);
top: 0;
border-width: 0 10px 10px 10px;
border-color: transparent transparent #e1e1e1 transparent;
-webkit-transition-property: top;
transition-property: top;
}

.bubble-top:hover:before {
Expand Down
4 changes: 3 additions & 1 deletion scss/effects/_bubble-top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
content: '';
border-style: solid;
transition-duration: $defaultDuration;
transition-property: top;
left: calc(50% - #{$tipWidth});
top: 0;
border-width: 0 $tipWidth $tipHeight $tipWidth;
border-color: transparent transparent $tipColour transparent;
transition-property: top;

}

&:hover:before {
Expand Down

0 comments on commit d386afb

Please sign in to comment.