Gallery with varied image sizes using aspect-ratio and object-fit
Gallery with varied image sizes using aspect-ratio and object-fit
July 29, 2024
Reading Progress Bar
Reading Progress Bar
July 30, 2024

July 30, 2024

Animated Gradient Background

An animated gradient background makes any website look elegant and cool. It makes your page more dynamic and pleasing to the eye.

CSS

/* ---------------------------------------------------------- */
/*                 Snippflow Gradient Animation               */
/* ---------------------------------------------------------- */

body {
    background: linear-gradient(45deg, #0d1741, #63D9B3);
    background-size: 400% 400%;
    animation: sf-gradient-animation 10s ease infinite;
}

@keyframes sf-gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

Result:

See the Pen Animated Gradient Background by Snippflow (@snippflow) on CodePen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Level Up Your Coding Skills

Get the best CSS, HTML, and JS snippets delivered to your inbox monthly. 🚀
No spam—just coding gold! 💻✨"

We don’t spam! Read our privacy policy for more info.

cookie
This website uses cookies to improve your experience. By using this website you agree to our Data Protection Policy.
Read more