Just to clarify, I am using an absolute positioned flex container
for a grid layout. Inside this flex container, there is a relative positioned element with the class .tileWrapper
that expands to fill the space after the animated .tile
.
When I click on the tile (absolute positioned), it flips along the Y axis and changes its size.
I want the flipped .tile
to be centered on the screen. And when clicked again, the centering effect should be cancelled. Not sure if this is achievable. Let me know if it's not possible.
HTML MARKUP:
<body>
<!-- HTML markup goes here -->
</body>
CSS:
* {
margin: 0;
padding: 0;
}
/* CSS styling rules */
<!-- More CSS code here -->