<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style scoped>
body{
margin: 0;
padding: 0;
background: #8a8989;
}
.container{
width: 500px;
height: 500px;
margin: 300px auto;
background: url(img1.jpg);
background-repeat: no-repeat;
animation: slider 5s infinite;
}
@keyframes slider {
25%{
background: url(img1.jpg);
background-repeat: no-repeat;
}
50%{
background: url(img2.jpg);
background-repeat: no-repeat;
}
50%{
background: url(img3.jpg);
background-repeat: no-repeat;
}
75%{
background: url(img4.jpg);
background-repeat: no-repeat;
}
}
</style>
<body>
<div class="container">
</div>
</body>
</html>
'Web > HTML | CSS|JAVASCRIPT' 카테고리의 다른 글
border-radius 정리(CSS) (0) | 2020.07.27 |
---|---|
간단한 hover 기능 구현(HTML, CSS) (0) | 2020.07.27 |
transfrom, keyframes 도형 회전하기(HTML, CSS) (0) | 2020.07.18 |
hover, transition를 이용한 버튼 (HTML, CSS) (0) | 2020.07.18 |
hover, keyframes를 이용한 버튼(HTML, CSS) (0) | 2020.07.15 |