I have tiled four cards 2 x 2 with react-bootstrap Row and Col. On click each expands and moves slightly up via framer-motion. But I'd like each to position in the center or top left on a click. I think the relative positioning in the bootstrap is preventing this. Is there any way around this? Any way to keep the Rows and Cols, but to position the cards on click totally absolutely?
So far my solution is to give an id to each element after click, and to give each id a different top %, etc. But this seems messy.