I want some animation to be triggered to onclick of an element only using pure css. I have already assigned keyframe to this class container. There is a tag So when I click this, container's animation get started. Is it possible without using jquery ? In simple words when button is clicked animations get started with the assigned keyframe.
HTML
<div class="container container-anim">
<div class="psw align-self-center">
<a style="color:maroon" href="#reset">Back to log-in page</a>
</div>
</div>
CSS
.container-anim {
animation-name: stretch;
animation-duration: 1.5s;
animation-iteration-count: infinite;
}
@keyframes stretch {
0% {transform: scale(1);}
50%{ }
100%{transform: scale(1.2);}
}