elroseria

card on hover

Sep 16th, 2025
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.69 KB | None | 0 0
  1. <!----- made by @elroseria_ on twt/x do not remove creds ----->
  2.  
  3. <style>
  4.  
  5. @font-face {
  6. font-family: B;
  7. src: url(https://dl.dropbox.com/s/o5umfqvcshf0ugj/SantJoanDespiRegular.woff);
  8. }
  9.  
  10. * {
  11. padding: 0;
  12. margin: 0;
  13. box-sizing: border-box;
  14. }
  15.  
  16. body {
  17. display: flex;
  18. justify-content: center; /* center horizontally */
  19. align-items: center; /* center vertically */
  20. height: 100vh;
  21. }
  22.  
  23. html {
  24. overflow-y: scroll;
  25. overflow-x: hidden;
  26. }
  27.  
  28. ::-webkit-scrollbar {
  29. width: 0; /* remove scrollbar space */
  30. background: transparent; /* to make scrollbar invisible */
  31. }
  32.  
  33. ::-webkit-scrollbar-thumb {
  34. background: transparent;
  35. }
  36.  
  37. .containerr0 {
  38. position: relative;
  39. width: fit-content;
  40. font-family: 'poppins', sans-serif;
  41. }
  42.  
  43. .imager0 {
  44. display: block;
  45. width: 20em;
  46. height: 24em;
  47. border-radius: 8px;
  48. object-fit: cover;
  49. }
  50.  
  51. .overlayr0 {
  52. position: absolute;
  53. top: 5px;
  54. left: 5px;
  55. bottom: 5px;
  56. overflow: hidden;
  57. width: 0; /* start closed */
  58. height: 23.5em;
  59. border: none;
  60. border-radius: 8px;
  61. backdrop-filter: blur(3px);
  62. -webkit-backdrop-filter: blur(3px);
  63. border: 1px solid rgba(255, 255, 255, 0);
  64. box-shadow: 0 8px 32px rgba(0, 0, 0, 0),
  65. inset 0 1px 0 rgba(255, 255, 255, 0),
  66. inset 0 -1px 0 rgba(255, 255, 255, 0),
  67. inset 0 0 8px 4px rgba(255, 255, 255, 0);
  68. transition:
  69. width 0.5s ease,
  70. border-color 0.3s ease 0.3s,
  71. box-shadow 0.3s ease 0.3s;
  72. -moz-transition: 0.5s;
  73. -webkit-transition: 0.5s;
  74. -o-transition: 0.5s;
  75. }
  76.  
  77. .containerr0:hover .overlayr0,
  78. .link-list:hover ~ .overlayr0 {
  79. transition: all 1s ease-in-out;
  80. width: 50%; /* slide in fully */
  81. background: rgba(255, 255, 255, 0.3);
  82. border: 1px solid rgba(255, 255, 255, 0.5);
  83. }
  84.  
  85. .overlayr0.active {
  86. width: 50%;
  87. background: rgba(255, 255, 255, 0.3);
  88. border: 1px solid rgba(255, 255, 255, 0.5);
  89. box-shadow:
  90. 0 8px 32px rgba(0, 0, 0, 0.1),
  91. inset 0 1px 0 rgba(255, 255, 255, 0.5),
  92. inset 0 -1px 0 rgba(255, 255, 255, 0.1),
  93. inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
  94. }
  95.  
  96. .textr0 {
  97. color: black;
  98. font-family: 'Poppins', sans-serif;
  99. font-size: .7rem;
  100. text-align: left;
  101. width: 100%;
  102. height: 100%;
  103. padding: 5px;
  104. line-height: 1.2em;
  105. letter-spacing: -0.05em;
  106. overflow-y: scroll;
  107. }
  108.  
  109. .textr0 mark {
  110. font-family: B;
  111. padding: 2px 8px;
  112. border: 1px solid black;
  113. border-radius: 10px;
  114. font-size: 15px;
  115. background: none;
  116. margin-bottom: 10px;
  117. }
  118.  
  119. /* Link list styles */
  120. .link-list {
  121. position: absolute;
  122. bottom: 0.5em;
  123. right: 0.5em;
  124. list-style: none;
  125. padding: 0;
  126. margin: 0;
  127. }
  128.  
  129. .link-list li {
  130. font-family: 'Poppins', sans-serif;
  131. background: rgba(255, 255, 255, 0.1);
  132. backdrop-filter: blur(3px);
  133. -webkit-backdrop-filter: blur(3px);
  134. padding: 1px 10px;
  135. margin-top: 5px;
  136. border: 1px solid #ccc;
  137. border-radius: 2px;
  138. text-align: center;
  139. }
  140.  
  141. .link-list a {
  142. text-decoration: none;
  143. color: black;
  144. display: block;
  145. }
  146.  
  147. @keyframes fadeIn {
  148. 0% { opacity: 0; }
  149. 100% { opacity: 1; }
  150. }
  151.  
  152. @-webkit-keyframes fadeIn {
  153. 0% { opacity: 0; }
  154. 100% { opacity: 1; }
  155. }
  156. </style>
  157. <script>
  158. document.addEventListener("DOMContentLoaded", function () {
  159. const img = document.querySelector(".imager0");
  160. const overlay = document.querySelector(".overlayr0");
  161.  
  162. img.addEventListener("click", function () {
  163. overlay.classList.toggle("active");
  164. });
  165. });
  166. </script>
  167.  
  168. <center>
  169. <div class="containerr0">
  170. <img src="https://pbs.twimg.com/media/Gx6l7HjaUAAoa5M?format=jpg&name=large"
  171. alt="Avatar"
  172. class="imager0"
  173. />
  174.  
  175. <ul class="link-list">
  176. <li><a href="https://">twt</a></li>
  177. <li><a href="https://">spotify</a></li>
  178. <li><a href="https://">ask me</a></li>
  179. </ul>
  180.  
  181. <div class="overlayr0">
  182. <div class="textr0">
  183. <center>
  184. <mark>Elroseria</mark>
  185. <br/>
  186. <br />
  187. Candy gummies macaroon gummi bears marshmallow dragée.
  188. Croissant jujubes bonbon oat cake dragée sugar plum. Marshmallow
  189. donut oat cake muffin cheesecake lollipop apple pie apple pie <br/>
  190. image shake on hover to reveal scrollbox version 2 <br />
  191. <a href="https://liveweave.com/Rj1zVV">code</a>
  192. <br />
  193. Candy gummies macaroon gummi bears marshmallow dragée.
  194. Croissant jujubes bonbon oat cake dragée sugar plum. Marshmallow
  195. donut oat cake muffin cheesecake lollipop apple pie apple pie <br/>
  196. image shake on hover to reveal scrollbox version 2 <br />
  197. <a href="https://liveweave.com/Rj1zVV">code</a>
  198. <br />
  199. Candy gummies macaroon gummi bears marshmallow dragée.
  200. Croissant jujubes bonbon oat cake dragée sugar plum. Marshmallow
  201. donut oat cake muffin cheesecake lollipop apple pie apple pie
  202. </center>
  203. </div>
  204. </div>
  205. </div>
  206. </center>
  207.  
  208. <a href="https://vivante.carrd.co/"><ion-icon name="heart-circle-outline" style="font-size: 17px; color: black; position: fixed; bottom: 3px; left: 10px;"></ion-icon></a>
  209. <script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment