I'm trying to open a row of block with an animation. The goal is to go from 2 block to 3 blocks by clicking a button. The block that I want to add has to go in the middle and has to fade in from left to right.
I have two problems:
- The blocks are not aligned on 1 single line. (The first block is lower)
When I click to open the middle block it opens from the bottom to the top (I want it to go from left to right)
This is the code that I used the rest you can see in the JSFiddle
$('.openRed').on('click', function (e) { $('.redHide').toggleClass('redShow').toggleClass('redHide');
Thank you, if it's not clear let me know!