Ionic item transparent background


#1

Hello

i am trying to make my ionic items transparent to 70% opacity. i am following How to make ion-items transparent? but am unable to achieve the desired result

My code is basic:


      <ion-list>
        <ion-item *ngFor="let post of posts" no-padding no-lines>
....
.....
...

can you show me how to do this?


#2

This worked for me


.item.item-trns {
	border-color: rgba(0, 0, 0, 0);
    background-color: rgba(0, 0, 0, 0);
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+56,cc3333+100&0.8+0,0.07+100 */
background: -moz-linear-gradient(top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.39) 56%, rgba(204,51,51,0.07) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.39) 56%,rgba(204,51,51,0.07) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.39) 56%,rgba(204,51,51,0.07) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ccffffff', endColorstr='#12cc3333',GradientType=0 ); /* IE6-9 */
}

inside the div i did

   <ion-list>
        <ion-item *ngFor="let post of posts" no-padding no-lines >

          <div class="feed_post_area item item-trns">
           .......
          </div>
          <div class="bottom-bar">&nbsp;</div>
          
        </ion-item>
      </ion-list>