# Implement Dynamic Container Boxes -hide/unhide them on click

**URL:** <https://forum.wixstudio.com/t/implement-dynamic-container-boxes-hide-unhide-them-on-click/37638>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [April 23, 2018, 7:30pm UTC](https://forum.wixstudio.com/t/implement-dynamic-container-boxes-hide-unhide-them-on-click/37638 "2018-04-23T19:30:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darshan](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@darshan](https://forum.wixstudio.com/u/darshan)\
**Post date:** [April 23, 2018, 7:30pm UTC](https://forum.wixstudio.com/t/implement-dynamic-container-boxes-hide-unhide-them-on-click/37638/1 "2018-04-23T19:30:34Z")

</div>

I am just starting out on Wix, and learning to use Wix Code to improve my site, but I am facing some difficulties.

What I am trying to do on my website is to build something exactly as shown in the images attached. (It is from [aws.amazon.com](http://aws.amazon.com), the ‘Customer Stories’ anchor on the site)

 ![](https://us1.discourse-cdn.com/wix/original/3X/1/4/14f6658bc6dfd0749cad385aa582583fe7897734.jpeg)

 ![](https://us1.discourse-cdn.com/wix/original/3X/a/c/accdfd66cab638d7b8c7af367aff265b01d89c61.jpeg)

I want to build sort of a slider which changes based on the user input, or, multiple overlapping containers with only one shown (rest hidden). The easiest thing to do would be to just show one container and hide the rest. I have been unsuccessful to do it, and I am also worried I might mess up the website if I do something wrong since I am just starting out on Wix.

I would greatly appreciate any help which you might be able to provide. At its crux, can I please ask you how to write a code that

(1) hides a particular container box (container1)  
(2) shows a particular container box (container2)

in response to a button click (button1).

Your help would greatly help me to build my website.

Thank you

---

<div class="post-metadata">

**Author:** ![sam-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sam-wix/32/683_2.png) [@sam-wix](https://forum.wixstudio.com/u/sam-wix)\
**Post date:** [April 24, 2018, 6:29am UTC](https://forum.wixstudio.com/t/implement-dynamic-container-boxes-hide-unhide-them-on-click/37638/2 "2018-04-24T06:29:07Z")

</div>

I think these examples should help you out.

> **[Change Layout](https://www.wix.com/velo/example/Change-Layout)**
>
> This example demonstrates how to use a slideshow element to design multiple layouts on different slides and change the slides using code.

> **[Multistage Form](https://www.wix.com/velo/example/Multistage-Form)**
>
> ​This example demonstrates how to use a slideshow element to create a form with a multistep layout. Each step in the form has its own dedicated slide in the slideshow.

They use buttons and a slideshow to achieve the effect you’re looking to create.

---

<div class="post-metadata">

**Author:** ![darshan](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@darshan](https://forum.wixstudio.com/u/darshan)\
**Post date:** [April 24, 2018, 9:57pm UTC](https://forum.wixstudio.com/t/implement-dynamic-container-boxes-hide-unhide-them-on-click/37638/3 "2018-04-24T21:57:27Z")

</div>

Thank you! I figured I could achieve the same thing by using multiple boxes stacked on top of one another, but using slides is more elegant and manageable.
