Advertisement
Natsumeow

This cool menu!

Dec 14th, 2021
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. <style>
  2. @import url('https://fonts.googleapis.com/css2?family=Kosugi&display=swap');
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. font-family: "Tahoma", sans-serif;
  8. transition: 1s cubic-bezier(0.59, -0.43, 0.17, 1.16);
  9. }
  10.  
  11. a {
  12. color: white;
  13. }
  14. a:hover {
  15. color: white !important;
  16. transition: .5s ease;
  17. }
  18.  
  19. @font-face {
  20. font-family: "Tahoma";
  21. src: url(https://www.dropbox.com/s/zdfnudw693k5pih/TAHOMAB0.TTF);
  22. font-weight: bold;
  23. }
  24. @font-face {
  25. font-family: "Tahoma";
  26. src: url(https://dl.dropbox.com/s/4s49asm1zaa91yx/TAHOMA_0.TTF);
  27. font-weight: regular;
  28. }
  29.  
  30. figure {
  31. border: 1px dashed white;
  32. width: 350px;
  33. margin-left: auto;
  34. margin-right: auto;
  35. border-radius: 8px;
  36. position: relative;
  37. pointer-events: none;
  38. background: #000;
  39. transition: 0.3s ease-in-out;
  40. }
  41.  
  42. figure .img {
  43. width: 100%;
  44. height: 200px;
  45. border-radius: 8px 8px 0 0;
  46. background: url("https://s5.gifyu.com/images/28Donning_the_Overlapping_Colors_of_Myself29_Sora_Harukawa_CG2.png");
  47. background-size: 460px auto;
  48. background-repeat: no-repeat;
  49. background-position: top;
  50. }
  51.  
  52. figure .img:after {
  53. content: "";
  54. position: absolute;
  55. bottom: 0;
  56. left: 0;
  57. width: 100%;
  58. height: 150px;
  59. background: linear-gradient(transparent, #bcd8e8 49%);
  60. border-radius: 0 0 8px 8px;
  61. }
  62.  
  63. figure figcaption {
  64. height: 70px;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. flex-wrap: wrap;
  69. position: relative;
  70. overflow: visible;
  71. background: #bcd8e8;
  72. border-radius: 0 0 8px 8px;
  73. }
  74.  
  75. figure figcaption span {
  76. width: 100%;
  77. }
  78.  
  79. figure figcaption span:nth-child(1) {
  80. position: absolute;
  81. font-family: Kosugi;
  82. font-size: 30px;
  83. top: -40px;
  84. opacity: 0;
  85. left: 10;
  86. color: #000;
  87. filter: drop-shadow(0px 1px white) drop-shadow(0 -1px white) drop-shadow(1px 0 white) drop-shadow(-1px 0 white);
  88. }
  89.  
  90. figure figcaption span:nth-child(2) {
  91. font-family: Kosugi;
  92. font-size: 52px;
  93. overflow: visible;
  94. position: absolute;
  95. top: -42px;
  96. left: 1px;
  97. white-space: nowrap;
  98. color: #000;
  99. z-index: 10px;
  100. transform: rotate(-2deg);
  101. filter: drop-shadow(0px 1px white) drop-shadow(0 -1px white) drop-shadow(1px 0 white) drop-shadow(-1px 0 white);
  102. transition: top 0.3s ease-in-out;
  103. }
  104.  
  105. figure figcaption span:nth-child(3) {
  106. opacity: 0;
  107. font-family: Tahoma;
  108. padding: 0 20px;
  109. height: 20px;
  110. overflow: hidden;
  111. cursor: text;
  112. color: #fff;
  113. }
  114.  
  115. figure button {
  116. position: absolute;
  117. bottom: -10px;
  118. width: 130px;
  119. left: calc(50% - 65px);
  120. background: lightgrey;
  121. color: #000;
  122. border: 1px dashed black;
  123. height: 35px;
  124. border-radius: 4px;
  125. transform: rotate(1deg);
  126. box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
  127. cursor: pointer;
  128. pointer-events: auto;
  129. transition: 0.3s ease-in-out;
  130. overflow: hidden;
  131. z-index: 20;
  132. }
  133.  
  134. figure button:focus {
  135. outline: 0;
  136. }
  137.  
  138. figure button:before {
  139. content: "more";
  140. position: absolute;
  141. top: 8px;
  142. left: 44px;
  143. opacity: 1;
  144. transition: 1s cubic-bezier(0.55, -0.62, 0.27, 1.2);
  145. }
  146.  
  147. figure button:after {
  148. content: "back";
  149. opacity: 0;
  150. top: 8px;
  151. left: 0;
  152. position: absolute;
  153. transition: 1s cubic-bezier(0.55, -0.62, 0.27, 1.2);
  154. }
  155.  
  156. figure:hover {
  157. transition: 0.3s ease-in-out;
  158. transform: rotateX(-2deg);
  159. ;
  160. }
  161.  
  162. figure:hover button {
  163. background: gray;
  164. bottom: -13px;
  165. transition: 0.3s ease-in-out;
  166. }
  167.  
  168. figure:hover span:nth-child(2) {
  169. top: -39px;
  170. transition: top 0.3s ease-in-out;
  171. }
  172.  
  173. figure.open .img {
  174. height: 0;
  175. }
  176.  
  177. figure.open figcaption {
  178. height: 280px;
  179. border-radius: 8px;
  180. }
  181.  
  182. figure.open figcaption span:nth-child(1) {
  183. top: -25px;
  184. opacity: 1;
  185. }
  186.  
  187. figure.open figcaption span:nth-child(2) {
  188. top: -18px;
  189. }
  190.  
  191. figure.open figcaption span:nth-child(3) {
  192. font-family: Tahoma;
  193. height: 100%;
  194. opacity: 1;
  195. padding: 80px 20px 40px 20px;
  196. }
  197.  
  198. figure.open button:before {
  199. opacity: 0;
  200. left: 100%;
  201. }
  202.  
  203. figure.open button:after {
  204. opacity: 1;
  205. left: 47px;
  206. }
  207.  
  208. figure.open:hover figcaption span:nth-child(2) {
  209. top: -15px;
  210. transition: top 0.3s ease-in-out;
  211. }
  212.  
  213. figure svg {
  214. position: absolute;
  215. bottom: 0;
  216. width: 350px;
  217. }
  218. </style>
  219. <figure class="">
  220. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  221. <defs>
  222. <filter id="outline" mask="url(#mask)">
  223. <feFlood flood-color="#000" result="base"></feFlood>
  224. <feMorphology in="SourceGraphic" operator="dilate" radius="10"></feMorphology>
  225. <feComposite in="base" operator="in"></feComposite>
  226. <feBlend in="SourceGraphic" mode="normal"></feBlend>
  227. <feDropShadow stdDeviation="6"></feDropShadow>
  228. </filter>
  229. </defs>
  230. </svg>
  231. <div class="img"></div>
  232. <figcaption><span>About</span><span>Name Here!</span><span><center>Text text text text text text text text text text text<br><br>
  233. Ib baeyhkun on Twt, go support Ximena
  234. <br>
  235. <center> </center></center></span></figcaption>
  236. <button></button>
  237. </figure>
  238. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  239. <script id="rendered-js">
  240. $("button").click(function() {
  241. $("figure").toggleClass("open");
  242. });
  243. </script>
  244. <style>
  245. ::selection {
  246. color: #c4e9ff;
  247. background: #fff;
  248. }
  249. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement