# Fade option in show() and hide() methods not working

**URL:** <https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469>\
**Category:** Ask the community\
**Tags:** code, question, wix-studio, wix\
**Created:** [January 14, 2025, 12:41am UTC](https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469 "2025-01-14T00:41:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Watts](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/michael_watts/32/103383_2.png) [@Michael\_Watts](https://forum.wixstudio.com/u/Michael_Watts)\
**Post date:** [January 14, 2025, 12:41am UTC](https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469/1 "2025-01-14T00:41:13Z")

</div>

**Question:**  
Fade Option is not working. What am I doing wrong?

**Product:**  
[Which editor or feature is your question most relevant to? Wix Editor and Wix Studio

 ![image](https://us1.discourse-cdn.com/wix/original/3X/3/9/395e7702bad96e91711c3609e693d78a2c2e19c1.png)

---

<div class="post-metadata">

**Author:** ![Baksheesh](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Baksheesh](https://forum.wixstudio.com/u/Baksheesh)\
**Post date:** [January 14, 2025, 1:37am UTC](https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469/2 "2025-01-14T01:37:50Z")

</div>

Also have this problem.

Generally, animations don’t work in Preview mode but should work on the Live site. I’ve left “fade” in my code and some users report seeing it while others don’t. It may also depend on the device type and browser used to view.

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [January 14, 2025, 5:24am UTC](https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469/3 "2025-01-14T05:24:24Z")

</div>

Hi, Michael\_Watts !!

I tried writing similar code and experimenting with it myself. Indeed, your code doesn’t seem to execute the fade action. However, I found that it works correctly when the duration is shortened. Upon checking the Velo API documentation, I discovered that the duration can be set from 0s to 4000ms, and the delay can be set from 0s to 8000ms. If you need a longer fade action, you may need to use other methods, such as utilizing global.css. For now, though, I believe we’ve identified the reason why the current code isn’t working! 😉 🙌 🙌

[https://dev.wix.com/docs/velo/api-reference/$w/image/hide](https://dev.wix.com/docs/velo/api-reference/$w/image/hide)

---

<div class="post-metadata">

**Author:** ![Michael\_Watts](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/michael_watts/32/103383_2.png) [@Michael\_Watts](https://forum.wixstudio.com/u/Michael_Watts)\
**Post date:** [January 15, 2025, 4:51am UTC](https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469/4 "2025-01-15T04:51:32Z")

</div>

Thank you @onemoretime very, very much. I looked at the docs, but did not see the 4 second max duration for the fade effect. When I made that change everything worked as desired. Thank you very, very much. You saved me from losing a client 🙂

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [January 15, 2025, 5:16am UTC](https://forum.wixstudio.com/t/fade-option-in-show-and-hide-methods-not-working/67469/5 "2025-01-15T05:16:03Z")

</div>

Check the `effectOptions` in the Method Parameters.  
Within the `FadeEffectOptions`, you’ll find the following details:

- **Delay** :

- **Duration** :

In any case, I’m glad it worked out! Enjoy Wix! 😉 🙌 🙌
