CSSトランジションを使用しているナビゲーションリンクがいくつかあります。
これがCSSです...
ul.yui-nav { list-style-type: none; }
ul.yui-nav li {
display: inline-block;
text-align: center;
height: 110px;
width: 110px;
border: none;
background: none;
}
ul.yui-nav li:hover {
background: none;
border: 1px solid #ccc;
border-radius: 50%;
height: 110px;
width: 110px;
transition: all 275ms;
-moz-transition: all 275ms; /* Firefox 4 */
-webkit-transition: all 275ms; /* Safari and Chrome */
-o-transition: all 275ms; /* Opera */
}
ul.yui-nav li a {
font-style: normal;
border-radius: 50%;
height: 100px;
width: 100px;
background: #ccc;
float: left;
color: #fff;
text-decoration: none;
font-size: 50px;
font-family: 'Oswald', sans-serif;
margin: 0 11px;
font-weight: 700;
margin: 5px 5px;
}
ul.yui-nav li a span { font-size: 16px; font-weight: 400; }
そして、ここにHTMLがあります...
<ul class="yui-nav">
<li><a href="#preface">Preface</a></li>
<li><a href="#step1">1<br/><span>Step</span></a></li>
<li><a href="#step2">2<br/><span>Step</span></a></li>
<li><a href="#step3">3<br/><span>Step</span></a></li>
<li><a href="#step4">4<br/><span>Step</span></a></li>
<li><a href="#step5">5<br/><span>Step</span></a></li>
<li><a href="#submit">Submit</a></li>
</ul>
そして、これがすべて機能するJS Fiddleです(テキストが正しく見えなくてもかまいません)... JS Fiddle
The problem I'm having is that when you hover over the circles, during the transition the border goes from a black square to the grey circle border. I just want a grey border to come out from the circle, and I don't understand why it's not happening correctly.