Created
May 4, 2012 05:45
-
-
Save wilornel/2592366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Description: This is just a testing file... | |
| --> | |
| <html> | |
| <head> | |
| <script src='jquery.js'></script> | |
| <script> | |
| $(document).ready(function(){ | |
| $('#input').click(function(){ | |
| console.log('a'); | |
| $('#asd').animate({ | |
| marginLeft: parseInt($('#asd').css('marginLeft'),10) == 0 ? | |
| $('#asd').outerWidth() : | |
| 0 | |
| }); | |
| }); | |
| }); | |
| </script> | |
| </head> | |
| <body id='body'> | |
| <div style='border: 1px solid #000;height:100px;position:relative;overflow:hidden'> // The box | |
| <input type='submit' value='hohohoho' id='input'/> // THe button | |
| <div id='asd' style='left:0;bottom:0;display:none;position:absolute'>HAHAHAHAH</div> // The thing that slides | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment