Linear gradient

noun

say it: “LIN-ee-er GRAY-dee-ent” /ˈlɪniər ˈɡreɪdiənt/

A CSS image that fades smoothly from one color to another along a straight line, usually used as a background.

What is a linear gradient?

A linear gradient is a background that fades from one color to another along a straight line.

.banner { background: linear-gradient(to right, #ff7e5f, #feb47b); }

In a sentence

  • “The banner uses a linear gradient from deep orange at the top to soft yellow at the bottom, like a sunset.”

Level: Apprentice · More CSS terms at this level

Updated