ZukoHiyama

Null Void Profile

Nov 6th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. <Script> Box:
  2.  
  3. $("#button1").click(function() {
  4. $('.transform').toggleClass('transform-active');
  5. });
  6.  
  7. $("#button2").click(function() {
  8. $('.transform2').toggleClass('transform-active2');
  9. });
  10.  
  11. <style> box:
  12.  
  13. body {
  14. background-color: #fff;
  15. background-image: url('http://i.picpar.com/fKLd.png');
  16. background-position: fixed;
  17. background-size: contain;
  18. background-repeat:no-repeat;
  19. background-position: center top;
  20. background-attachment: fixed;
  21. font-family: ;
  22. color: #7c7c7c;
  23. text-shadow:0px 0px 3px #000;
  24. }
  25.  
  26. .box {
  27. background: #000;
  28. font-family:'Roboto Mono', monospace;
  29. font-variant: small-caps;
  30. bottom: 50%;
  31. right: 69.5%;
  32. font-size:12px;
  33. color: #fcfcfc;
  34. height: 0px;
  35. width: 0px;
  36. letter-spacing: 0px;
  37. overflow-y:auto;
  38. position: absolute;
  39. line-height: 10px;
  40. padding: 1px;
  41. margin: 1px;
  42. border: 1px solid rgba(255,255,255,.32);
  43. outline: 1px solid rgba(255,255,255,.5);
  44. outline-offset: 2px;
  45. z-index:1;
  46. text-shadow:none;
  47. opacity: 0;
  48. }
  49.  
  50. .box2 {
  51. background: #000;
  52. font-family:'Roboto Mono', monospace;
  53. font-variant: small-caps;
  54. top: 20%;
  55. left: 65%;
  56. font-size:12px;
  57. color: #fcfcfc;
  58. height: 0px;
  59. width: 0px;
  60. letter-spacing: 0px;
  61. overflow-y:auto;
  62. position: absolute;
  63. line-height: 10px;
  64. padding: 1px;
  65. margin: 1px;
  66. border: 1px solid rgba(255,255,255,.32);
  67. outline: 1px solid rgba(255,255,255,.5);
  68. outline-offset: 2px;
  69. z-index:1;
  70. text-shadow:none;
  71. opacity: 0;
  72. }
  73.  
  74. .transform {
  75. -webkit-transition: all 2s ease;
  76. -moz-transition: all 2s ease;
  77. -o-transition: all 2s ease;
  78. -ms-transition: all 2s ease;
  79. transition: all 2s ease;
  80. }
  81.  
  82. .transform-active {
  83.  
  84. height: 200px;
  85. width: 200px;
  86. opacity: 1;
  87.  
  88. }
  89.  
  90. .transform2 {
  91. -webkit-transition: all 2s ease;
  92. -moz-transition: all 2s ease;
  93. -o-transition: all 2s ease;
  94. -ms-transition: all 2s ease;
  95. transition: all 2s ease;
  96. }
  97.  
  98. .transform-active2 {
  99.  
  100. height: 200px;
  101. width: 200px;
  102. opacity: 1;
  103. }
  104.  
  105. .button1 {
  106. position:absolute;
  107. transition-duration: .4s;
  108. cursor: pointer;
  109. padding: 0;
  110. border: none;
  111. }
  112.  
  113. .button1 {
  114. background-image:url("http://i.picpar.com/MJLd.png");
  115. background-size: 100%;
  116. width: 117px;
  117. height: 34px;
  118. top: 50%;
  119. left: 22%;
  120. }
  121.  
  122. .button1:hover {
  123. background-image:url("http://i.picpar.com/MJLd.png");
  124. background-size: 100%;
  125. width: 117px;
  126. height: 34px;
  127.  
  128.  
  129. }
  130.  
  131. .button2 {
  132. position:absolute;
  133. transition-duration: .4s;
  134. cursor: pointer;
  135. padding: 0;
  136. border: none;
  137. }
  138.  
  139. .button2 {
  140. background-image:url("http://i.picpar.com/OJLd.png");
  141. background-size: 100%;
  142. width: 117px;
  143. height: 30px;
  144. top: 15%;
  145. left: 65%;
  146. }
  147.  
  148. .button2:hover {
  149. background-image:url("http://i.picpar.com/OJLd.png");
  150. background-size: 100%;
  151. width: 117px;
  152. height: 30px;
  153.  
  154.  
  155. }
  156.  
  157.  
  158. <body> box:
  159.  
  160. <div class="box transform">
  161. Blah blah blah<br>
  162. Blah blah blah<br>
  163. Blah blah blah<br>
  164. Blah blah blah<br>Blah blah blah<br>
  165.  
  166. </div>
  167.  
  168. <div class="box2 transform2">
  169.  
  170.  
  171.  
  172.  
  173. </div>
  174.  
  175. <input type="button" id="button1" class="button1" ></input>
  176. <input type="button" id="button2" class="button2" ></input>
Advertisement
Add Comment
Please, Sign In to add comment