I’m trying to achieve quite a simple effect but struggling to get something that looks good.
It needs to be accessible HTML so a CSS only solution is desired. Any background color and any page color.
So far I’ve used radial gradient but it’s not smooth.
Border-radius doesn’t give the right arc, it needs to be more 3D.
Here’s my prototype https://jsfiddle.net/nsr3bpfc/3/ using this CSS
background: radial-gradient(500rem at 3rem -248rem, transparent 50%, brown 50%);
2
Answers
You could possibly add box-shaddow to give it more depth.
Also what is the actual effect you are looking for?
You can use a
box-shadow
for pseudo-elements: