Animation CSS onClick

Comment puis-je obtenir un CSS Animation à jouer avec un JavaScript onClick? J'ai actuellement:

.classname {
  -webkit-animation-name: cssAnimation;
  -webkit-animation-duration:3s;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-timing-function: ease;
  -webkit-animation-fill-mode: forwards;
}
@-webkit-keyframes cssAnimation {
  from {
    -webkit-transform: rotate(0deg) scale(1) skew(0deg) translate(100px);
  }
  to {
    -webkit-transform: rotate(0deg) scale(2) skew(0deg) translate(100px);
  }
}

Comment puis-je appliquer un onClick?

source d'informationauteur tekknolagi | 2011-01-31