I'm working on a webapp that uses CSS3 animations for some nice effects, but I can't figure out to activate them with an onclick
event.
this is the CSS3 Animation: (The name of the DIV this is added to is #smspopup
)
#smspopup {
-webkit-animation: move-sms 1.5s 1;
-webkit-animation-fill-mode: forwards;
}
And this is my Javascript where I just can't figure out what I need to get it going
function cancel_sms()
{
halte.style.opacity = 1;
document.getElementById('smspopup').style.visibility = 'hidden';
document.getElementById('up').style.visibility = 'visible';
}
And another thing I want to do is delay the functions 1.5 seconds until the animation is finished. Anyone any idea?