편집 요약 없음 |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
#slider { | |||
overflow:hidden; | |||
position:relative; | |||
border:20px solid red; | |||
width:1440px; | |||
height:200px; | |||
} | } | ||
.image-box { | |||
. | width:5280px; | ||
height:100%; | |||
display:flex; | |||
flex-wrap:nowrap; | |||
animation: bannermove 5s linear infinite; | |||
} | } | ||
@keyframes bannermove { | |||
0% { | |||
transform: translate(0, 0); | |||
} | |||
} | 100% { | ||
transform: translate(-50%, 0); | |||
} | |||
} | } |
2023년 10월 6일 (금) 17:18 기준 최신판
#slider {
overflow:hidden;
position:relative;
border:20px solid red;
width:1440px;
height:200px;
}
.image-box {
width:5280px;
height:100%;
display:flex;
flex-wrap:nowrap;
animation: bannermove 5s linear infinite;
}
@keyframes bannermove {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(-50%, 0);
}
}