전환 기간 사용 CSS의 속성을 사용하여 CSS 전환 효과를 완료하는 데 걸리는 시간(초 또는 밀리초)을 설정합니다. −
예시
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 150px;
background: blue;
transition-property: height;
transition-duration: 2s;
}
div:hover {
height: 200px;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Hover over the below box to change its height.</p>
<div></div>
</body>
</html>