# Delay in hiding multiple elements?

**URL:** <https://forum.wixstudio.com/t/delay-in-hiding-multiple-elements/41235>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 6, 2022, 10:17pm UTC](https://forum.wixstudio.com/t/delay-in-hiding-multiple-elements/41235 "2022-06-06T22:17:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![medinfo411](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/medinfo411/32/28058_2.png) [@medinfo411](https://forum.wixstudio.com/u/medinfo411)\
**Post date:** [June 6, 2022, 10:17pm UTC](https://forum.wixstudio.com/t/delay-in-hiding-multiple-elements/41235/1 "2022-06-06T22:17:50Z")

</div>

Hello, I’ve been trying to hide multiple elements. While I got it to work, some element still lingers before being completely hidden. I thought that maybe there were too many elements on the page and tried removing most of them but the issue is still there. The elements I am trying to hide is a container box with various smaller container box each with text,image, and vector. The container also has hover on if that matters.

[https://us1.discourse-cdn.com/wix/original/1X/41eca5230a7c468e8e15409ba9726e68fbecfd96.mp4](https://us1.discourse-cdn.com/wix/original/1X/41eca5230a7c468e8e15409ba9726e68fbecfd96.mp4)

 ![](https://us1.discourse-cdn.com/wix/original/3X/2/5/2586c4c1848d5da63aa93b55f9e581b304a7269a.png)

---

<div class="post-metadata">

**Author:** ![chris-derrell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/chris-derrell/32/1774_2.png) [@chris-derrell](https://forum.wixstudio.com/u/chris-derrell)\
**Post date:** [June 7, 2022, 2:17am UTC](https://forum.wixstudio.com/t/delay-in-hiding-multiple-elements/41235/2 "2022-06-07T02:17:05Z")

</div>

If the lists of items are completely different, you could try using the Multi-State Box to do the switching in your video. That way there would be no delay between them.

- [Velo: Setting Up Your Multi-State Box | Help Center | Wix.com](https://support.wix.com/en/article/velo-setting-up-your-multi-state-box)

- Example/Tutorial - [Velo Tutorial: Working with Multi-State Boxes and Code | Help Center | Wix.com](https://support.wix.com/en/article/velo-tutorial-working-with-multi-state-boxes-and-code)

As to why that would be happening, I’d check if you see it happening on the live website as well.

---

<div class="post-metadata">

**Author:** ![medinfo411](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/medinfo411/32/28058_2.png) [@medinfo411](https://forum.wixstudio.com/u/medinfo411)\
**Post date:** [June 7, 2022, 9:43pm UTC](https://forum.wixstudio.com/t/delay-in-hiding-multiple-elements/41235/3 "2022-06-07T21:43:34Z")

</div>

Thank you for your help, looks like multi-state box did the trick. Though now I’m stuck trying to change the color of the text button on click. I tried referring to the API reference but for some reason it says property of HTML does not exist with the code I use.

 ![](https://us1.discourse-cdn.com/wix/original/3X/6/f/6fd3d50ae03a68fb065302f562b34277c646c972.png)

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [June 8, 2022, 11:41am UTC](https://forum.wixstudio.com/t/delay-in-hiding-multiple-elements/41235/4 "2022-06-08T11:41:45Z")

</div>

@medinfo411 1. You cannot set the html for a button, only for text element (and you’re missing the double quotation closure inside the string).
