d3js.org

Get a striped background using D3 without gradients (opens in new tab)

<h2> Ready for stripes? </h2> <p>Usually, we have <strong>two options</strong> for a striped background on a website: </p> <ul> <li>define a gradient in CSS;</li> <li>or repeat a bitmap image tile.</li> </ul> <p>Both have problems. CSS gradients, which use color stops immediately next to one another to produce the effect without gradation, use awkward syntax, have limited support for combined stripes, and (presently) produce rough edges at the colors' boundaries because of sub-pixe...

Read the original article
Sign in to keep reading the full article.

Covered in 4 articles

DEV Community·
Discussed on DEV
Feeds
GitHub·
Discussed on Hacker News
Feeds
GitHub·
Feeds
View all 4 ›

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help