Код: Выделить всё
img.rotate {
animation-name: rotate;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
Код: Выделить всё
$('img').css('animation-duration', '2s');
Как мне это сделать?
Подробнее здесь: https://stackoverflow.com/questions/203 ... -animation
Мобильная версия