The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

How can i execute CSS3 animation with onclick?

  • Anonymous
    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed