Свойство animation-duration
Описание
Устанавливает время длительности анимации.
Синтаксис
animation-duration: время;
Пример
<!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 ease-in-out;
animation-duration: 5s;
}
@keyframes rotate-name{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
</style>
<div id='anima'></div>
</body>
</html>
Читайте также
Свойство text-emphasis-position
Устанавливает положение маркеров, отображаемых с помощью свойства text-emphasis-style.
Свойство transform
Трансформирует элемент, в частности, позволяет его масштабировать, вращать, сдвигать, наклонять, ...
Свойство padding-right
Устанавливает расстояние от внутреннего правого края рамки элемента до воображаемого прямоугольника.
Стиль первого символа в тексте
Псевдоэлемент ::first-letter определяет стиль первого символа в тексте элемента, к которому добав...
Соседние селекторы
Соседними называются элементы веб-страницы, когда они следуют непосредственно друг за другом в ко...