Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Ehhh</title>
- </head>
- <style>
- #okienko {
- width: 400px;
- height: 400px;
- background: yellow;
- float: right;
- position: fixed;
- right: -300px;
- }
- </style>
- <body>
- <div id="okienko"></div>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script>
- $('#okienko').hover(function(){
- $(this).animate({
- right: "0px"
- }, 500)
- }, function(){
- $(this).animate({
- right: "-300px"
- }, 500)
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement