{"id":306104,"date":"2020-04-07T07:10:58","date_gmt":"2020-04-07T14:10:58","guid":{"rendered":"https:\/\/css-tricks.com\/?post_type=chapters&p=306104"},"modified":"2021-09-10T12:15:17","modified_gmt":"2021-09-10T19:15:17","slug":"hard-stop-gradients","status":"publish","type":"chapters","link":"https:\/\/css-tricks.com\/books\/greatest-css-tricks\/hard-stop-gradients\/","title":{"rendered":"Hard Stop Gradients"},"content":{"rendered":"\n

Here’s an example of “traditional” gradients where colors slowly fade from one to another.<\/p>\n\n\n\n

\"\"
These are all created with CSS gradients<\/a>.<\/figcaption><\/figure>\n\n\n\n

There is a concept called color-stops with gradients that allow you to control the position of where colors start transitioning from one to the next. Here’s an example where the first color hangs on for most of the way:<\/p>\n\n\n\n