Created
November 27, 2015 11:41
-
-
Save kyaido/5f3e3cced5c22bdf8d98 to your computer and use it in GitHub Desktop.
IE10 で transition させる際に width: 0; だと問題があって width: 0%; だと期待通り動くバグ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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