Grow your CSS skills. Land your dream job.

How can i execute CSS3 animation with onclick?

  • # March 30, 2013 at 12:09 pm

    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.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".