Свойство animation-play-state
Описание
Указывает состояние анимации. Анимацию можно поставить на паузу и после этого воспроизвести с того места, где она была остановлена.
Синтаксис
animation-play-state: running | paused;
Значение | Описание |
running | Проигрывать анимацию. |
paused | Поставить анимацию на паузу. |
Пример
<!DOCTYPE html>
<html lang='ru'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
</head>
<body>
<style>
#anima{
width: 105px;
height: 105px;
border-radius: 5px;
background-color: lightgreen;
border: 3px dotted black;
animation: rotate-name 3s 1s;
animation-fill-mode: both;
animation-play-state: running;
}
@keyframes rotate-name{
0%{
transform: translateX(0) rotate(0);
}
100%{
transform: translateX(200px) rotate(2turn);
}
}
</style>
<div id='anima'></div>
</body>
</html>
Читайте также
Свойство empty-cells
Указывает, как должна оторажаться граница или фон в ячейке, если она пустая.<br><br>Я...
Свойство visibility
Предназначен для отображения или скрытия элемента, включая рамку вокруг него и фон. При скрытии э...
Свойство margin-right
Устанавливает величину отступа от правой границы текущего элемента до внутренней границы его роди...
Свойство text-stroke-color
Устанавливает цвет контура вокруг букв и символов текста.
Стиль подсказывающего текста
Псевдоэлемент, который используется для вывода контента после содержимого элемента, к которому он...