I try to create a grid with one central element like at image using flexbox
. f
square has class active
where I double width and height. is this possible to make other squares fit to the rest? Sholud I use
flexbox
or maybe grid
?
Next I want to add listener with click
event. Clicking on square will move it to central position and add active
class and add transition on this move (it can't be done with gird
??)
Here is my pen: link