Ticket #4973: animate Dave.html
File animate Dave.html, 589 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | <html> |
2 | <head> |
3 | <script src="http://code.jquery.com/jquery-latest.js"></script> |
4 | |
5 | <script> |
6 | function animator() |
7 | { |
8 | $("#target").animate({ |
9 | fontSize: "26pt" |
10 | }, 2000 ); |
11 | } |
12 | </script> |
13 | |
14 | <style> |
15 | div { |
16 | background-color:cyan; |
17 | width:100px; |
18 | border:1px solid blue; |
19 | } |
20 | </style> |
21 | </head> |
22 | |
23 | <body> |
24 | <h1>Creating custom animation</h1> |
25 | <div id="target">Expand me</div> |
26 | <br> |
27 | <form> |
28 | <button onClick="animator()">Animate</button> |
29 | </form> |
30 | </body> |
31 | </html> |