Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- </style>
- <details class="heart-toggle-wrap" open="">
- <summary class="star-toggle">♥️ Heart: ON/OFF</summary>
- <div class="heart-container">
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- <div class="heart"></div>
- </div>
- </details>
- <style>
- .heart-toggle-wrap {
- position: fixed;
- bottom: 70px;
- right: 12px;
- z-index: 99999;
- pointer-events: auto;
- width: auto;
- height: auto;
- }
- .heart-toggle-wrap > summary.heart-toggle {
- list-style: none;
- display: block;
- background: #20060a;
- border: 2px solid;
- border-color: #c2185b #8b0000 #8b0000 #4a0a14;
- color: #c2185b;
- font-family: 'Courier New', monospace;
- font-size: 0.7rem;
- padding: 4px 8px;
- cursor: pointer;
- text-shadow: 0 0 6px #c2185b;
- box-shadow: 3px 3px 0px #000;
- pointer-events: auto;
- }
- .heart-toggle-wrap > summary.heart-toggle::-webkit-details-marker { display: none; }
- .heart-toggle-wrap .heart-container {
- position: fixed;
- top: 0; left: 0;
- width: 100%; height: 100%;
- pointer-events: none;
- z-index: 9999;
- overflow: hidden;
- }
- details.heart-toggle-wrap:not([open]) .heart-container {
- display: none !important;
- }
- .heart {
- position: absolute;
- font-size: 0.9rem;
- opacity: 0;
- animation: float-heart 8s linear infinite;
- text-shadow: 0 0 6px #c2185b, 0 0 12px #4a0a14, 0 0 20px #8b0000;
- }
- .heart::before { content: "♥"; }
- .heart:nth-child(1) { left: 3%; animation-delay: 0s; animation-duration: 5s; font-size: 0.7rem; color: #c2185b; }
- .heart:nth-child(2) { left: 8%; animation-delay: 0.5s; animation-duration: 4s; font-size: 1rem; color: #8b0000; }
- .heart:nth-child(3) { left: 13%; animation-delay: 1s; animation-duration: 6s; font-size: 0.6rem; color: #c2185b; }
- .heart:nth-child(4) { left: 18%; animation-delay: 0.3s; animation-duration: 5s; font-size: 0.8rem; color: #8b0000; }
- .heart:nth-child(5) { left: 24%; animation-delay: 1.8s; animation-duration: 4s; font-size: 0.5rem; color: #4a0a14; }
- .heart:nth-child(6) { left: 30%; animation-delay: 0.8s; animation-duration: 6s; font-size: 0.9rem; color: #8b0000; }
- .heart:nth-child(7) { left: 36%; animation-delay: 2s; animation-duration: 5s; font-size: 0.6rem; color: #c2185b; }
- .heart:nth-child(8) { left: 42%; animation-delay: 0.2s; animation-duration: 4s; font-size: 1rem; color: #4a0a14; }
- .heart:nth-child(9) { left: 48%; animation-delay: 1.4s; animation-duration: 5s; font-size: 0.7rem; color: #8b0000; }
- .heart:nth-child(10) { left: 54%; animation-delay: 0.6s; animation-duration: 6s; font-size: 0.5rem; color: #c2185b; }
- .heart:nth-child(11) { left: 60%; animation-delay: 2.5s; animation-duration: 4s; font-size: 0.8rem; color: #4a0a14; }
- .heart:nth-child(12) { left: 66%; animation-delay: 1.1s; animation-duration: 5s; font-size: 0.6rem; color: #8b0000; }
- .heart:nth-child(13) { left: 72%; animation-delay: 0.4s; animation-duration: 6s; font-size: 0.9rem; color: #c2185b; }
- .heart:nth-child(14) { left: 78%; animation-delay: 1.7s; animation-duration: 4s; font-size: 0.5rem; color: #4a0a14; }
- .heart:nth-child(15) { left: 84%; animation-delay: 0.9s; animation-duration: 5s; font-size: 0.7rem; color: #8b0000; }
- .heart:nth-child(16) { left: 90%; animation-delay: 2.1s; animation-duration: 6s; font-size: 1rem; color: #c2185b; }
- .heart:nth-child(17) { left: 95%; animation-delay: 0.7s; animation-duration: 4s; font-size: 0.6rem; color: #4a0a14; }
- .heart:nth-child(18) { left: 10%; animation-delay: 3s; animation-duration: 5s; font-size: 0.8rem; color: #8b0000; }
- .heart:nth-child(19) { left: 20%; animation-delay: 3.5s; animation-duration: 4s; font-size: 0.5rem; color: #c2185b; }
- .heart:nth-child(20) { left: 45%; animation-delay: 2.8s; animation-duration: 6s; font-size: 0.9rem; color: #4a0a14; }
- .heart:nth-child(21) { left: 55%; animation-delay: 3.2s; animation-duration: 5s; font-size: 0.7rem; color: #8b0000; }
- .heart:nth-child(22) { left: 68%; animation-delay: 1.3s; animation-duration: 4s; font-size: 0.6rem; color: #c2185b; }
- .heart:nth-child(23) { left: 80%; animation-delay: 3.8s; animation-duration: 5s; font-size: 0.8rem; color: #4a0a14; }
- .heart:nth-child(24) { left: 38%; animation-delay: 4s; animation-duration: 6s; font-size: 0.5rem; color: #8b0000; }
- @keyframes float-star {
- 0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
- 10% { opacity: 1; }
- 90% { opacity: 1; }
- 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
- }
- @media screen and (max-width: 47.9em) {
- .heart-toggle-wrap {
- bottom: 80px;
- right: 8px;
- }
- .heart-toggle-wrap > summary.heart-toggle {
- padding: 8px 12px;
- font-size: 0.8rem;
- }
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment