Animated Banner Header
How do I make an animated banner header?
Subtle gradient rotation. Testing for a landing page design. . What is a animated banner header? How do you make a animated banner header? This script and codes were developed by Chris Johnston on 03 January 2023, Tuesday.
Animated Banner Header - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated Banner Header</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="container"> <div id="bg"> <img src="http://cjohn.design/img/guy-in-geodesic.jpg"> </div> <div id="tint"> <h1>Headline &<br>Call to Action</h1> </div>
</div> <script src="js/index.js"></script>
</body>
</html>
Animated Banner Header - Script Codes CSS Codes
body { margin: 0;
}
#bg { position: absolute; top: -5em; left: 0; z-index: -1; width: 100%;
}
#bg img { width: 100%;
}
#tint { position: relative; top: 0; left: 0; height: 36em; opacity: 0.7; padding: 12em 2em;
}
#tint h1 { color: white; font-family: "arial", san serif; margin: 0;
}
Animated Banner Header - Script Codes JS Codes
/* From François Robichet - https://codepen.io/Calvein/pen/vNpyqm */
var tint = document.getElementById("tint");
var deg = 0;
var tick = function tick() { tint.style.background = "background linear-gradient(" + deg++ + "deg, #008751, #0067B2)"; requestAnimationFrame(tick);
};
requestAnimationFrame(tick);
Developer | Chris Johnston |
Username | cjohndesign |
Uploaded | January 03, 2023 |
Rating | 3 |
Size | 2,296 Kb |
Views | 12,144 |
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 |
SVG Firework Elements | 175,810 Kb |
Logo Animation | 2,682 Kb |
Fireworks with Snapsvg | 15,701 Kb |
A Pen by Chris Johnston | 1,413 Kb |
SVG map selector | 31,155 Kb |
Love Potion Studios Logo | 6,719 Kb |
Example | 1,570 Kb |
Democracy Day Button | 4,796 Kb |
Be1More Button | 8,756 Kb |
Contact Form | 4,490 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 |
Fading gradient button | Insprd | 1,713 Kb |
Roman Numerical Converter | Vhall_io | 2,102 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Wikipedia Viewer | Thalpha | 4,426 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
A Pen by Brendan Skousen | Bskousen | 2,954 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Fading Navigation Bar | J-w-v | 2,805 Kb |
Background-blend-mode Test | 0x04 | 4,744 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 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!