Свойство animation-delay
Описание
Устанавливает задержку старта анимации.
Синтаксис
animation-delay: время;
Значение | Описание |
s | Секунда |
ms | Миллисекунда |
1s = 1000ms |
Пример
<!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 ease-in-out infinite;
animation-delay: 3.5s;
}
@keyframes rotate-name{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
</style>
<div id='anima'></div>
</body>
</html>
Читайте также
Свойство border-style
Устанавливает стиль границы элемента.
Свойство box-shadow
Добавляет тень к элементу.<br>Разрешено использовать несколько теней, указывая их через зап...
Свойство background-position-y
Задаёт начальное положение фонового изображения по оси Y, установленного с помощью свойства backg...
Свойство z-index
Любые позиционированные элементы на веб-странице могут накладываться друг на друга в определенном...
Свойство content
Позволяет вставлять генерируемое содержание в текст веб-страницы, которое первоначально в тексте ...