1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Animation of rotate property</title>
8 <style type="text/css" media="screen">
10 -webkit-box-sizing: border-box;
15 display: inline-block;
23 background-color: silver;
24 border: 1px solid black;
33 border: 1px dotted black;
34 -webkit-transform-origin: top left; /* to match SVG */
38 border: 1px solid blue;
42 -webkit-animation-name: bounce;
43 -webkit-animation-duration: 2s;
44 -webkit-animation-iteration-count: infinite;
45 -webkit-animation-direction: alternate;
46 -webkit-animation-timing-function: ease-in-out;
49 @-webkit-keyframes bounce {
51 -webkit-transform: translate(0px, 0px) scale(1) rotate(0deg);
54 -webkit-transform: translate(75px, 25px) scale(2) rotate(45deg);
60 <h1>CSS Animation of 'webkit-transform:' property for SVG</h1>
62 <p>The SVG animation should be identical with the CSS one</p>
66 <div class="container">
67 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
68 viewBox="0 0 200 200" style="width:200px; height:200px;">
69 <rect id="target" x="0" y="0" width="60" height="60" stroke="blue" fill="none">
75 <div class="container">
76 <div class="final box" id="ref">