About 671,000 results
Open links in new tab
  1. CSS Gradients - W3Schools

    CSS gradients let you display smooth transitions between two or more specified colors. CSS defines three types of gradients: Linear Gradients (goes down/up/left/right/diagonally) Radial Gradients (defined by their center) Conic Gradients (rotated around a center point)

  2. CSS linear-gradient() Function - W3Schools

    The CSS linear-gradient() function creates a linear gradient as the background. To create a linear gradient you must define at least two color stops. Color stops are the colors you want to render smooth transitions among.

  3. html - How to make background color transition gradually into …

    Jun 11, 2023 · I would like to make my website's background to form a gradient from green at the top to blue halfway down the page, with a smooth gradient between the two colors. How can I …

  4. html - Change the flow of colours in a CSS gradient - Stack Overflow

    Jan 8, 2016 · 100% = Container's height (default) or background-size in Y-axis (if it is specified) for a vertical gradient. 100% = Container's width (default) or background-size in X-axis (if it is specified) for horizontal gradient.

  5. html - CSS: how to create an infinitely-moving repeating linear ...

    Sep 8, 2020 · I've tried a few things, starting with just setting background: linear-gradient(120deg, red, green, blue) and animating the background-position CSS property to simulate the gradient moving.

  6. How TO - Background Gradient on Scroll - W3Schools

    Learn how to create a gradient background color on scroll. This linear gradient starts at the top. It starts green, transitioning to blue. Scroll to see the effect. Create a linear gradient background color that starts from the top. It starts from teal/green to blue: Tip: To learn more about gradient backgrounds, go to our CSS Gradients Tutorial.

  7. The State of Changing Gradients with CSS Transitions and Animations

    Mar 26, 2021 · We can also apply this to a radial-gradient() (nothing but the background declaration changes): background: radial-gradient(circle, var(--c0) var(--pos, 0%), var(--c1) 0); Growing discs (live demo, Blink browsers with flag only). The exact same tactic works for conic-gradient() as well: background: conic-gradient(var(--c0) var(--pos, 0%), var ...

  8. Using CSS gradients - CSS: Cascading Style Sheets | MDN - MDN Web Docs

    Feb 10, 2025 · Gradients can be used anywhere you would use an <image>, such as in backgrounds. Because gradients are dynamically generated, they can negate the need for the raster image files that traditionally were used to achieve similar effects.

  9. CSS Gradients - CSS-Tricks

    Mar 3, 2014 · Just as you can declare the background of an element to be a solid color in CSS, you can also declare that background to be a gradient. Using gradients declared in CSS, rather using an actual image file, is better for control and performance.

  10. CSS gradients | Practice with Examples - W3docs

    CSS gradients display progressive transitions between two or more specified colors. Gradients can be used in backgrounds. There are three types of gradients: The linear-gradient creates an image that consists of a smooth transition between two or more colors along a straight line.

  11. Some results have been removed
Refresh