Created
June 27, 2012 12:11
-
-
Save amaxwell01/3003683 to your computer and use it in GitHub Desktop.
Simple contact slideout
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> | |
<script> | |
var showSlide = function() { | |
$('#sideContact').show( 'slide', { direction: 'left' }, 500 ); | |
}; | |
$(document).ready(function(){ | |
$('#sideContactTab').click(function() { | |
showSlide(); | |
return false; | |
}); | |
}); | |
</script> | |
<style> | |
#sideContact { | |
height: 400px; | |
position: relative; | |
width: 400px; | |
} | |
#sideContactTab { | |
position: absolute; | |
right: -20px; | |
top: 0; | |
width: 20px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="sideContact"> | |
<div id="sideContactTab"> | |
Contact | |
</div> | |
<ul> | |
<li>Contact Me</li> | |
<li>I'm Welsh and love it</li> | |
<li>Yes, that is a tuba</li> | |
</li> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment