Moving picture header
How do I make an moving picture header?
A demo showing a moving picture header, could be used as header. What is a moving picture header? How do you make a moving picture header? This script and codes were developed by Jaflo on 12 September 2022, Monday.
Moving picture header - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Moving picture header</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ #wrap { position: absolute; top: 0; left: 0; width: 100%; height: 205px; margin: 0; padding: 0; overflow: hidden;
}
#header { position: absolute; top: 0; left: 0; width: 100%; height: 200px; margin: 0; padding: 0; animation: move 20s infinite linear;
}
@keyframes move { from { left: 0; } to { left: -2450px; }
}
#header > div { width: 600px; height: 200px; margin: 0; padding: 0; border-right: 2px solid black; background-position: center; background-size: 600px auto; display: block; position: absolute; border-bottom: 5px solid black;
}
#header > div.one { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Rho_Ophiuchi.jpg/611px-Rho_Ophiuchi.jpg); margin-left: 0;
}
#header > div.two { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/2b/Dawn_at_swifts_creek_panorama.jpg/1280px-Dawn_at_swifts_creek_panorama.jpg); margin-left: 602px;
}
#header > div.three { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Mist_-_Ensay_region3.jpg/1024px-Mist_-_Ensay_region3.jpg); margin-left: 1204px;
}
#header > div.four { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Lower_Manhattan_from_Staten_Island_Ferry_Jan_2006.jpg/1280px-Lower_Manhattan_from_Staten_Island_Ferry_Jan_2006.jpg); margin-left: 1806px;
}
#header > div.five { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Mt_hotham_alpine_range_scenery.jpg/1024px-Mt_hotham_alpine_range_scenery.jpg); margin-left: 2408px;
}
#header > div.six { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Sydney_Harbour_Bridge_night.jpg/1024px-Sydney_Harbour_Bridge_night.jpg); margin-left: 3010px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="wrap"><div id="header"> <div class="one"></div> <div class="two"></div> <div class="three"></div> <div class="four"></div> <div class="five"></div> <div class="six"></div>
</div> <script src="js/index.js"></script>
</body>
</html>
Moving picture header - Script Codes CSS Codes
#wrap { position: absolute; top: 0; left: 0; width: 100%; height: 205px; margin: 0; padding: 0; overflow: hidden;
}
#header { position: absolute; top: 0; left: 0; width: 100%; height: 200px; margin: 0; padding: 0; animation: move 20s infinite linear;
}
@keyframes move { from { left: 0; } to { left: -2450px; }
}
#header > div { width: 600px; height: 200px; margin: 0; padding: 0; border-right: 2px solid black; background-position: center; background-size: 600px auto; display: block; position: absolute; border-bottom: 5px solid black;
}
#header > div.one { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Rho_Ophiuchi.jpg/611px-Rho_Ophiuchi.jpg); margin-left: 0;
}
#header > div.two { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/2b/Dawn_at_swifts_creek_panorama.jpg/1280px-Dawn_at_swifts_creek_panorama.jpg); margin-left: 602px;
}
#header > div.three { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Mist_-_Ensay_region3.jpg/1024px-Mist_-_Ensay_region3.jpg); margin-left: 1204px;
}
#header > div.four { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Lower_Manhattan_from_Staten_Island_Ferry_Jan_2006.jpg/1280px-Lower_Manhattan_from_Staten_Island_Ferry_Jan_2006.jpg); margin-left: 1806px;
}
#header > div.five { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Mt_hotham_alpine_range_scenery.jpg/1024px-Mt_hotham_alpine_range_scenery.jpg); margin-left: 2408px;
}
#header > div.six { background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Sydney_Harbour_Bridge_night.jpg/1024px-Sydney_Harbour_Bridge_night.jpg); margin-left: 3010px;
}
Moving picture header - Script Codes JS Codes
/*
Maybe someone can help with the jumping back?
Pictures from wikipedia commons:
http://commons.wikimedia.org/wiki/File:Dawn_at_swifts_creek_panorama.jpg
http://commons.wikimedia.org/wiki/File:Mist_-_Ensay_region3.jpg
http://commons.wikimedia.org/wiki/File:Lower_Manhattan_from_Staten_Island_Ferry_Jan_2006.jpg
http://commons.wikimedia.org/wiki/File:Mt_hotham_alpine_range_scenery.jpg
http://commons.wikimedia.org/wiki/File:Sydney_Harbour_Bridge_night.jpg
*/
Developer | Jaflo |
Username | jaflo |
Uploaded | September 12, 2022 |
Rating | 3 |
Size | 2,984 Kb |
Views | 32,384 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
SimpleGroove bookmarklet | 263,204 Kb |
Wobble menu change animation | 2,443 Kb |
A note | 3,325 Kb |
A Pen by jaflo | 2,066 Kb |
Styled calendar | 7,526 Kb |
Shopping cart | 4,412 Kb |
Scroll bar manipulation | 2,344 Kb |
Cloud upload | 2,774 Kb |
Random symbols | 2,001 Kb |
Share button for images | 2,715 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Canvas stripes | Adrianparr | 1,948 Kb |
Animated SVG stroke-dasharray | Netsi1964 | 3,179 Kb |
Lunar eclipse | Ademilter | 2,056 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Vue.js Lazy Loading | Kjbrum | 3,620 Kb |
PNotify Demo | Adittmar | 1,731 Kb |
Savemedia1.1 | EdsonAlcala | 2,148 Kb |
CSS Patterns | Alyda | 3,953 Kb |
Two Element Typeface | Chrisota | 4,942 Kb |
Social Profiles | Lachlanjc | 1,939 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!