我只想使用 css3 淡入和淡出图像(精灵)。下面的代码为所有图像提供了过渡。帮助我在 css 精灵中淡入和淡出下面的图像。
代码
<div class="navigation">
<div class="navigation1 process-normal" id="process"></div>
<div class="navigation1 works-normal" id="works"></div>
<div class="navigation1 team-normal" id="team"></div>
<div class="navigation1 products-normal" id="products"></div>
<div class="navigation1 services-normal" id="services"></div>
CSS
.services-active, .products-active, .works-active,
.process-normal, .process-active, .products-normal, .team-normal, .team-active,
.works-normal,.brain,.static,.services,.people,.servies-normal
{ display: block; background: url('allimages.png') no-repeat; }
.navigation1
{
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}