Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#wrapper").height($("#front").height());
- $("#opener").toggle(function() {
- $("#front").stop().slideToggle(function() {
- $("#back").css("z-index", "1");
- });
- $(this).text("Show Front");
- }, function() {
- $("#back").css("z-index", "-1");
- $("#front").stop().slideToggle();
- $(this).text("Show Back")
- });
- $("#back").hide();
- $("#wrapper, #back").height($("#front").height());
- $("#opener").toggle(function() {
- $("#front").stop().slideToggle();
- $("#back").stop().slideToggle();
- $(this).text("Show Front");
- }, function() {
- $("#front").stop().slideToggle();
- $("#back").stop().slideToggle();
- $(this).text("Show Back")
- });
- <div id="wrapper" style="width:400px;height:140px;">
Add Comment
Please, Sign In to add comment