CSS3 移行ソリューションは次のとおりです。
jsフィドル
CSS
.thumb .text {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: #999;
background: rgba(0, 0, 0, 0.3);
text-align: center;
-webkit-transition:opacity .5s ease;
-moz-transition:opacity .5s ease;
transition:opacity .5s ease;
opacity:0;
}
.thumb:hover .text {
opacity:1;
}
.thumb img {
opacity:1;
-webkit-transition:opacity .5s ease;
-moz-transition:opacity .5s ease;
transition:opacity .5s ease;
}
.thumb:hover img {
opacity:0;
}
サポート
現在、CSS3 トランジションのサポートはかなり充実しており、すべての主要なブラウザー (Safari、Chrome、Opera、Firefox) の最新バージョンはすべてトランジションをサポートしています。一方、IE はバージョン 10 からのみサポートしています。トランジションは、何かがサポートしていないときにクラッシュしたり燃えたりしないという点で優れています。要素の不透明度は変更されますが、遷移はありません。
参考文献