html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="slide"></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
body {
margin: 0;
}
#slide, #slide:after {
display: block;
width: 100vw;
height: 70vw;
background: url(https://images.unsplash.com/photo-1533090161767-e6ffed986c88) 100%/100% no-repeat;
animation: slide1 linear 10s infinite;
}
#slide:after {
content: "";
animation: slide2 linear 10s infinite;
}
@keyframes slide1 {
0% {
background-position: -100vw 0%;
}
100% {
background-position: 0vw 0%;
}
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run