안녕하세요 다운로드 바 만드는 방법 알려드립니다

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>animation</title>
<style>
.outBox {
width: 600px;
height: 10px;
background-color: aqua;
}
.bar {
width: 5%;
height: 10px;
background-color: gold;
animation: barmove 10s infinite;
position: absolute;
}
@keyframes barmove {
0% {
width: 5%;
}
100% {width: 100%;}
}
.cl {
width: 12px;
height: 12px;
background-color: red;
border-radius: 50%;
position: absolute;
right: 0px;
}
</style>
</head>
<body>
<div class="outBox">
<div class="bar">
<div class="cl"></div>
</div>
</div>
</body>
</html>
'html' 카테고리의 다른 글
html 레이아웃 만드는 방법 (0) | 2023.06.11 |
---|---|
CSS의 absolute position 및 애니메이션 작동 메커니즘 이해 (0) | 2023.06.09 |
html 하단바 만드는 방법 (0) | 2023.06.07 |
vscode 단추 만드는 방법 및 CSS 이모티콘 활용하는 방법 (0) | 2023.06.02 |