html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div class="container">
<div class="slider slide">
<img src="" alt="img1">
<img src="" alt="img2">
<img src="" alt="img3">
<img src="" alt="img4">
</div>
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
html,* {
margin:0;
padding:0;
}
.container{
width:350px;
margin:5px auto;
border:4px solid;
overflow:hidden;
}
.slider{
width:1416px;
height:200px;
transition:1s ease;
}
.slide{
animation: slide 15s ease infinite;
}
img{
display:inline-block;
width:350px;
height:inherit;
}
img:nth-child(1){
background-color: red;
}
img:nth-child(2){
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run