I’m trying to create an image gallery and each image slides in and becomes larger with CSS3 animation. I could get this working but i want the CSS animation to be executed when an image is clicked. How can i achieve this?
PS. I will also need to be able to stop the animation and prevent it from starting when the page loads.
PPS. And the previous image must slide away and go back to its absolute position and width.