# Setting ion-list background to trasparent causes the default background color to quickly flash first

**URL:** <https://forum.ionicframework.com/t/setting-ion-list-background-to-trasparent-causes-the-default-background-color-to-quickly-flash-first/187246>\
**Category:** Ionic Angular\
**Created:** [April 14, 2020, 6:50am UTC](https://forum.ionicframework.com/t/setting-ion-list-background-to-trasparent-causes-the-default-background-color-to-quickly-flash-first/187246 "2020-04-14T06:50:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wojo1086](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@wojo1086](https://forum.ionicframework.com/u/wojo1086)\
**Post date:** [April 14, 2020, 6:50am UTC](https://forum.ionicframework.com/t/setting-ion-list-background-to-trasparent-causes-the-default-background-color-to-quickly-flash-first/187246/1 "2020-04-14T06:50:02Z")

</div>

I’m trying to set the background of an ion-list to be transparent. This list is in an ion-modal. The issue I’m facing is the CSS to make the background transparent doesn’t seem to be going into effect right away, which causes a quick flash of white as the default light color of the ion-list is loaded first.

Here is the SASS:

```auto
ion-list, ion-item
        --ion-background-color: rgba(0,0,0,0)

```

Is there a way to stop the flash of white from happening before the transparency takes effect?

---

<div class="post-metadata">

**Author:** ![neverlose](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neverlose](https://forum.ionicframework.com/u/neverlose)\
**Post date:** [April 14, 2020, 11:33am UTC](https://forum.ionicframework.com/t/setting-ion-list-background-to-trasparent-causes-the-default-background-color-to-quickly-flash-first/187246/2 "2020-04-14T11:33:57Z")

</div>

try this:

```auto
background: transparent !important;
transition: 0 !important;

```

---

<div class="post-metadata">

**Author:** ![wojo1086](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@wojo1086](https://forum.ionicframework.com/u/wojo1086)\
**Post date:** [April 14, 2020, 1:40pm UTC](https://forum.ionicframework.com/t/setting-ion-list-background-to-trasparent-causes-the-default-background-color-to-quickly-flash-first/187246/3 "2020-04-14T13:40:57Z")

</div>

Thanks for the reply, but that unfortunately did not work.
