# jQuery(?) fade effect override

**URL:** https://meta.discourse.org/t/jquery-fade-effect-override/148651
**Category:** Development
**Created:** [April 20, 2020, 6:30pm UTC](https://meta.discourse.org/t/jquery-fade-effect-override/148651 "2020-04-20T18:30:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)
#### Post date: [April 20, 2020, 6:30pm UTC](https://meta.discourse.org/t/jquery-fade-effect-override/148651/1 "2020-04-20T18:30:18Z")

</div>

Hi, when you nav to a specific post, the UI highlights the DIV for a second. The problem is that I’ve changed the default background color of that div to white, which is now different from the site background color.

Can someone tell me how I can override the existing jQuery fade (which gently fades from the ‘flash’ color to the background color)? I want to change it to go from the ‘flash’ color to white. I looked in the code but haven’t been able to find this yet, so I’m not sure if I can override with a plugin or what.

---

<div class="post-metadata">

### Author: ![geoff777](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoff777/32/202388_2.png) [@geoff777](https://meta.discourse.org/u/geoff777)
#### Post date: [April 20, 2020, 6:39pm UTC](https://meta.discourse.org/t/jquery-fade-effect-override/148651/2 "2020-04-20T18:39:07Z")

</div>

[https://meta.discourse.org/t/how-to-remove-the-fade-out-effect-when-you-enter-a-topic/123276](https://meta.discourse.org/t/how-to-remove-the-fade-out-effect-when-you-enter-a-topic/123276)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 20, 2020, 6:41pm UTC](https://meta.discourse.org/t/jquery-fade-effect-override/148651/3 "2020-04-20T18:41:36Z")

</div>

It’s not a jQuery effect, but a pure CSS animation.

Here is the definition:

> <https://github.com/discourse/discourse/blob/main/app/assets/stylesheets/common/base/discourse.scss#L27-L34>

You can overwrite it with custom CSS in a theme.

---

<div class="post-metadata">

### Author: ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)
#### Post date: [April 20, 2020, 6:54pm UTC](https://meta.discourse.org/t/jquery-fade-effect-override/148651/4 "2020-04-20T18:54:16Z")

</div>

Perfect, thanks!! No wonder I couldn’t find it in the templates, I wasn’t looking in the stylesheets folder. Dumb me 😉
