Animate to center

How can I create a “move to center” animation for an image on click?

I have 2 Divs in a horizontal flex box. Image in left div, content in right.


Here is my public share link: LINK
(how to access public share link)