Advertisement
ziyas

box shake into scrollbox thingy

Nov 27th, 2021 (edited)
3,715
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 1 2
  1. <!--- idk who to cr for this sorry if youre the original maker of this code dm me on twt @ilovejiheon68 --->
  2.  
  3. <link rel="preconnect" href="https://fonts.googleapis.com">
  4. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  5. <link href="https://fonts.googleapis.com/css2?family=Mali&display=swap" rel="stylesheet">
  6.  
  7. <style>
  8. @font-face {
  9. font-family: good-time;
  10. src: url(https://dl.dropbox.com/s/ijxda4xb1cyjpe4/KGAlwaysAGoodTime.ttf);
  11. }
  12.  
  13. @font-face {
  14. font-family: lovely script;
  15. src: url(https://dl.dropbox.com/s/ss5bqbogijw4zfj/Lovely%20Script.otf);
  16. }
  17.  
  18. @font-face {
  19. font-family: cerl;
  20. src: url(https://dl.dropbox.com/s/vaz4fe5yzk1uiku/CHERL___.TTF);
  21. }
  22.  
  23. * {
  24. padding: 0;
  25. margin: 0;
  26. }
  27.  
  28. html, body {
  29. margin: 0;
  30. height: 100%;
  31. }
  32.  
  33. #holder, body, #holder, #figure, #box {
  34. box-sizing: border-box;
  35. }
  36.  
  37. body, #figure {
  38. display: flex;
  39. }
  40.  
  41. body {
  42. height: 100vh;
  43. min-height: 100%;
  44. align-items: center;
  45. justify-content: center;
  46. overflow: hidden;
  47. font-size: 16px;
  48. }
  49.  
  50. #holder, #figure, #item1, #item2, #box, .section > img {
  51. border-radius: 0.875em;
  52. }
  53.  
  54. #holder {
  55. background: #ab9cd3;
  56. position: relative;
  57. height: 18.875em;
  58. width: 18.875em;
  59. margin: auto;
  60. box-shadow: rgba(50, 50, 93, 0.6) 0px 50px 100px -20px, rgba(0, 0, 0, 0.5) 0px 30px 60px -30px, rgba(66, 10, 25, 0.65) 0px -2px 6px 0px inset;
  61. padding: 0.625em;
  62. }
  63.  
  64. #figure {
  65. position: relative;
  66. height: 100%;
  67. width: 100%;
  68. overflow: hidden;
  69. -webkit-mask-image: -webkit-radial-gradient(white, black);
  70. flex-direction: column;
  71. }
  72.  
  73. #holder:hover {
  74. animation: shake 1s, image_blur 1s;
  75. transition: all 1s ease-in-out;
  76. transition-timing-function: cubic-bezier(0.1, 0.8, 0.9, 0.1);
  77. }
  78.  
  79. #holder:hover .section {
  80. transform: translateY(-17.625em);
  81. }
  82.  
  83. #holder:hover #box {
  84. transform: translateY(-13em);
  85. animation: fadeIn ease 2s;
  86. -webkit-animation: fadeIn ease 2s;
  87. }
  88.  
  89. .section {
  90. position: relative;
  91. background: transparent;
  92. width: 100%;
  93. height: 100%;
  94. transition: all 1s ease-in-out;
  95. transition-timing-function: cubic-bezier(0.1, 0.8, 0.9, 0.1);
  96. }
  97.  
  98. h3 {
  99. z-index: 6;
  100. color: #000;
  101. text-shadow: 0 0 1px white, 0 0 2px white, 0 0 3px white, 0 0 4px white, 0 0 5px white;
  102. font-size: 1.75em;
  103. opacity: 90%;
  104. font-family: cerl;
  105. }
  106.  
  107. #holder:hover h3 {
  108. transform: translateY(-7.25em);
  109. animation: fadeIn ease 2s;
  110. -webkit-animation: fadeIn ease 2s;
  111. }
  112.  
  113. #box, .title, h3 {
  114. margin-right: auto;
  115. margin-left: auto;
  116. left: 0;
  117. right: 0;
  118. }
  119.  
  120. #box {
  121. z-index: 5;
  122. width: 80%;
  123. height: 50%;
  124. overflow: auto;
  125. background: rgba(208, 188, 240, 0.65);
  126. font-family: mali;
  127. color: white;
  128. padding: 0.5em;
  129. }
  130.  
  131. img {
  132. pointer-events: none;
  133. }
  134.  
  135. .title, h3, #box, #left-wing, #right-wing {
  136. position: absolute;
  137. }
  138.  
  139. .title {
  140. z-index: 99;
  141. font-size: 3.75em;
  142. }
  143.  
  144. #rainbow {
  145. font-family: good-time;
  146. -webkit-text-stroke: 1px white;
  147. top: -0.425em;
  148. }
  149.  
  150. #wobble {
  151. color: #fff;
  152. text-shadow: -1px 1px 2px black, 1px -1px 2px black, 1px 1px 2px black, -1px -1px 2px black;
  153. font-weight: bold;
  154. bottom: -0.425em;
  155. font-family: lovely script;
  156. }
  157.  
  158. #left-wing, #right-wing {
  159. z-index: 10;
  160. bottom: -1.25em;
  161. height: 3.5em;
  162. }
  163.  
  164. #left-wing {
  165. left: 0.5em;
  166. }
  167.  
  168. #right-wing {
  169. right: 0.5em;
  170. }
  171.  
  172. @keyframes
  173. shake {
  174. 0% {
  175. transform: translate(1px, 1px) rotate(0deg);
  176. }
  177.  
  178. 10% {
  179. transform: translate(-1px, -2px) rotate(-1deg);
  180. }
  181.  
  182. 20% {
  183. transform: translate(-3px, 0px) rotate(1deg);
  184. }
  185.  
  186. 30% {
  187. transform: translate(3px, 2px) rotate(0deg);
  188. }
  189.  
  190. 40% {
  191. transform: translate(1px, -1px) rotate(1deg);
  192. }
  193.  
  194. 50% {
  195. transform: translate(-1px, 2px) rotate(-1deg);
  196. }
  197.  
  198. 60% {
  199. transform : translate(-3px, 1px) rotate(0deg);
  200. }
  201.  
  202. 70% {
  203. transform: translate(3px, 1px) rotate(-1deg);
  204. }
  205.  
  206. 80% {
  207. transform: translate(-1px, -1px) rotate(1deg);
  208. }
  209.  
  210. 90% {
  211. transform: translate(1px, 2px) rotate(0deg);
  212. }
  213.  
  214. 100% {
  215. transform: translate(1px, -2px) rotate(-1deg);
  216. }
  217. }
  218.  
  219. @-webkit-keyframes image_blur {
  220. 0% {
  221. -webkit-filter: blur(0px);
  222. }
  223.  
  224. 50% {
  225. -webkit-filter: blur(5px);
  226. }
  227.  
  228. 100% {
  229. -webkit-filter: blur(0px);
  230. }
  231. }
  232.  
  233. @keyframes
  234. fadeIn {
  235. 0%, 80% {
  236. opacity: 0;
  237. }
  238.  
  239. 100% {
  240. opacity: 1;
  241. }
  242. }
  243.  
  244. @-webkit-keyframes fadeIn {
  245. 0%, 80% {
  246. opacity: 0;
  247. }
  248.  
  249. 100% {
  250. opacity: 1;
  251. }
  252. }
  253. </style>
  254. </head>
  255. <body>
  256. <div id="holder">
  257. <img src="https://dl.dropbox.com/s/kt5585xmp8b1smg/097ABBB3-8542-47DE-BDA3-9B3037C50CA4.gif" id="left-wing">
  258. <img src="https://dl.dropbox.com/s/b9i2lb6eyxx3qj2/5DEC2971-2293-443B-BE85-E6178C40E553.gif" id="right-wing">
  259. <span id="wobble" class="title">kill urself</span>
  260. <span id="rainbow" class="title"></span>
  261. <div id="figure">
  262. <div id="item1" class="section">
  263. <img src="https://i.ibb.co/GTXttrF/241097904-880811629485122-5608463144260203824-n-1.jpg" width="100%" height="100%">
  264. </div>
  265. <div id="item2" class="section">
  266. <img src="https://i.ibb.co/SySCCT0/241011893-980625816062954-4574963998771525758-n-1.jpg" width="100%" height="100%">
  267. <h3>hello</h3>
  268. <div id="box">
  269. info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. <style type="text/css">* {cursor: url(https://cur.cursors-4u.net/cursors/cur-9/cur817.cur), auto !important;}</style><a href="https://www.cursors-4u.com/cursor/2011/11/10/small-grey-outline-pointer.html" target="_blank" title="Small Grey Outline Pointer"></a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement