Reputation: 18237
I was trying to achieve this effect for a background button, notices that the effect it's a like a wave. Is there a some way that i can defined a gradient or a css function to accomplish this?
The most that I can get it's a gradient for a vertical or horizontal line but not like a Wave
Upvotes: 4
Views: 168
Reputation: 1631
I'm not an expert in CSS, but here's my solution (pure CSS). Tested only in FF.
modified in accordance with the example:
Upvotes: 4
Reputation: 5720
There is no easy way to do this if its even possible with just CSS. The closest you could get is some combination of a :before and :after pseudo class each with their own radial gradient, but even then it won't match exactly.
You could also use multiple gradients stacked but again not an exact match.
Upvotes: 2