Skip to content

Instantly share code, notes, and snippets.

@jeremejazz
Created July 11, 2013 05:24
Show Gist options
  • Save jeremejazz/5972724 to your computer and use it in GitHub Desktop.
Save jeremejazz/5972724 to your computer and use it in GitHub Desktop.
A CodePen by Jereme Causing. JQuery UI Slide Panel Toggle - Jquery UI Sliding panel
<button id="switch">Toggle</button><br/>
<div id="panel" style="height:400px;width:400px;background-image:url('http://farm4.static.flickr.com/3550/3367798587_c24c797f0f.jpg');color:white;font-weight:bold;">This is a demonstration</div>
$(document).ready(function(){
$("#switch")
.button()
.click(function(){
$("#panel").toggle("slide");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment