CSS
-webkit-transition: -webkit-transform を指定
1 2 3 4 5 6 7 8 9 10 11 12 |
.transition { width: 25%; height: 100px; background-color: #ccc; transition: all 0.4s; -webkit-transition: -webkit-transform all 0.4s; } .transition:hover { width: 100%; background-color: #555; } |
HTML
1 |
<div class="transition"> </div> |
コメント