desbest
desbest

Reputation: 4906

Is there a way to make a CSS gradient choppy?

See below for an example of what I want to achieve. choppy and smooth gradient

I can see the difference between the two, but if you can't, here's another image.

smooth and choppy gradient 2

Upvotes: 1

Views: 149

Answers (1)

Temani Afif
Temani Afif

Reputation: 273777

by applying another gradient on a top of it:

html {
   height:100%;
   background:
     linear-gradient(transparent,rgba(0,0,0,0.03)) 0 0/100% 20px,
     linear-gradient(#1ec5a6,#fff);
}

Upvotes: 3

Related Questions