我想使用懸停的CSS過渡效果的動畫效果獲得按鈕可見性,但效果不起作用。過渡效果不起作用
我無法找到我的錯誤,任何人都可以幫助我解決我的問題。
我的HTML & CSS代碼如下所示。
.prodiv3
{
\t background-color:#d79e37;
\t position:relative;
\t z-index:999;
}
.product-box a
{
\t text-decoration:none;
}
.prodiv3 h2
{
\t padding:0px !important;
\t margin: 0px !important;
\t color: #fff;
\t padding-left:15px !important;
}
.prodiv3 p
{
\t color: #000000;
\t padding-left:15px !important;
}
.link-icon
{
\t position:relative;
\t bottom:120px;
\t left:10px;
\t visibility:hidden;
\t width:60px;
\t height:60px;
\t background:url(../images/link-icon.png) no-repeat center center #ff411c;
\t //display:block;
\t border-radius:100%;
}
.product-box a:hover .link-icon
{
\t visibility:visible;
\t -moz-transition: all 1s ease-in !important;
\t -webkit-transition: all 1s ease-in !important;
\t -o-transition: all 1s ease-in !important;
\t transition: all 1s ease-in !important;
}
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6 rowm">
<div class="product-box">
<a href="continuous_parison.php">
<div class="prodiv2">
<img src="http://aew.worldwebinfotech.in/images/card1.jpg" alt="" class="img-responsive">
<div class="prodiv3">
<h2>Continuous<br> Parison Series</h2>
<p>Ranging from : 200 ML -5000ML</p>
<button class="link-icon"></button>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
'transition'與像'0'和'1'數字值的工作原理。所以它不能用'visibility'或'display' –