Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="./style.css">
- <title>jQuery</title>
- <script src="./jquery.js"></script>
- <script>
- $(document).ready(function() {
- $('button').click(function(){
- $("#wind").css(
- right: '+=600'
- , 5000, function() {
- // Animation complete.
- });
- $('#pinwheel').rotateLeft(45);
- });
- });
- </script>
- </head>
- <body>
- <button>Start!</button>
- <div id="wind">
- <img src="./wind.png">
- </div>
- <div id="pinwheel">
- <img src="./pinwheel.png">
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment