Looking to add a gradient overlay to an <img>
tag with the src
attribute set to angular-item. Here's an example:
<img src={{value.angitem.image}}>
I attempted to create a CSS class:
.pickgradient {
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.65)));
}
and then applied it like this:
<img src={{value.angitem.image}} class="pickgradient ">
Unfortunately, it didn't work as expected. Any suggestions on what I should try next?