Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style type="text/css">
- body{
- margin: 0px;
- width: 100%;
- padding: 0px;
- }
- .ani-top{position:relative;animation:animatetop 0.5s}
- @keyframes animatetop{from{top:-500px;opacity:0}
- to{top:0;opacity:1}}
- </style>
- </head>
- <body>
- <div style="max-width:500px">
- <img class="slidetop ani-top" src="file:///C:/Users/Administrator/Desktop/download%20(1).jpg" style="width:100%">
- <img class="slidetop ani-top" src="file:///C:/Users/Administrator/Desktop/download%20(2).jpg" style="width:100%">
- <img class="slidetop ani-top" src="file:///C:/Users/Administrator/Desktop/download.jpg" style="width:100%">
- <img class="slidetop ani-top" src="file:///C:/Users/Administrator/Desktop/download%20(3).jpg" style="width:100%">
- </div>
- <script type="text/javascript">
- var pos = 0;
- slideshow();
- function slideshow() {
- var i;
- var x = document.getElementsByClassName("slidetop");
- for (i = 0; i < x.length; i++) {
- x[i].style.display = "none";
- }
- pos++;
- if (pos > x.length) {pos = 1}
- x[pos-1].style.display = "block";
- setTimeout(slideshow, 2500);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement