1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5<style type="text/css">
6.classname {
7 -webkit-animation-name: cssAnimation;
8 -webkit-animation-duration:3s;
9 -webkit-animation-iteration-count: 1;
10 -webkit-animation-timing-function: ease;
11 -webkit-animation-fill-mode: forwards;
12}
13@-webkit-keyframes cssAnimation {
14 from {
15 -webkit-transform: rotate(0deg) scale(1) skew(0deg) translate(100px);
16 }
17 to {
18 -webkit-transform: rotate(0deg) scale(2) skew(0deg) translate(100px);
19 }
20}
21</style>
22<script type="text/javascript">
23 function ani(){
24 document.getElementById('img').className ='classname';
25 }
26</script>
27<title>Untitled Document</title>
28</head>
29
30<body>
31<input name="" type="button" onclick="ani()" />
32<img id="img" src="clogo.png" width="328" height="328" />
33</body>
34</html>