너비 에 애니메이션을 구현하려면 CSS를 사용하여 속성을 사용하면 다음 코드를 실행할 수 있습니다. -
예시
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 300px;
height: 250px;
background-color: maroon;
color: white;
animation: myanim 3s;
}
@keyframes myanim {
30% {
width: 500px;
}
}
</style>
</head>
<body>
<h1>CSS width property</h1>
<div>
<h1>This is demo text!</h1>
</div>
</body>
</html>