I have a gradient background which I'd like to apply behind a hamburger menu icon.
<button type="button" id="btn-menu">
<span></span>
<span></span>
<span></span>
</button>
The background needs to apply on the span elements, NOT on the button. What I have managed to do is apply the background to EACH span - but this is not the effect I want. Please see this fiddle for a better idea of what I am trying to achieve:
https://jsfiddle.net/spacyad6/
As you will see, each span looks exactly the same. What needs to happen is the bottom span should have hardly any blue, the middle span should have a larger green area and the top span should have a larger blue area.
Is there a clever way to do this? Ideally I would prefer not to have 3 separate gradients. The solution needs to work in Firefox, Chrome & Safari.