Hey there! I was thinking about creating a container with 2 rows of 3 cards inside. I am using Bootstrap 4 for my grid and layout.
If you need some card examples, check out here.
<div class="container">
<div class="row">
<card-element />
<card-element />
<card-element />
<card-element />
</div>
</div>
Each of these elements are divs containing other divs to arrange the content, such as an image at the top and text for description.
I want the functionality where clicking on one of these elements will expand it in the middle while the others move to either side of the container, resizing to a smaller size (like thumbnails). I've tried using transform and translate for expansion, but I'm having trouble combining both functionalities.
I thought of implementing a couple of JQuery functions in these steps: 1. On click - The selected element expands while all others are removed using JQuery. 2. Once it expands, the other elements get appended to two sides within the container. These appended divs would be positioned at the left and right ends, respectively. 3. The transition involves the thumbnails of the other card-elements easing in and out during this process.
Any suggestions or references to similar problems/tasks would be greatly appreciated.