を動作しません。ここでは、コードです:アニメーションは、私は私のCSSクラス ためのいくつかのアニメーションを追加しようとしているCSS
#primary_nav_wrap li a:hover:after {
height: 4px;
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
background-color: #23a298;
bottom: 0;
content: "";
left: 0;
right:0;
margin-left:auto;
margin-right:auto;
position: absolute;
top: 96px;
width: calc(100% - 15px);
-webkit-transition: color 0.4s ease-out;
-moz-transition: color 0.4s ease-out;
-o-transition: color 0.4s ease-out;
-ms-transition: color 0.4s ease-out;
transition: color 0.4s ease-out;
}
すべてが正常であるが、この部分は動作しません:
-webkit-transition: color 0.4s ease-out;
-moz-transition: color 0.4s ease-out;
-o-transition: color 0.4s ease-out;
-ms-transition: color 0.4s ease-out;
transition: color 0.4s ease-out;
私はあなたのコードが必要です。 css、html – zynkn
HTMLコードを追加して、助けを得ることができます。私の知る限りでは、親要素への移行を与え、子要素で変更したいプロパティを与える必要があります。 –
https://jsfiddle.net/y7mkaq3b/ – Nedvid