0
我在定位像這樣的表的圖像:如何僅在頁面加載時轉換圖像一次?
<img src="images/home/dress.png" alt="dress" width="138" height="344" class="homeimg">
這裏是CSS:
.homeimg {
position: absolute;
background-image: url(../images/home/dress.png);
background-repeat: no-repeat;
top: 97px;
left: 500px;
width: 138px;
max-height: 344px;
-webkit-transition: all 1s;
-moz-transition: all 1s;
-ms-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
}
我想這個圖像過渡只有一次在最初的頁面加載。不click
或hover
...
left: 16px;
...淡入從完全無形到有形。
重複: HTTP:// stackoverflow.com/questions/6805482/css3-transition-animation-on-load – roNn23 2015-01-15 15:35:37