Please try this code:
#gradient
{
height:300px;
width:300px;
border:1px solid black;
font-size:30px;
background: linear-gradient(130deg, #ff7e00, #ffffff, #5cff00);
background-size: 200% 200%;
-webkit-animation: Animation 5s ease infinite;
-moz-animation: Animation 5s ease infinite;
animation: Animation 5s ease infinite;
}
@-webkit-keyframes Animation {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
@-moz-keyframes Animation {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
@keyframes Animation {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
<html>
<div id="gradient">
Hello
</div>
</html>
Answer from RP The Designer on Stack OverflowGradient-animator
gradient-animator.com
CSS Gradient Animator
.css-selector { background: linear-gradient(270deg); background-size: ; -webkit-animation: AnimationName 30s ease infinite; -moz-animation: AnimationName 30s ease infinite; -o-animation: AnimationName 30s ease infinite; animation: AnimationName 30s ease infinite; } @-webkit-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @-moz-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @-o-keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @keyframes AnimationName { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
Creating a Modern Gradient Slider with HTML, CSS & a Touch of Animation
How would one create a moving gradient background like on Stripe.com home page
looks like they are using canvas actually; here is an example I found using a similar technique. https://www.html5canvastutorials.com/advanced/html5-canvas-animated-gradient-background/
Edit:
I also pulled this https://gist.github.com/GuyARoss/d3bf5704c9b4833aa62fd5af525d2d8c from their site.
More on reddit.comCSS animation / keyframes not working on iOS 10.2
I've tested the latest version of safari on ios and it works. Try adding the browser prefix and see if it improves: .example { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-transition: all .5s; transition: all .5s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background: -webkit-linear-gradient(top, white, black); background: linear-gradient(to bottom, white, black); }.spinner { width: 100px; height: 100px; border-radius: 50%; border: 5px solid #f59338; border-top-color: #FFFFFF; z-index: 9999; -webkit-animation: spinner .9s ease infinite; animation: spinner .9s ease infinite; display: none; margin: auto; } @-webkit-keyframes spinner{ from {-webkit-transform: rotate(0deg);transform: rotate(0deg);} to {-webkit-transform: rotate(360deg);transform: rotate(360deg);} } @keyframes spinner{ from {-webkit-transform: rotate(0deg);transform: rotate(0deg);} to {-webkit-transform: rotate(360deg);transform: rotate(360deg);} } More on reddit.com
Tips on how to do an animated blurred gradient background? Like that Mac OS Screensaver.
A picture of what you are looking to achieve would be helpful. More on reddit.com
Videos
Animated Gradient Background with Pure CSS - YouTube
14:44
CSS Morphing Gradients Animated Background - YouTube
08:27
Transform your designs with stunning CSS gradient animations! - ...
14:00
Fun ways to animate CSS gradients - YouTube
22:08
We can FINALLY animate gradients with CSS! - YouTube
02:28
Animated Gradient Background using HTML CSS | CSS Animation - YouTube
Top answer 1 of 5
72
Please try this code:
#gradient
{
height:300px;
width:300px;
border:1px solid black;
font-size:30px;
background: linear-gradient(130deg, #ff7e00, #ffffff, #5cff00);
background-size: 200% 200%;
-webkit-animation: Animation 5s ease infinite;
-moz-animation: Animation 5s ease infinite;
animation: Animation 5s ease infinite;
}
@-webkit-keyframes Animation {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
@-moz-keyframes Animation {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
@keyframes Animation {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
<html>
<div id="gradient">
Hello
</div>
</html>
2 of 5
34
Using CSS variables it's now a trivial task.
Here is a basic example (hover to see the result)
@property --a{
syntax: '<angle>';
inherits: false;
initial-value: 90deg;
}
@property --l{
syntax: '<percentage>';
inherits: false;
initial-value: 10%;
}
@property --c{
syntax: '<color>';
inherits: false;
initial-value: red;
}
.box {
cursor:pointer;
height:200px;
transition:--a 0.5s 0.1s,--l 0.5s,--c 0.8s;
background:linear-gradient(var(--a), var(--c) var(--l),blue,var(--c) calc(100% - var(--l)));
}
.box:hover {
--a:360deg;
--l:40%;
--c:green;
}
<div class="box"></div>
More details from my article: https://dev.to/afif/we-can-finally-animate-css-gradient-kdk
Netlify
animated-gradient-background-generator.netlify.app
Animated Gradient Background Generator
.gradient-background { background: linear-gradient(300deg,deepskyblue,darkviolet,blue); background-size: 180% 180%; animation: gradient-animation 18s ease infinite; } @keyframes gradient-animation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { ...
Exclusive Addons
exclusiveaddons.com โบ best elementor addons - exclusive addons โบ mastering css gradient animation
Mastering CSS Gradient Animation
Our goal is simple: create a gorgeous, multi-color linear gradient that drifts smoothly across the background of an element. This hands-on walkthrough will give you the foundational skills to start experimenting on your own. First things first, we need a place to put our animation. Any block-level HTML element will do the trick, like a <div> or a <section>. For this example, let's keep it simple with a <div> and give it a class so we can easily target it in our CSS...
Published ย July 22, 2025
The Art of Web
the-art-of-web.com โบ css โบ animated-background-gradients
CSS: Animated Background Gradients
In these examples a simple 'flare' effect is moved across the button: ... The trick seems to be that you need to specifically define a tranisition for each variable as just transition: 0.5s doesn't produce an animation. Here we have set the transition for --f to 0.5s. @property --f { syntax: "<percentage>"; inherits: false; initial-value: 10%; } #gradient_buttons > div { background-image: radial-gradient(circle at var(--f) var(--f), rgba(255,255,255,0.75), rgba(255,255,255,0) 2em); transition: --f 0.5s; } #gradient_buttons > div:hover { --f: 90%; }
Web.dev
web.dev โบ articles โบ speedy css tip! animated gradient text
Speedy CSS Tip! Animated Gradient Text | Articles | web.dev
November 4, 2022 - .boujee-text { --bg-size: 400%; --color-one: hsl(15 90% 55%); --color-two: hsl(40 95% 55%); font-size: clamp(3rem, 25vmin, 8rem); background: linear-gradient( 90deg, var(--color-one), var(--color-two), var(--color-one) ) 0 0 / var(--bg-size) 100%; color: transparent; background-clip: text; -webkit-background-clip: text; animation: move-bg 8s infinite linear; }
Ibelick
ibelick.com โบ blog โบ create-animated-text-gradient-with-css
Creating an animated text gradient with CSS
May 5, 2023 - span { background: radial-gradient( circle at 100%, #b2a8fd, #8678f9 50%, #c7d2fe 75%, #9a8dfd 75% ); font-weight: 600; background-size: 200% auto; color: #000; background-clip: text; -webkit-text-fill-color: transparent; animation: animatedTextGradient 1.5s linear infinite; } @keyframes animatedTextGradient { to { background-position: 200% center; } } ... background: radial-gradient(...): Creates a radial gradient with a circle at 100%, using the specified color stops.
Melanie Richards
melanie-richards.com โบ blog โบ animating-gradients
Fun with animated gradients | Melanie Richards
December 4, 2016 - This effect employs the same general principles as #4, except this time we're animating at a 135deg angle, and the background is scaled to 400% so that the last quarter of the gradient covers the box when the animation ends. The example assumes the callout is at the top of the page. There's a 2 second delay but in production a longer delay (perhaps 5 seconds) would be better to allow the user time to cognitively process the page layout. If your callout is not at the top of a page, you may want hook this animation into a Javascript scroll event (in that case, you could instead use a CSS transition instead of an animation).
FreeFrontend
freefrontend.com โบ css-gradient-examples
137 CSS Gradient Examples
4 days ago - The dial dynamically reveals cool-to-warm gradient colors based on the current value, enhancing the physical โfeelโ of a smart home control panel. ... This is a Skeuomorphic Reversi Radio Button component. It overrides standard browser inputs to create a tactile, three-dimensional interaction mechanism. Its function is to replace flat state changes with physical motion, animating the selection exactly like a two-sided piece flipping over on a board. ... This is a Pure CSS Cute Animal Illustration.
Amit Merchant
amitmerchant.com โบ animated-gradient-effect-in-css
Animated gradient text in CSS - Amit Merchant
February 28, 2023 - And weโre doing this animation infinitely. Setting the background-size property to 500% auto ensures that the gradient effect is applied to the entire text. And the background-clip property is set to text to ensure that the gradient effect is applied only to the text and not to the background.
Vercel
gradient-tool-lovat.vercel.app
Gradient Animator
We cannot provide a description for this page right now