Skip to content

Instantly share code, notes, and snippets.

@kyaido
Created November 27, 2015 11:41
Show Gist options
  • Save kyaido/5f3e3cced5c22bdf8d98 to your computer and use it in GitHub Desktop.
Save kyaido/5f3e3cced5c22bdf8d98 to your computer and use it in GitHub Desktop.
IE10 で transition させる際に width: 0; だと問題があって width: 0%; だと期待通り動くバグ
a {
position: relative;
&:after {
content: "";
display: inline-block;
position: absolute;
bottom: -5px;
left: 50%;
// Don't work 'width: 0;' on IE10!!!
width: 0%;
height: 1px;
background-color: currentColor;
transform: translateX(-50%);
transition: width .3s;
}
&:hover:after {
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment