Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>spooky moving links</title>
- <!-- no need to credit, you can customize ofc ^^-->
- <style>
- body {
- background-color: purple;
- color: #fff;
- font-family: 'Creepster', cursive;
- margin: 0;
- padding: 0;
- overflow: hidden;
- background-image: url("yourimghere.jpg");
- }
- .container {
- position: relative;
- width: 100%;
- height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- .link {
- position: absolute;
- font-size: 2em;
- color: #ff0000;
- text-decoration: none;
- animation: float 5s infinite;
- }
- @keyframes float {
- 0% { transform: translateY(0); }
- 50% { transform: translateY(-20px); }
- 100% { transform: translateY(0); }
- }
- .link:nth-child(odd) {
- animation-duration: 6s;
- }
- .link:nth-child(even) {
- animation-duration: 4s;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <a href="/link" class="link" style="top: 20%; left: 30%;">add link</a>
- <a href="/link" class="link" style="top: 50%; left: 70%;">add link</a>
- <!-- Add more links as needed & change the top and left percentages to randomize the positions of the links-->
- </div>
- <br>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment