Avoiding jagged edges on CSS linear gradients
TL;DR Prevent a jagged edge when using percentages on linear gradients by using calc to add a 1px blur.
background: linear-gradient(176deg, white, white 75%, black calc(75% + 1px), black 100%);
Ben Gammon
Creative Developer
TL;DR Prevent a jagged edge when using percentages on linear gradients by using calc to add a 1px blur.
background: linear-gradient(176deg, white, white 75%, black calc(75% + 1px), black 100%);