mididump

moving floating links page with creepy font

Feb 4th, 2025 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>spooky moving links</title>
  7.     <!-- no need to credit, you can customize ofc ^^-->
  8.     <style>
  9.         body {
  10.             background-color: purple;
  11.             color: #fff;
  12.             font-family: 'Creepster', cursive;
  13.             margin: 0;
  14.             padding: 0;
  15.             overflow: hidden;
  16.             background-image: url("yourimghere.jpg");
  17.         }
  18.         .container {
  19.             position: relative;
  20.             width: 100%;
  21.             height: 100vh;
  22.             display: flex;
  23.             justify-content: center;
  24.             align-items: center;
  25.             flex-direction: column;
  26.         }
  27.         .link {
  28.             position: absolute;
  29.             font-size: 2em;
  30.             color: #ff0000;
  31.             text-decoration: none;
  32.             animation: float 5s infinite;
  33.         }
  34.         @keyframes float {
  35.             0% { transform: translateY(0); }
  36.             50% { transform: translateY(-20px); }
  37.             100% { transform: translateY(0); }
  38.         }
  39.         .link:nth-child(odd) {
  40.             animation-duration: 6s;
  41.         }
  42.         .link:nth-child(even) {
  43.             animation-duration: 4s;
  44.         }
  45.      
  46.     </style>
  47. </head>
  48. <body>
  49.     <div class="container">
  50.         <a href="/link" class="link" style="top: 20%; left: 30%;">add link</a>
  51.         <a href="/link" class="link" style="top: 50%; left: 70%;">add link</a>
  52.         <!-- Add more links as needed & change the top and left percentages to randomize the positions of the links-->
  53.     </div>
  54.     <br>
  55. </body>
  56. </html>
  57.  
Tags: html layout
Advertisement
Add Comment
Please, Sign In to add comment