전환 사용 CSS 전환과 함께 작동하는 속성입니다.
다음 코드를 실행하여 CSS에서 전환을 구현할 수 있습니다.
예
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 150px;
background: blue;
transition: width 4s;
}
div:hover {
width: 200px;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Hover over the below box to change its width.</p>
<div></div>
</body>
</html>