css3 图标变大变小在变小变大

时间:2023-05-20 22:55:14

css3

 @-webkit-keyframes anLoca {
from {
-webkit-transform: scale3d(1, 1, 1);
}
to {
-webkit-transform: scale3d(0.9, 0.9, 0.9);
}
} .indexLeft img {
-webkit-animation: anLoca 1s;
-webkit-animation-iteration-count: 10000;
-webkit-animation-direction: alternate;
}

html

 <div class="indexLeft WrapTit">
<img src="fishstyle/images/40539907493374194.gif" alt="" />
</div>