daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#wrapper").height($("#front").height());
  2.    
  3. $("#opener").toggle(function() {
  4.     $("#front").stop().slideToggle(function() {
  5.         $("#back").css("z-index", "1");
  6.     });
  7.  
  8.     $(this).text("Show Front");
  9.     }, function() {
  10.  
  11.     $("#back").css("z-index", "-1");
  12.     $("#front").stop().slideToggle();
  13.  
  14.     $(this).text("Show Back")
  15. });​
  16.    
  17. $("#back").hide();
  18. $("#wrapper, #back").height($("#front").height());
  19.  
  20. $("#opener").toggle(function() {
  21.     $("#front").stop().slideToggle();
  22.     $("#back").stop().slideToggle();
  23.     $(this).text("Show Front");
  24.     }, function() {
  25.     $("#front").stop().slideToggle();
  26.     $("#back").stop().slideToggle();
  27.     $(this).text("Show Back")
  28. });​
  29.    
  30. <div id="wrapper" style="width:400px;height:140px;">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top