Velvet_RidingHood

Red_Falling_Heart's

Aug 3rd, 2026
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | Source Code | 0 0
  1. </style>
  2.  
  3. <details class="heart-toggle-wrap" open="">
  4. <summary class="star-toggle">♥️ Heart: ON/OFF</summary>
  5. <div class="heart-container">
  6. <div class="heart"></div>
  7. <div class="heart"></div>
  8. <div class="heart"></div>
  9. <div class="heart"></div>
  10. <div class="heart"></div>
  11. <div class="heart"></div>
  12. <div class="heart"></div>
  13. <div class="heart"></div>
  14. <div class="heart"></div>
  15. <div class="heart"></div>
  16. <div class="heart"></div>
  17. <div class="heart"></div>
  18. <div class="heart"></div>
  19. <div class="heart"></div>
  20. <div class="heart"></div>
  21. <div class="heart"></div>
  22. <div class="heart"></div>
  23. <div class="heart"></div>
  24. <div class="heart"></div>
  25. <div class="heart"></div>
  26. <div class="heart"></div>
  27. <div class="heart"></div>
  28. <div class="heart"></div>
  29. <div class="heart"></div>
  30. </div>
  31. </details>
  32.  
  33. <style>
  34. .heart-toggle-wrap {
  35. position: fixed;
  36. bottom: 70px;
  37. right: 12px;
  38. z-index: 99999;
  39. pointer-events: auto;
  40. width: auto;
  41. height: auto;
  42. }
  43. .heart-toggle-wrap > summary.heart-toggle {
  44. list-style: none;
  45. display: block;
  46. background: #20060a;
  47. border: 2px solid;
  48. border-color: #c2185b #8b0000 #8b0000 #4a0a14;
  49. color: #c2185b;
  50. font-family: 'Courier New', monospace;
  51. font-size: 0.7rem;
  52. padding: 4px 8px;
  53. cursor: pointer;
  54. text-shadow: 0 0 6px #c2185b;
  55. box-shadow: 3px 3px 0px #000;
  56. pointer-events: auto;
  57. }
  58. .heart-toggle-wrap > summary.heart-toggle::-webkit-details-marker { display: none; }
  59. .heart-toggle-wrap .heart-container {
  60. position: fixed;
  61. top: 0; left: 0;
  62. width: 100%; height: 100%;
  63. pointer-events: none;
  64. z-index: 9999;
  65. overflow: hidden;
  66. }
  67. details.heart-toggle-wrap:not([open]) .heart-container {
  68. display: none !important;
  69. }
  70. .heart {
  71. position: absolute;
  72. font-size: 0.9rem;
  73. opacity: 0;
  74. animation: float-heart 8s linear infinite;
  75. text-shadow: 0 0 6px #c2185b, 0 0 12px #4a0a14, 0 0 20px #8b0000;
  76. }
  77. .heart::before { content: "♥"; }
  78. .heart:nth-child(1) { left: 3%; animation-delay: 0s; animation-duration: 5s; font-size: 0.7rem; color: #c2185b; }
  79. .heart:nth-child(2) { left: 8%; animation-delay: 0.5s; animation-duration: 4s; font-size: 1rem; color: #8b0000; }
  80. .heart:nth-child(3) { left: 13%; animation-delay: 1s; animation-duration: 6s; font-size: 0.6rem; color: #c2185b; }
  81. .heart:nth-child(4) { left: 18%; animation-delay: 0.3s; animation-duration: 5s; font-size: 0.8rem; color: #8b0000; }
  82. .heart:nth-child(5) { left: 24%; animation-delay: 1.8s; animation-duration: 4s; font-size: 0.5rem; color: #4a0a14; }
  83. .heart:nth-child(6) { left: 30%; animation-delay: 0.8s; animation-duration: 6s; font-size: 0.9rem; color: #8b0000; }
  84. .heart:nth-child(7) { left: 36%; animation-delay: 2s; animation-duration: 5s; font-size: 0.6rem; color: #c2185b; }
  85. .heart:nth-child(8) { left: 42%; animation-delay: 0.2s; animation-duration: 4s; font-size: 1rem; color: #4a0a14; }
  86. .heart:nth-child(9) { left: 48%; animation-delay: 1.4s; animation-duration: 5s; font-size: 0.7rem; color: #8b0000; }
  87. .heart:nth-child(10) { left: 54%; animation-delay: 0.6s; animation-duration: 6s; font-size: 0.5rem; color: #c2185b; }
  88. .heart:nth-child(11) { left: 60%; animation-delay: 2.5s; animation-duration: 4s; font-size: 0.8rem; color: #4a0a14; }
  89. .heart:nth-child(12) { left: 66%; animation-delay: 1.1s; animation-duration: 5s; font-size: 0.6rem; color: #8b0000; }
  90. .heart:nth-child(13) { left: 72%; animation-delay: 0.4s; animation-duration: 6s; font-size: 0.9rem; color: #c2185b; }
  91. .heart:nth-child(14) { left: 78%; animation-delay: 1.7s; animation-duration: 4s; font-size: 0.5rem; color: #4a0a14; }
  92. .heart:nth-child(15) { left: 84%; animation-delay: 0.9s; animation-duration: 5s; font-size: 0.7rem; color: #8b0000; }
  93. .heart:nth-child(16) { left: 90%; animation-delay: 2.1s; animation-duration: 6s; font-size: 1rem; color: #c2185b; }
  94. .heart:nth-child(17) { left: 95%; animation-delay: 0.7s; animation-duration: 4s; font-size: 0.6rem; color: #4a0a14; }
  95. .heart:nth-child(18) { left: 10%; animation-delay: 3s; animation-duration: 5s; font-size: 0.8rem; color: #8b0000; }
  96. .heart:nth-child(19) { left: 20%; animation-delay: 3.5s; animation-duration: 4s; font-size: 0.5rem; color: #c2185b; }
  97. .heart:nth-child(20) { left: 45%; animation-delay: 2.8s; animation-duration: 6s; font-size: 0.9rem; color: #4a0a14; }
  98. .heart:nth-child(21) { left: 55%; animation-delay: 3.2s; animation-duration: 5s; font-size: 0.7rem; color: #8b0000; }
  99. .heart:nth-child(22) { left: 68%; animation-delay: 1.3s; animation-duration: 4s; font-size: 0.6rem; color: #c2185b; }
  100. .heart:nth-child(23) { left: 80%; animation-delay: 3.8s; animation-duration: 5s; font-size: 0.8rem; color: #4a0a14; }
  101. .heart:nth-child(24) { left: 38%; animation-delay: 4s; animation-duration: 6s; font-size: 0.5rem; color: #8b0000; }
  102. @keyframes float-star {
  103. 0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  104. 10% { opacity: 1; }
  105. 90% { opacity: 1; }
  106. 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
  107. }
  108. @media screen and (max-width: 47.9em) {
  109. .heart-toggle-wrap {
  110. bottom: 80px;
  111. right: 8px;
  112. }
  113. .heart-toggle-wrap > summary.heart-toggle {
  114. padding: 8px 12px;
  115. font-size: 0.8rem;
  116. }
  117. }
  118. </style>
Advertisement
Add Comment
Please, Sign In to add comment